OFFSET
1,1
COMMENTS
All terms are divisible by 12. Proof: (Start)
Let (a, b, c) be a primitive Pythagorean triple. Since gcd(a, b, c) = 1, all and only the Pythagorean triples (k*c*a, k*c*b, k*c^2) have an integer altitude h = (k*c*a*k*c*b)/(k*c^2) = k*a*b, where k is a positive integer.
With a = p^2 - q^2 and b = 2*p*q follows h = 2*k*p*q*(p^2 - q^2) = k*2*p*q*(p + q)*(p - q), where p > q > 0, gcd(p,q) = 1 and p or q is even.
It is to show that p*q*(p + q)*(p - q) is divisible by 6. Since p or q is divisible by 2, it remains to show that p*q*(p + q)*(p - q) is divisible by 3.
If 3 is a divisor of p or q, p*q is divisible by 3. If p mod 3 = 1 and q mod 3 = 2 or p mod 3 = 2 and q mod 3 = 1, then p + q is divisible by 3. If p mod 3 = q mod 3 = 1 or p mod 3 = q mod 3 = 2, then p - q is divisible by 3.
It follows that all terms are divisible by 12. (End)
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Pythagorean Triple
EXAMPLE
MAPLE
A382932:=proc(H) # All hypotenuses <= H.
local a, b, c, k, p, q, L, M;
L:=[];
M:=[];
for p from 2 to floor(sqrt(H-1)) do
for q to min(p-1, floor(sqrt(H-p^2))) do
if gcd(p, q)=1 and is(p-q, odd) then
a:=p^2-q^2;
b:=2*p*q;
c:=p^2+q^2;
for k to iquo(H, c) do
L:=[op(L), [k*c, k*max(a, b), k*a*b/c]]
od
fi
od
od;
L:=sort(L);
for k to nops(L) do
if is(L[k, 3], integer) then
M:=[op(M), L[k, 3]]
fi
od;
return op(M)
end proc;
A382932(1075);
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Apr 13 2025
STATUS
approved
