A217189 a(n) is the number of digits in the decimal representation of the smallest power of 7 that contains n consecutive identical digits.
1, 6, 27, 61, 146, 148, 1658, 5220, 28595, 51790
Offset: 1
Programs
-
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 *)
Extensions
a(10) added by V. Raman, Nov 23 2013
Comments