OFFSET
0,1
COMMENTS
LINKS
Jianing Song, Table of n, a(n) for n = 0..1000
Wikipedia, p-adic number
FORMULA
EXAMPLE
log_(-3)(5) = ...0110111111010101110010000011110100001011.
PROG
(PARI) b(n) = {my(v=vector(n)); v[3]=1; for(n=4, n, v[n] = v[n-1] + if(Mod(-3, 2^n)^v[n-1] - 5==0, 0, 2^(n-3))); v}
a(n) = b(n+3)[n+3]\2^n
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jianing Song, Oct 27 2018
STATUS
approved