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.

Original entry on oeis.org

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
Offset: 1

Views

Author

Benoit Cloitre, Mar 09 2002

Keywords

Examples

			The decimal expansion is log(3) = 1.098612288668109...
		

Crossrefs

Cf. A002391.

Programs

  • 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) + "
    "); document.write(binaryExp(Math.log(3))); // Jon Perry, Nov 18 2012
  • Mathematica
    RealDigits[Log[3], 2, 108][[1]] (* Alonso del Arte, Feb 17 2013 *)
  • PARI
    concat(binary(log(3))) \\ Michel Marcus, Dec 14 2017