|
| |
|
|
A129344
|
|
a(n) is the number of powers of 2 that have n decimal digits.
|
|
1
| |
|
|
4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 3, 4, 3, 3
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
EXAMPLE
| a(1) is 4 because there are 4 one-digit powers of 2: 1, 2, 4, 8.
|
|
|
MATHEMATICA
| Table[Transpose[ Select[Table[{n, 2^n}, {n, 0, 310}], IntegerDigits[ #[[2]]][[1]] == 1 &]][[1]][[k]] - Transpose[ Select[Table[{n, 2^n}, {n, 0, 310}], IntegerDigits[ #[[2]]][[1]] == 1 &]][[1]][[k - 1]], {k, 2, 94}]
|
|
|
CROSSREFS
| The difference of A067497 - Smallest power of 2 with n+1 digits (n>=0). Also n such that 1 is the first digit of 2^n.
Sequence in context: A059124 A026858 A188885 * A048853 A179845 A180217
Adjacent sequences: A129341 A129342 A129343 * A129345 A129346 A129347
|
|
|
KEYWORD
| base,nonn
|
|
|
AUTHOR
| Tanya Khovanova (tanyakh(AT)yahoo.com), May 28 2007
|
| |
|
|