|
|
A171252
|
|
Least power of 2 to have at least n consecutive digits 'n' in its decimal expansion
|
|
7
|
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
As it stands, the definition makes only sense for (decimal digits) n=0,...,9. Replacing "decimal" by, e.g., base-(prime(n)), the sequence could be defined for all n. (However, e.g., base-(n+1) would not work, since in base 4 no power of 2 has a digit "3".)
|
|
LINKS
|
|
|
PROG
|
(PARI) A171252(n)={my(p=10^n, t); n*=p\9; for(k=0, 1e9, t=2^k; until( n>t\=10, t%p==n & return(k)))}
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,fini,full,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|