|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|