OFFSET
1,1
COMMENTS
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..1000
MAPLE
ispali:= proc(n) local L;
L:= convert(n, base, 10);
L = ListTools:-Reverse(L)
end proc:
remove(ispali, [seq(i^2, i=1..100)]); # Robert Israel, Sep 18 2018
MATHEMATICA
pb10Q[n_]:=!Module[{idn10=IntegerDigits[n, 10]}, idn10==Reverse[idn10]]; Select[Range[0, 3100]^2, pb10Q] (* Vincenzo Librandi, Sep 19 2018 *)
PROG
(PARI) terms(n) = my(i=0); for(k=0, oo, if(i==n, break); my(s=k^2, d=digits(s)); if(d!=Vecrev(d), print1(s, ", "); i++))
/* Print initial 50 terms as follows */
terms(50) \\ Felix Fröhlich, Sep 18 2018
(Magma) [n^2: n in [0..60] | not Intseq(n^2) eq Reverse(Intseq(n^2))]; // Vincenzo Librandi, Sep 19 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Sep 18 2018
STATUS
approved