|
|
A068433
|
|
Expansion of log(3) in base 2.
|
|
1
|
|
|
1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1
(list;
constant;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
The decimal expansion is log(3) = 1.098612288668109...
|
|
MATHEMATICA
|
|
|
PROG
|
(JavaScript)
function binaryExp(n) {
x = new Array();
for (i = 0; i < 50; i++) if (n - Math.pow(2, 1 - i) >= 0) {n -= Math.pow(2, 1 - i); x[i] = 1; } else x[i] = 0;
return x;
}
document.write(Math.log(3) + "<br>");
document.write(binaryExp(Math.log(3))); // Jon Perry, Nov 18 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|