The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
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
Cf. A002391.
Sequence in context: A287663 A195376 A164950 * A266895 A088592 A188189
KEYWORD
base,cons,easy,nonn
AUTHOR
Benoit Cloitre, Mar 09 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 5 01:34 EDT 2024. Contains 373102 sequences. (Running on oeis4.)