OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
EXAMPLE
The decimal expansion is log(3) = 1.098612288668109...
MATHEMATICA
RealDigits[Log[3], 2, 108][[1]] (* Alonso del Arte, Feb 17 2013 *)
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
(PARI) concat(binary(log(3))) \\ Michel Marcus, Dec 14 2017
CROSSREFS
KEYWORD
AUTHOR
Benoit Cloitre, Mar 09 2002
STATUS
approved