In geometry, a Heronian triangle (or Heron triangle) is a triangle whose side lengths a, b, and c and area T are all positive integers. Heronian triangles are named after Heron of Alexandria, based on their relation to Heron's formula which Heron demonstrated with the example triangle of sides 13, 14, 15 and area 84. Heron's formula implies that the Heronian triangles are exactly the positive integer solutions of the Diophantine equation 16T2=(a+b+c)(a+b−c)(b+c−a)(c+a−b); that is, the side lengths and area of any Heronian triangle satisfy the equation, and any positive integer solution of the equation describes a Heronian triangle. If the three side lengths are setwise coprime (meaning that the greatest common divisor of all three sides is 1), the Heronian triangle is called primitive. Triangles whose side lengths and areas are all rational numbers (positive rational solutions of the above equation) are sometimes also called Heronian triangles or rational triangles; in this article, these more general triangles will be called rational Heronian triangles. Every (integral) Heronian triangle is a rational Heronian triangle. Conversely, every rational Heronian triangle is geometrically similar to exactly one primitive Heronian triangle. In any rational Heronian triangle, the three altitudes, the circumradius, the inradius and exradii, and the sines and cosines of the three angles are also all rational numbers.
Scaling to primitive triangles Scaling a triangle with a factor of s consists of multiplying its side lengths by s; this multiplies the area by s2 and produces a similar triangle. Scaling a rational Heronian triangle by a rational factor produces another rational Heronian triangle. Given a rational Heronian triangle of side lengths pd,qd,rd, the scale factor dgcd(p,q,r) produces a rational Heronian triangle such that its side lengths a,b,c are setwise coprime integers. It is proved below that the area T is an integer, and thus the triangle is a Heronian triangle. Such a triangle is often called a primitive Heronian triangle. In summary, every similarity class of rational Heronian triangles contains exactly one primitive Heronian triangle. A byproduct of the proof is that exactly one of the side lengths of a primitive Heronian triangle is an even integer. Proof: One has to prove that, if the side lengths a,b,c of a rational Heronian triangle are coprime integers, then the area T is also an integer and exactly one of the side lengths is even. The Diophantine equation given in the introduction shows immediately that 16T2 is an integer. Its square root 4T is also an integer, since the square root of an integer is either an integer or an irrational number. If exactly one of the side lengths is even, all the factors in the right-hand side of the equation are even, and, by dividing the equation by 16, one gets that T2 and T are integers. As the side lengths are supposed to be coprime, one is left with the case where one or three side lengths are odd. Supposing that c is odd, the right-hand side of the Diophantine equation can be rewritten ((a+b)2−c2)(c2−(a−b)2), with a+b and a−b even. As the square of an odd integer is congruent to 1 modulo 4, the right-hand side of the equation must be congruent to −1 modulo 4. It is thus impossible, that one has a solution of the Diophantine equation, since 16T2 must be the square of an integer, and the square of an integer is congruent to 0 or 1 modulo 4.
Examples Any Pythagorean triangle is a Heronian triangle. The side lengths of such a triangle are integers, by definition. In any such triangle, one of the two shorter sides has even length, so the area (the product of these two sides, divided by two) is also an integer.
Examples of Heronian triangles that are not right-angled are the isosceles triangle obtained by joining a Pythagorean triangle and its mirror image along a side of the right angle. Starting with the Pythagorean triple 3, 4, 5 this gives two Heronian triangles with side lengths (5, 5, 6) and (5, 5, 8) and area 12. More generally, given two Pythagorean triples (a,h,c1) and (b,h,c2) with largest entries a and b, one can join the corresponding triangles along the sides of length h (see the figure) to get a Heronian triangle with side lengths a,b,c1+c2 and area 12h(c1+c2). There are Heronian triangles that cannot be obtained by joining Pythagorean triangles. For example, the Heronian triangle of side lengths 5,29,30 and area 72, since none of its altitudes is an integer. Such Heronian triangles are known as indecomposable. However, every Heronian triangle can be constructed from right triangles with rational side lengths, and is thus similar to a decomposable Heronian triangle. In fact, at least one of the altitudes of a triangle is inside the triangle, and divides it into two right triangles. These triangles have rational sides, since the cosine and the sine of the angles of a Heronian triangle are rational numbers, and, with notation of the figure, one has h=asinα and c1=acosα, where α is the left-most angle of the triangle.
Rationality properties Many quantities related to a Heronian triangle are rational numbers. In particular:
… excerpt ends here. Continue reading the full article.

