OFFSET
0,1
EXAMPLE
a(7) = 81 as the sums of the digits of the 7 consecutive squares 81, 100, 121, 144, 169, 196, 225 are squares, but the digit sums of 64 and 256 are not.
MATHEMATICA
l[n_] := Module[{k}, For[k=0, IntegerQ[Sqrt[Plus@@IntegerDigits[(n+k)^2]]], k++, Null]; k]; Clear[a]; For[n=0, True, n+=ln+1, If[a[ln=l[n]]==-1, Null, Null, a[ln]=n; Print["a(", ln, ")=", n^2]]]
CROSSREFS
KEYWORD
hard,more,nonn,base
AUTHOR
Amarnath Murthy, Mar 09 2002
EXTENSIONS
Edited by Dean Hickerson, Oct 28 2002
a(9) from Giovanni Resta, Aug 27 2018
STATUS
approved