OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..806
EXAMPLE
a(11) = 20955: A108731(20955^2) = [11,0,0,0,5,2,4,4,1,1,1].
MATHEMATICA
Block[{nn = 10^5, r, s, t}, t = nn^2; r = Reverse@ Most@ NestWhileList[# + 1 &, 2, #! < t &]; s = Array[Max@ IntegerDigits[#^2, MixedRadix@ r] &, nn, 0]; Map[First@ FirstPosition[s, #] - 1 &, Union@ FoldList[Max, s]]] (* Michael De Vlieger, Jan 01 2019 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alois P. Heinz, Mar 28 2018
STATUS
approved