OFFSET
1,1
COMMENTS
These are the odd integers k, not a multiple of 5, such that k^2 is an arithmetic mean of two other odd perfect squares in exactly two ways.
LINKS
Robert Israel, Table of n, a(n) for n = 1..1000
EXAMPLE
169 is a term since 169^2+-4*(5070) and 169^2+-4*(7140) are all perfect squares.
MAPLE
filter:= proc(k) local A, count, y, v;
if k mod 5 = 0 then return false fi;
count:= 0:
for y from k+2 by 2 do
v:= 2*k^2-y^2;
if v < 0 then break fi;
if issqr(v) then count:= count+1 fi;
od;
count = 2
end proc:
select(filter, [seq(i, i=1..10000, 2)]); # Robert Israel, Sep 27 2025
PROG
(PARI) ok(k)={if(k%2==0||k%5==0, 0, my(k2=k^2, L=List()); forstep(i=1, k-1, 2, my(d=k2-i^2); if(issquare(k2+d), listput(L, i))); #L==2)}
for(k=1, 10000, if(ok(k), print1(k, ", "))) \\ Andrew Howroyd, Sep 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Mohsin A. Shaikh, Sep 06 2019
EXTENSIONS
a(28)-a(43) from Andrew Howroyd, Sep 06 2019
STATUS
approved
