OFFSET
1,1
COMMENTS
Includes all n >= 7 not == 4 or 6 (mod 10). - Robert Israel, Oct 24 2017
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= n ->
ormap(t -> issqr(n^2 mod 10^t), [$1..ilog10(n^2)]):
select(filter, [$1..100]); # Robert Israel, Oct 24 2017
MATHEMATICA
ds[n_] := NestWhileList[FromDigits[Rest[IntegerDigits[#]]] &, n, # > 9 &]; Select[Range[4, 88], Or @@ IntegerQ /@ Sqrt[Rest[ds[#^2]]] &] (* Jayanta Basu, Jul 10 2013 *)
PROG
(PARI): a065808(m) = local(k, a, b, d, j, n, r); for(k=1, m, a=length(Str(n))-1; b=1; j=1; n=k^2; while(b, d=divrem(n, 10^j); if(d[1]>0&&issquare(d[2]), b=0; issquare(n, &r); print1(r, ", "), if(j<a, j++, b=0)))) a065808(100)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Klaus Brockhaus, Nov 22 2001
EXTENSIONS
Offset changed to 1 by Robert Israel, Oct 24 2017
STATUS
approved