OFFSET
1,3
COMMENTS
The corresponding square roots are in A102859.
LINKS
Jon E. Schoenfield, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harry J. Smith)
FORMULA
a(n) = A102859(n)^2.
EXAMPLE
169 and 961 are both squares.
1089 = 33^2 and 9801 = 99^2 so 1089 and 9801 belong to the sequence.
MATHEMATICA
Select[Range[0, 400]^2, IntegerQ[Sqrt[IntegerReverse[#]]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 29 2019 *)
PROG
(PARI) { for(m=0, 1000, my(r=fromdigits(Vecrev(digits(m^2)))); if(issquare(r), print1(m^2, ", ") )) } \\ Harry J. Smith, Jul 23 2009
(Magma) [n^2: n in [0..306] | IsSquare(Seqint(Reverse(Intseq(n^2))))]; // Bruno Berselli, Apr 30 2011
(Python)
from itertools import count, islice
from sympy import integer_nthroot
def A061457_gen(): # generator of terms
return filter(lambda n:integer_nthroot(int(str(n)[::-1]), 2)[1], (n**2 for n in count(0)))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, May 03 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), May 17 2001
STATUS
approved