OFFSET
0,3
EXAMPLE
676 = 26^2 and 6 and 7 differ by at most 1
MATHEMATICA
For[i=1, i>0, i++, a=IntegerDigits[i^2]; b=Max[Abs[a-RotateRight[a]]]; If[b<2, Print[i^2]]]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Erich Friedman, Jun 23 2001
STATUS
approved