login
A394366
Longest sides z of integer-sided triangles (x <= y <= z) having at least one integral median and such that every integral median m satisfies gcd(x, y, z, m) = 1, ordered by increasing z, then y, then x.
4
6, 8, 9, 10, 12, 13, 13, 14, 14, 14, 14, 16, 17, 17, 17, 18, 18, 19, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 24, 24, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 32, 32, 32, 32
OFFSET
1,1
COMMENTS
Primitive cases only: gcd(x, y, z, m) = 1. All others arise by scaling a primitive triangle by an integer k > 1.
The middle and shortest sides are in A394367 and A394368, respectively. The corresponding median values m are in A394369.
A triangle (x <= y <= z) is included if there exists a median with integer length m = sqrt(2*y^2 + 2*z^2 - x^2)/2 (or cyclically at y or z), and every integral median m satisfies gcd(x, y, z, m) = 1.
From the parity condition in 4*m^2 = 2*y^2 + 2*z^2 - x^2 it follows that any side whose median is integral must be even. Thus the median divides the triangle into two integer-sided triangles. If medians to two distinct sides were integral, then x, y, z would all be even; under the gcd condition this leads to infinite 2-adic descent unless the two medians coincide. Hence at most one distinct integral median length can occur (in the isosceles case two medians may exist geometrically, but they are equal).
LINKS
Felix Huber, Maple program
Eric Weisstein's World of Mathematics, Triangle Median
EXAMPLE
6 is a term because in the triangle (x, y, z) = (5, 5, 6) the median to z = 6 has length m = 4. It splits z into 3 and 3, yielding two congruent triangles (3, 4, 5), and gcd(5, 5, 6, 4) = 1.
9 is a term because in the triangle (x, y, z) = (7, 8, 9) the median to y = 8 has length m = 7. It splits y into 4 and 4, yielding triangles (4, 7, 7) and (4, 7, 9), and gcd(7, 8, 9, 7) = 1.
14 is a term because in the triangle (x, y, z) = (8, 14, 14) the medians to y = 14 and z = 14 both have length m = 9. Each splits the side into 7 and 7, yielding triangles (7, 8, 9) and (7, 9, 14)., and gcd(8, 14, 14, 9) = 1.
MAPLE
# See Huber link.
KEYWORD
nonn
AUTHOR
Felix Huber, Mar 20 2026
STATUS
approved