OFFSET
0,9
COMMENTS
The difference between the hypotenuse and the short leg of a primitive Pythagorean triple (p^2 - q^2, 2*p*q, p^2 + q^2) (where p > q are coprimes and not both odd) is d = max(2*q^2, (p - q)^2). For every of these primitive Pythagorean triples whose d divides n, there is a Pythagorean triple with w - u = n. Therefore d <= n and it follows that 1 <= q <= sqrt(n/2) and q + 1 <= p <= q + sqrt(n), which means that there is a finite number of Pythagorean triples with w - u = n.
LINKS
Felix Huber, Table of n, a(n) for n = 0..10000
Felix Huber, Pythagorean triples for which w - u = n
Eric Weisstein's World of Mathematics, Pythagorean Triple
EXAMPLE
The a(18) = 4 Pythagorean triples are (27, 36, 45), (16, 30, 34), (40, 42, 58), (7, 24, 25) because 45 - 27 = 34 - 16 = 58 - 40 = 25 - 7 = 18.
See also linked Maple program "Pythagorean triples for which w - u = n".
MAPLE
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Jan 07 2025
STATUS
approved