Heronian triangle


In geometry, a Heronian triangle is a triangle that has side lengths and area that are all integers. Heronian triangles are named after Hero of Alexandria. The term is sometimes applied more widely to triangles whose sides and area are all rational numbers, since one can rescale the sides by a common multiple to obtain a triangle that is Heronian in the above sense.

Properties

Any right-angled triangle whose sidelengths are a Pythagorean triple is a Heronian triangle, as the side lengths of such a triangle are integers, and its area is also an integer, being half of the product of the two shorter sides of the triangle, at least one of which must be even.
An example of a Heronian triangle which is not right-angled is the isosceles triangle with sidelengths 5, 5, and 6, whose area is 12. This triangle is obtained by joining two copies of the right-angled triangle with sides 3, 4, and 5 along the sides of length 4. This approach works in general, as illustrated in the adjacent picture. One takes a Pythagorean triple, with c being largest, then another one, with e being largest, constructs the triangles with these sidelengths, and joins them together along the sides of length a, to obtain a triangle with integer side lengths c, e, and b + d, and with area
If a is even then the area A is an integer. Less obviously, if a is odd then A is still an integer, as b and d must both be even, making b+d even too.
Some Heronian triangles cannot be obtained by joining together two right-angled triangles with integer sides as described above. For example, a 5, 29, 30 Heronian triangle with area 72 cannot be constructed from two integer Pythagorean triangles since none of its altitudes are integers. Also no primitive Pythagorean triangle can be constructed from two smaller integer Pythagorean triangles. Such Heronian triangles are known as indecomposable. However, if one allows Pythagorean triples with rational values, not necessarily integers, then a decomposition into right triangles with rational sides always exists, because every altitude of a Heronian triangle is rational. So the Heronian triangle with sides 5, 29, 30 can be constructed from rational Pythagorean triangles with sides 7/5, 24/5, 5 and 143/5, 24/5, 29. Note that a Pythagorean triple with rational values is just a scaled version of a triple with integer values.
Other properties of Heronian triangles are as follows:
The Indian mathematician Brahmagupta derived the parametric solution such that every Heronian triangle has sides proportional to:
for integers m, n and k where:
The proportionality factor is generally a rational where q = gcd reduces the generated Heronian triangle to its primitive and p scales up this primitive to the required size. For example, taking m = 36, n = 4 and k = 3 produces a triangle with a = 5220, b = 900 and c = 5400, which is similar to the 5, 29, 30 Heronian triangle and the proportionality factor used has p = 1 and q = 180.
The obstacle for a computational use of Brahmagupta's parametric solution is the denominator q of the proportionality factor. q can only be determined by calculating the greatest common divisor of the three sides and introduces an element of unpredictability into the generation process. The easiest way of generating lists of Heronian triangles is to generate all integer triangles up to a maximum side length and test for an integral area.
Faster algorithms have been derived by.
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 formulas for Heronian triangles with one angle equal to twice another, Heronian triangles with sides in arithmetic progression, and isosceles Heronian triangles.

Second approach

The tangent of half of any interior angle of a Heronian triangle is necessarily rational; see properties above. These half angles are positive, and they sum to 90° because the interior angles sum to 180°. We start by choosing and to be any positive rational numbers satisfying. The limit of 1 ensures that angle is less than 90° and thus the angle will be positive. The value will also be a positive rational number because
We can compute the sine of any angle using the formula. We use the Law of sines to conclude that the side lengths are proportional to the sines of the interior angles:
The values, , and are rational because the values of, , and are rational. Integer values for the side lengths can be obtained by multiplying the side lengths by an integer that clears the denominators.
When it is also the case that,, or equals 1 then the corresponding interior angle will be a right angle and the three sides will also define a Pythagorean triple.

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 b+dside length eside length c
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

Lists of primitive Heronian triangles whose sides do not exceed 6,000,000 can be found at

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.

Almost-equilateral Heronian triangles

Since the area of an equilateral triangle with rational sides is an irrational number, no equilateral triangle is Heronian. However, there is a unique sequence of Heronian triangles that are "almost equilateral" because the three sides are of the form n − 1, n, n + 1. 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 n can be found by multiplying the previous value by 4, then subtracting the value prior to that one, thus:
where t denotes any row in the table. This is a Lucas sequence. Alternatively, the formula generates all n. Equivalently, let A = area and y = inradius, then,
where are solutions to n2 − 12y2 = 4. A small transformation n = 2x yields a conventional Pell equation x2 − 3y2 = 1, the solutions of which can then be derived from the regular continued fraction expansion for.
The variable n is of the form, where k is 7, 97, 1351, 18817, …. The numbers in this sequence have the property that k consecutive integers have integral standard deviation.