login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A152071
Squares which when subtracted from their reverse form nonzero squares.
1
1296, 39204, 522729, 525625, 541696, 630436, 678976, 833569, 877969, 37601424, 37920964, 46812964, 52809289, 58920976, 1079056801, 1232782321, 1805485081, 1867017681, 2346821136, 3104495524, 3742013584, 4038348304, 4450490944
OFFSET
1,1
LINKS
EXAMPLE
a(1) = 36^2 = 1296 6921 - 1296 = 5625 = 75^2.
MATHEMATICA
nzQ[n_]:=Module[{s=Sqrt[IntegerReverse[n]-n]}, s!=0&&IntegerQ[s]]; Select[ Range[70000]^2, nzQ] (* The program uses the IntegerReverse function from Mathematica version 10 *) (* Harvey P. Dale, Jan 18 2016 *)
PROG
(PARI) reverse(expr)=my(v=Vec(Str(expr)), n=length(v)); concat(vector(n, i, v[n-i+1])); lista(nn) = {for (n=1, nn, if (issquare(n), rn = eval(reverse(n)); if (n!=rn && issquare(rn-n), print1(n, ", "))); ); } \\ Michel Marcus, Jun 02 2013
CROSSREFS
Sequence in context: A223596 A265471 A017140 * A223437 A183618 A017236
KEYWORD
nonn,base
AUTHOR
Gaurav Kumar, Jul 24 2009
EXTENSIONS
Definition clarified by Zak Seidov, Jul 25 2009
STATUS
approved