OFFSET
1,1
EXAMPLE
262987^2=69162162169 and 6+9+1=16, 9+1+6=16, 1+6+2=9, 6+2+1=9, 2+1+6=9, 1+6+2=9, 6+2+1=9, 2+1+6=9, 1+6+9=16 are all squares.
MATHEMATICA
s={}; Do[id=IntegerDigits[n^2];
If[Union[IntegerQ/@(Sqrt[Total/@Partition[id, 3, 1]])]=={True}, Print[n]; AppendTo[s, n]], {n, 10, 3*10^6}]
Select[Range[10, 3*10^6], AllTrue[Total/@Partition[IntegerDigits[#^2], 3, 1], IntegerQ[ Sqrt[#]]&]&] (* Harvey P. Dale, Jan 21 2019 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Nov 28 2010
STATUS
approved