cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A068433 Expansion of log(3) in base 2.

This page as a plain text file.
%I A068433 #29 Dec 14 2017 02:35:09
%S A068433 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,
%T A068433 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,
%U A068433 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
%N A068433 Expansion of log(3) in base 2.
%H A068433 G. C. Greubel, <a href="/A068433/b068433.txt">Table of n, a(n) for n = 1..10000</a>
%e A068433 The decimal expansion is log(3) = 1.098612288668109...
%t A068433 RealDigits[Log[3], 2, 108][[1]] (* _Alonso del Arte_, Feb 17 2013 *)
%o A068433 (JavaScript)
%o A068433 function binaryExp(n) {
%o A068433 x = new Array();
%o A068433 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;
%o A068433 return x;
%o A068433 }
%o A068433 document.write(Math.log(3) + "<br>");
%o A068433 document.write(binaryExp(Math.log(3))); // _Jon Perry_, Nov 18 2012
%o A068433 (PARI) concat(binary(log(3))) \\ _Michel Marcus_, Dec 14 2017
%Y A068433 Cf. A002391.
%K A068433 base,cons,easy,nonn
%O A068433 1,1
%A A068433 _Benoit Cloitre_, Mar 09 2002