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]], 2, 1], {0, 0}], k++]; k, {n, 2, 100}] (* T. D. Noe, Oct 01 2012 *)
lvk[n_]:=Module[{k=1}, While[SequenceCount[IntegerDigits[n^k], {x_, x_, x_}]<1, k++]; k]; Array[lvk, 80, 2] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 13 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
V. Raman, Sep 27 2012
STATUS
approved