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.

Showing 1-1 of 1 results.

A152228 2-adic expansion of log(5).

Original entry on oeis.org

0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0
Offset: 0

Views

Author

Paul D. Hanna, Nov 29 2008

Keywords

Examples

			log(5) (2-adic) = ...0001110110010010000000011100100010011001111100 (base 2).
log(5) (2-adic) = 2^2 + 2^3 + 2^4 + 2^5 + 2^6 + 2^9 + 2^10 + 2^13 +...
exp( log(5) (2-adic) ) = 101 (base 2) = 5.
		

Crossrefs

Cf. A068434, A321690, A321694 (log(-3)).

Programs

  • PARI
    a(n)=(truncate( log(5+2*O(2^n)) )%2^(n+1))\2^n

Formula

a(n) = (A321690(n+1) - A321690(n))/2^n. - Jianing Song, Nov 17 2018
Showing 1-1 of 1 results.