login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A068433 Expansion of log(3) in base 2. 0
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

COMMENTS

log(3) = 1.098612288668109...

LINKS

Table of n, a(n) for n=1..105.

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

CROSSREFS

Cf. A002391.

Sequence in context: A187615 A120528 A164950 * A088592 A029692 A071906

Adjacent sequences:  A068430 A068431 A068432 * A068434 A068435 A068436

KEYWORD

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 | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 24 20:01 EDT 2013. Contains 225630 sequences.