OFFSET
2,1
LINKS
T. D. Noe, Table of n, a(n) for n = 2..10000
FORMULA
a(n) = A217157(n) - 1. - Georg Fischer, Nov 25 2020
EXAMPLE
a(2) = 15 because the powers of 2 are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536 and only the 16th power has consecutive identical digits.
MATHEMATICA
Table[k = 1; While[! MemberQ[Differences[IntegerDigits[n^k]], 0], k++]; k = k - 1, {n, 2, 100}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
T. D. Noe, Sep 17 2012
STATUS
approved