OFFSET
2,1
LINKS
V. Raman, Table of n, a(n) for n = 2..10000
MATHEMATICA
Table[k = 1; While[! MemberQ[Partition[Differences[IntegerDigits[n^k]], 5, 1], {0, 0, 0, 0, 0}], k++]; k, {n, 2, 100}] (* T. D. Noe, Oct 01 2012 *)
lk[n_]:=Module[{k=1, t=Table[x_, 6]}, While[SequenceCount[IntegerDigits[ n^k], t]<1, k++]; k]; Array[lk, 60, 2] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 18 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
V. Raman, Sep 27 2012
STATUS
approved