[go: up one dir, main page]

login
A217189
a(n) is the number of digits in the decimal representation of the smallest power of 7 that contains n consecutive identical digits.
0
1, 6, 27, 61, 146, 148, 1658, 5220, 28595, 51790
OFFSET
1,2
COMMENTS
Number of digits in 7^k is equal to floor(1 + k*log_10(7)).
MATHEMATICA
k = 0; Join[{1}, Table[While[d = IntegerDigits[7^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: A273578 A012720 A012365 * A363696 A167469 A190623
KEYWORD
nonn,base
AUTHOR
V. Raman, Sep 27 2012
EXTENSIONS
a(10) added by V. Raman, Nov 23 2013
STATUS
approved