Heronian triangle


In geometry, a Heronian triangle is a triangle whose side lengths,, and and area 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 and area.
Heron's formula implies that the Heronian triangles are exactly the positive integer solutions of the Diophantine equation
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, the Heronian triangle is called primitive.
Triangles whose side lengths and areas are all rational numbers are sometimes also called Heronian triangles or rational triangles; in this article, these more general triangles will be called rational Heronian triangles. Every 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 consists of multiplying its side lengths by ; this multiplies the area by 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 the scale factor produces a rational Heronian triangle such that its side lengths are setwise coprime integers. It is proved below that the area 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 of a rational Heronian triangle are coprime integers, then the area is also an integer and exactly one of the side lengths is even.
The Diophantine equation given in the introduction shows immediately that is an integer. Its square root 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, one gets that and 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 is odd, the right-hand side of the Diophantine equation can be rewritten
with and even. As the square of an odd integer is congruent to modulo, the right-hand side of the equation must be congruent to modulo. It is thus impossible, that one has a solution of the Diophantine equation, since must be the square of an integer, and the square of an integer is congruent to or modulo.

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 is also an integer.
[Image:Triangle-heronian.svg|thumb|right|A triangle with sidelengths, and, and height.]
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 this gives two Heronian triangles with side lengths and and area.
More generally, given two Pythagorean triples and with largest entries and, one can join the corresponding triangles along the sides of length for getting a Heronian triangle with side lengths and area .
There are Heronian triangles that cannot be obtained by joining Pythagorean triangles. For example, the Heronian triangle of side lengths and area 72, since none of its altitudes is an integer. Such Heronian triangles are known as. 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 and where is the left-most angle of the triangle.

Rationality properties

Many quantities related to a Heronian triangle are rational numbers. In particular:
  • All the altitudes of a Heronian triangle are rational. This can be seen from the fact that the area of a triangle is half of one side times its altitude from that side, and a Heronian triangle has integer sides and area. Some Heronian triangles have three non-integer altitudes, for example the acute with area 252 and the obtuse with area 72. Any Heronian triangle with one or more non-integer altitudes can be scaled up by a factor equalling the least common multiple of the altitudes' denominators in order to obtain a similar Heronian triangle with three integer altitudes.
  • All the interior perpendicular bisectors of a Heronian triangle are rational: For any triangle these are given by and where the sides are and the area is ; in a Heronian triangle all of,,, and are integers.
  • Every interior angle of a Heronian triangle has a rational sine. This follows from the area formula, in which the area and the sides and are integers, and equivalently for the other interior angles.
  • Every interior angle of a Heronian triangle has a rational cosine. This follows from the law of cosines,, in which the sides,, and are integers, and equivalently for the other interior angles.
  • Because all Heronian triangles have all interior angles' sines and cosines rational, this implies that the tangent, cotangent, secant, and cosecant of each interior angle is either rational or infinite.
  • Half of each interior angle has a rational tangent because, and equivalently for other interior angles. Knowledge of these half-angle tangent values is sufficient to reconstruct the side lengths of a primitive Heronian triangle.
  • For any triangle, the angle spanned by a side as viewed from the center of the circumcircle is twice the interior angle of the triangle vertex opposite the side. Because the half-angle tangent for each interior angle of a Heronian triangle is rational, it follows that the quarter-angle tangent of each such central angle of a Heronian triangle is rational. The reverse is true for all cyclic polygons generally; if all such central angles have rational tangents for their quarter angles then the cyclic polygon can be scaled to simultaneously have integer area, sides, and diagonals.
  • There are no Heronian triangles whose three internal angles form an arithmetic progression. This is because all plane triangles with interior angles in an arithmetic progression must have one interior angle of 60°, which does not have a rational sine.
  • Any square inscribed in a Heronian triangle has rational sides: For a general triangle the inscribed square on side of length has length where is the triangle's area; in a Heronian triangle, both and are integers.
  • Every Heronian triangle has a rational inradius : For a general triangle the inradius is the ratio of the area to half the perimeter, and both of these are rational in a Heronian triangle.
  • Every Heronian triangle has a rational circumradius : For a general triangle the circumradius equals one-fourth the product of the sides divided by the area; in a Heronian triangle the sides and area are integers.
  • In a Heronian triangle the distance from the centroid to each side is rational because, for all triangles, this distance is the ratio of twice the area to three times the side length. This can be generalized by stating that all centers associated with Heronian triangles whose barycentric coordinates are rational ratios have a rational distance to each side. These centers include the circumcenter, orthocenter, nine-point center, symmedian point, Gergonne point and Nagel point.
  • Every Heronian triangle can be placed on a unit-sided square lattice with each vertex at a lattice point. As a corollary, every rational Heronian triangle can be placed into a two-dimensional Cartesian coordinate system with all rational-valued coordinates.

Properties of side lengths

Here are some properties of side lengths of Heronian triangles, whose side lengths are and area is.
  • Every primitive Heronian triangle has one even and two odd sides. It follows that a Heronian triangle has either one or three sides of even length, and that the perimeter of a primitive Heronian triangle is always an even number.
  • There are no equilateral Heronian triangles, since a primitive Heronian triangle has one even side length and two odd side lengths.
  • The area of a Heronian triangle is always divisible by 6.
  • There are no Heronian triangles with a side length of either 1 or 2.
  • There exist an infinite number of primitive Heronian triangles with one side length equal to a given, provided that.
  • The semiperimeter of a Heronian triangle cannot be prime.
  • In a Heronian triangles that has no integer altitude, all side lengths have a prime factor of the form . In a primitive Pythagoran triangle, all prime factors of the hypotenuse have the form. A decomposable Heronian triangle must have two sides that are the hypotenuse of a Pythagorean triangle, and thus two sides that have prime factors of the form. There may also be prime factors of the form, since the Pythagorean components of a decomposable Heronian triangle need not to be primitive, even if the Heronian triangle is primitive. In summary, all Heronian triangles have at least one side that is divisible by a prime of the form.
  • There are no Heronian triangles whose side lengths form a geometric progression.
  • If any two sides of a Heronian triangle have a common factor, that factor must be the sum of two squares.

Parametrizations

A parametric equation or parametrization of Heronian triangles consists of an expression of the side lengths and area of a triangle as functionstypically polynomial functionsof some parameters, such that the triangle is Heronian if and only if the parameters satisfy some constraintstypically, to be positive integers satisfying some inequalities. It is also generally required that all Heronian triangles can be obtained up to a scaling for some values of the parameters, and that these values are unique, if an order on the sides of the triangle is specified.
The first such parametrization was discovered by Brahmagupta, who did not prove that all Heronian triangles can be generated by the parametrization. In the 18th century, Leonhard Euler provided another parametrization and proved that it generates all Heronian triangles. These parametrizations are described in the next two subsections.
In the third subsection, a rational parametrizationthat is a parametrization where the parameters are positive rational numbersis naturally derived from properties of Heronian triangles. Both Brahmagupta's and Euler's parametrizations can be recovered from this rational parametrization by clearing denominators. This provides a proof that Brahmagupta's and Euler's parametrizations generate all Heronian triangles.

Brahmagupta's parametric equation

The Indian mathematician Brahmagupta discovered the following parametric equations for generating Heronian triangles, but did not prove that every similarity class of Heronian triangles can be obtained this way.
For three positive integers, and that are setwise coprime and satisfy and :
where is the semiperimeter, is the area, and is the inradius.
The resulting Heronian triangle is not always primitive, and a scaling may be needed for getting the corresponding primitive triangle. For example, taking, and produces a triangle with, and, which is similar to the Heronian triangle with a proportionality factor of.
The fact that the generated triangle is not primitive is an obstacle for using this parametrization for generating all Heronian triangles with size lengths less than a given bound, since the size of cannot be predicted.

Euler's parametric equation

The following method of generating all Heronian triangles was discovered by Leonhard Euler, who was the first to provably parametrize all such triangles.
For four positive integers coprime to and coprime to satisfying :
where is the semiperimeter, is the area, and is the inradius.
Even when,,, and are pairwise coprime, the resulting Heronian triangle may not be primitive. In particular, if,,, and are all odd, the three side lengths are even. It is also possible that,, and have a common divisor other than. For example, with,,, and, one gets, where each side length is a multiple of ; the corresponding primitive triple is, which can also be obtained by dividing the triple resulting from by two, then exchanging and.

Half-angle tangent parametrization

Let be the side lengths of any triangle, let be the interior angles opposite these sides, and let and be the half-angle tangents. The values are all positive and satisfy ; this "triple tangent identity" is the half-angle tangent version of the fundamental triangle identity written as radians, as can be proved using the addition formula for tangents. By the laws of sines and cosines, all of the sines and the cosines of are rational numbers if the triangle is a rational Heronian triangle and, because a half-angle tangent is a rational function of the sine and cosine, it follows that the half-angle tangents are also rational.
Conversely, if are positive rational numbers such that it can be seen that they are the half-angle tangents of the interior angles of a class of similar Heronian triangles. The condition can be rearranged to and the restriction requires Thus there is a bijection between the similarity classes of rational Heronian triangles and the pairs of positive rational numbers whose product is less than.
To make this bijection explicit, one can choose, as a specific member of the similarity class, the triangle inscribed in a unit-diameter circle with side lengths equal to the sines of the opposite angles:
where is the semiperimeter, is the area, is the inradius, and all these values are rational because and are rational.
To obtain an Heronian triangle, the denominators of,, and must be cleared. There are several ways to do this. If and with, and the triangle is scaled up by the result is Euler's parametrization. If and with, and the triangle is scaled up by the result is similar but not quite identical to Brahmagupta's parametrization. If, instead, this is and that are reduced to the lowest common denominator, that is, if and with then one gets exactly Brahmagupta's parametrization by scaling up the triangle by
This proves that either parametrization generates all Heronian triangles.
The values of, and that give the set of triangles that are geometrically similar to the triangle with side lengths,, and, semiperimeter, and area are

Other results

has derived fast algorithms for generating Heronian triangles.
There are infinitely many primitive and [|indecomposable] non-Pythagorean Heronian triangles with integer values for the inradius and all three of the exradii, including the ones generated by
There are infinitely many Heronian triangles that can be placed on a lattice such that not only are the vertices at lattice points, as holds for all Heronian triangles, but additionally the centers of the incircle and excircles are at lattice points.
See also for parametrizations of some types of Heronian triangles.

Examples

The list of primitive integer Heronian triangles, sorted by area and, if this is the same,
by perimeter, starts as in the following table.
"Primitive" means that
the greatest common divisor of the three side lengths equals 1.
AreaPerimeterside length side length side length
612543
1216655
1218855
243215134
303013125
363617109
365426253
424220157
6036131310
604017158
6050241313
606029256
6644201311
726430295
8442151413
8448211710
845625247
847235298
9054251712
9010853514
11476372019
12050171716
12064301717
12080392516
12654212013
12684412815
12610852515
13266302511
15678372615
156104514013
16864252514
16884393510
16898482525
18080373013
1809041409
198132655512
20468262517
21070292120
21070282517
21084392817
21084373512
21014068657
2103001491483
21616280739
234108524115
24090403713
25284353415
25298454013
25214470659
26496443715
264132653433
270108522927
288162806517
300150745125
3002501231225
306108513720
330100443917
330110523325
330132616011
33022010910011
33698414017
336112533524
336128615215
3363921951934
36090362925
360100414118
360162804141
390156756813
396176875534
396198979011
39624212010913

The list of primitive Heronian triangles whose sides do not exceed 600,000 has been computed by.

Heronian triangles with perfect square sides

As of February 2021, only two primitive Heronian triangles with perfect square sides are known:
, published in 2013.
, published in 2018.
Heronian triangles with perfect square sides are connected to the Perfect cuboid problem. The existence of a solution to the Perfect cuboid problem is equivalent to the existence of a solution to the Perfect square triangle problem: "Does there exist a triangle whose side lengths are perfect squares and whose angle bisectors are integers?".

Equable triangles

A shape is called equable if its area equals its perimeter. There are exactly five equable Heronian triangles: the ones with side lengths,,,, and, though only four of them are primitive.

Almost-equilateral Heronian triangles

Since the area of an equilateral triangle with rational sides is an irrational number, no equilateral triangle is Heronian. However, a sequence of isosceles Heronian triangles that are "almost equilateral" can be developed from the duplication of right-angled triangles, in which the hypotenuse is almost twice as long as one of the legs. The first few examples of these almost-equilateral triangles are listed in the following table :
There is a unique sequence of Heronian triangles that are "almost equilateral" because the three sides are of the form,,. A method for generating all solutions to this problem based on continued fractions was described in 1864 by Edward Sang, and in 1880 Reinhold Hoppe gave a closed-form expression for the solutions. The first few examples of these almost-equilateral triangles are listed in the following table :
Subsequent values of can be found by multiplying the previous value by 4, then subtracting the value prior to that one, thus:
where denotes any row in the table. This is a Lucas sequence. Alternatively, the formula generates all for positive integers. Equivalently, let and, then,
where are solutions to. A small transformation yields a conventional Pell equation, the solutions of which can then be derived from the regular continued fraction expansion for.
The variable is of the form, where is 7, 97, 1351, 18817,.... The numbers in this sequence have the property that consecutive integers have integral standard deviation.