login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A217185
a(n) is the number of digits in the decimal representation of the smallest power of 2 that contains n consecutive identical digits.
0
1, 5, 8, 13, 67, 293, 293, 2576, 12790, 12790, 81874, 312865, 520061, 2063822
OFFSET
1,2
COMMENTS
Number of digits in 2^k is equal to floor(1 + k*log_10(2)).
MATHEMATICA
k = 0; Join[{1}, Table[While[d = IntegerDigits[2^k]; prt = Partition[Differences[d], n - 1, 1]; ! MemberQ[prt, Table[0, {n - 1}]], k++]; Length[d], {n, 2, 8}]] (* T. D. Noe, Oct 03 2012 *)
CROSSREFS
Sequence in context: A306943 A020736 A314469 * A160421 A249719 A314470
KEYWORD
nonn,base
AUTHOR
V. Raman, Sep 27 2012
STATUS
approved