login
A152228
2-adic expansion of log(5).
4
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,1
FORMULA
a(n) = (A321690(n+1) - A321690(n))/2^n. - Jianing Song, Nov 17 2018
EXAMPLE
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.
PROG
(PARI) a(n)=(truncate( log(5+2*O(2^n)) )%2^(n+1))\2^n
CROSSREFS
Cf. A068434, A321690, A321694 (log(-3)).
Sequence in context: A131735 A131736 A373254 * A368625 A086823 A228487
KEYWORD
base,nonn
AUTHOR
Paul D. Hanna, Nov 29 2008
STATUS
approved