OFFSET
1,1
COMMENTS
Least hypotenuse which is 2n short of the sum of the legs of a primitive Pythagorean triangle.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000 (correcting b-file from Ray Chandler)
MAPLE
f:= proc(r) local F, x, y, ys, ps, a, b, c;
F:= ifactors(r)[2];
ys:= map(proc(s) local t; mul(t[1]^t[2], t=s) end proc, combinat:-powerset(F));
if r::even then ys:= select(y -> (r/y)::odd, ys) fi;
ps:= map(y -> 4*y^2 + 6*r + 2*r^2/y^2, ys);
y:= ys[min[index](ps)];
x:= y + r/y;
x^2+y^2;
end proc:
map(f, [$1..60]); # Robert Israel, Jan 26 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Oct 23 2003
EXTENSIONS
More terms from Ray Chandler, Oct 25 2003
Name simplified by Ray Chandler, Jan 26 2020
Deleted a link to a bad web site - N. J. A. Sloane, Jan 26 2020
STATUS
approved
