OFFSET
1,1
COMMENTS
Squares with trailing zeros not included.
Sequence is infinite, since it includes, e.g., 10^(2k) + 4*10^k + 4 for all k. - Robert Israel, Sep 20 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..798
P. De Geest, Palindromic Squares
FORMULA
a(n) = A035123(n)^2. - R. J. Mathar, Jan 25 2017
MAPLE
rev:= proc(n) local L, i;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
filter:= proc(n) local t;
if n mod 10 = 0 then return false fi;
t:= rev(n);
t <> n and issqr(t)
end proc:
select(filter, [seq(n^2, n=1..10^5)]); # Robert Israel, Sep 20 2015
MATHEMATICA
Select[Range[1200]^2, !PalindromeQ[#]&&IntegerLength[#]==IntegerLength[ IntegerReverse[ #]] && IntegerQ[Sqrt[IntegerReverse[#]]]&] (* Harvey P. Dale, Jul 19 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Nov 15 1998
STATUS
approved