OFFSET
1,1
COMMENTS
Numbers whose square is the sum of the legs of primitive Pythagorean triangles with hypotenuse A088319(n).
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
EXAMPLE
31 is in the sequence because it is associated with the primitive Pythagorean triangle (400,561,689) where 400+561=31^2.
MATHEMATICA
terms = 1000; jmax = 100; kmax = 200;
Reap[Do[If[CoprimeQ[j, k], e = j^2 - j k + k^2/2; f = j k; If[e > f, Sow[{e^2 + f^2, Abs[j^2 - k^2/2]}]]], {j, 1, jmax}, {k, 2, kmax, 2}]][[2, 1]] // Sort // #[[;; terms, 2]]& (* Jean-François Alcover, Mar 05 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Nov 17 2003
EXTENSIONS
More terms from Ray Chandler, Nov 16 2003
STATUS
approved