OFFSET
1,2
COMMENTS
It appears that numbers of the form 2 * 10^i have the longest period, 169.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
MATHEMATICA
mx = 1000; Table[s = Table[Length[Union[IntegerDigits[n^k]]], {k, 0, mx}]; pos = Position[s, 10]; If[pos == {}, 0, 1 + mx - Position[Differences[Reverse[s]], _?(# != 0 &)][[1, 1]]], {n, 100}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
T. D. Noe, Apr 01 2014
STATUS
approved