A Heronian triangle with sidelengthsc,e andb + d, and heighta, all integers.
Aninteger triangle orintegral triangle is atriangle all of whose side lengths areintegers. Arational triangle is one whose side lengths arerational numbers; any rational triangle can berescaled by thelowest common denominator of the sides to obtain asimilar integer triangle, so there is a close relationship between integer triangles and rational triangles.
Sometimes other definitions of the termrational triangle are used: Carmichael (1914) and Dickson (1920) use the term to mean aHeronian triangle (a triangle with integral or rational side lengths and area);[1] Conway and Guy (1996) define a rational triangle as one with rational sides and rationalangles measured in degrees—the only such triangles are rational-sidedequilateral triangles.[2]
Any triple of positive integers can serve as the side lengths of an integer triangle as long as it satisfies thetriangle inequality: the longest side is shorter than the sum of the other two sides. Each such triple defines an integer triangle that is uniqueup tocongruence. So the number of integer triangles (up to congruence) withperimeterp is the number ofpartitions ofp into three positive parts that satisfy the triangle inequality. This is the integer closest to whenp iseven and to whenp isodd.[3][4] It also means that the number of integer triangles with even numbered perimeters is the same as the number of integer triangles with odd numbered perimeters Thus there is no integer triangle with perimeter 1, 2 or 4, one with perimeter 3, 5, 6 or 8, and two with perimeter 7 or 10. Thesequence of the number of integer triangles with perimeterp, starting at is:
The number of integer triangles (up to congruence) with given largest sidec and integer triple is the number of integer triples such that and This is the integer value[3] Alternatively, forc even it is the doubletriangular number and forc odd it is thesquare It also means that the number of integer triangles with greatest sidec exceeds the number of integer triangles with greatest sidec − 2 byc. The sequence of the number of non-congruent integer triangles with largest sidec, starting atc = 1, is:
The number of integer triangles (up to congruence) with given largest sidec and integer triple (a, b, c) that lie on or within a semicircle of diameterc is the number of integer triples such thata + b > c , a2 + b2 ≤ c2 anda ≤ b ≤ c. This is also the number of integer sidedobtuse orright (non-acute) triangles with largest sidec. The sequence starting atc = 1, is:
Consequently, the difference between the two above sequences gives the number of acute integer sided triangles (up to congruence) with given largest sidec. The sequence starting atc = 1, is:
ByHeron's formula, ifT is thearea of a triangle whose sides have lengthsa,b, andc then
Since all the terms under theradical on the right side of the formula are integers it follows that all integer triangles must have16T2 an integer andT2 will be rational.
If the angles of any triangle form anarithmetic progression then one of its angles must be 60°.[5] For integer triangles the remaining angles must also have rational cosines and a method of generating such triangles is given below. However, apart from the trivial case of an equilateral triangle, there are no integer triangles whose angles form either ageometric orharmonic progression. This is because such angles have to be rational angles of the form with rational But all the angles of integer triangles must have rational cosines and this will occur only when[6]: p.2 i.e. the integer triangle is equilateral.
The square of each internalangle bisector of an integer triangle is rational, because the general triangle formula for the internal angle bisector of angleA is wheres is thesemiperimeter (and likewise for the other angles' bisectors).
The square of twice anymedian of an integer triangle is an integer, because the general formula for the squared medianma2 to sidea is, giving (2ma)2 = 2b2 + 2c2 − a2 (and likewise for the medians to the other sides).
A Heronian triangle, also known as aHeron triangle or aHero triangle, is a triangle with integer sides and integer area.
All Heronian triangles can be placed on alattice with each vertex at a lattice point.[7] Furthermore, if an integer triangle can be place on a lattice with each vertex at a lattice point it must be Heronian.
Every Heronian triangle has sides proportional to[8]
for integersm,n andk subject to the constraints:
The proportionality factor is generally a rational whereq =gcd(a,b,c) reduces the generated Heronian triangle to its primitive and scales up this primitive to the required size.
A Pythagorean triangle is right-angled and Heronian. Its three integer sides are known as aPythagorean triple orPythagorean triplet orPythagorean triad.[9] All Pythagorean triples withhypotenuse which areprimitive (the sides having nocommon factor) can be generated by
wherem andn arecoprime integers and one of them is even withm > n.
Every even number greater than 2 can be the leg of a Pythagorean triangle (not necessarily primitive) because if the leg is given by and we choose as the other leg then the hypotenuse is.[10] This is essentially the generation formula above with set to 1 and allowing to range from 2 to infinity.
Pythagorean triangles with integer altitude from the hypotenuse
There are no primitive Pythagorean triangles with integer altitude from the hypotenuse. This is because twice the area equals any base times the corresponding height: 2 times the area thus equals bothab andcd whered is the height from the hypotenusec. The three side lengths of a primitive triangle are coprime, so is in fully reduced form; sincec cannot equal 1 for any primitive Pythagorean triangle,d cannot be an integer.
However, any Pythagorean triangle with legsx, y and hypotenusez can generate a Pythagorean triangle with an integer altitude, by scaling up the sides by the length of the hypotenusez. Ifd is the altitude, then the generated Pythagorean triangle with integer altitude is given by[11]
Consequently, all Pythagorean triangles with legsa andb, hypotenusec, and integer altituded from the hypotenuse, with, which necessarily satisfy botha2 + b2 = c2 and, are generated by[12][11]
for coprime integersm,n withm > n.
Heronian triangles with sides in arithmetic progression
All Heronian triangles withB = 2A are generated by[14] either
with integersk,s,r such that or
with integersq,u,v such that and
No Heronian triangles withB = 2A are isosceles or right triangles because all resulting angle combinations generate angles with non-rationalsines, giving a non-rational area or side.
Allisosceles Heronian triangles are decomposable. They are formed by joining two congruent Pythagorean triangles along either of their common legs such that the equal sides of the isosceles triangle are the hypotenuses of the Pythagorean triangles, and the base of the isosceles triangle is twice the other Pythagorean leg. Consequently, every Pythagorean triangle is the building block for two isosceles Heronian triangles since the join can be along either leg.All pairs of isosceles Heronian triangles are given by rational multiples of the following side lengths:[15]
for coprime integers of opposite parity and, with.
Heronian triangles whose perimeter is four times a prime
It has been shown that a Heronian triangle whose perimeter is four times aprime is uniquely associated with the prime and that the prime iscongruent to or modulo.[16][17] It is well known that such a prime can be uniquely partitioned into integers and such that (seeEuler's idoneal numbers). Furthermore, it has been shown that such Heronian triangles are primitive since the smallest side of the triangle has to be equal to the prime that is one quarter of its perimeter.
Consequently, all primitive Heronian triangles whose perimeter is four times a prime can be generated by
for integers and such that is a prime.
Furthermore, the factorization of the area is where is prime. However the area of a Heronian triangle is always divisible by. This gives the result that apart from when and which gives all other parings of and must have odd with only one of them divisible by.
If in a Heronian triangle the angle bisector of the angle, the angle bisector of the angle and the angle bisector of the angle have a rational relationship with the three sides then not only but also, and must beHeronian angles. Namely, if both angles and are Heronian then, the complement of, must also be a Heronian angle, so that all three angle-bisectors are rational. This is also evident if one multiplies:
together. Namely, through this one obtains:
where denotes the semi-perimeter, and the area of the triangle.
All similarity classes of Heronian triangles with rational angle bisectors are generated by[18]
where are such that
where are arbitrary integers such that
and coprime,
and coprime.
Heronian triangles with integer inradius and exradii
There are infinitely many decomposable, and infinitely many indecomposable, primitive Heronian (non-Pythagorean) triangles with integer radii for theincircle and eachexcircle.[19]: Thms. 3 and 4 A family of decomposable ones is given by
There existtetrahedra having integer-valuedvolume and Heron triangles asfaces. One example has one edge of 896, the opposite edge of 190, and the other four edges of 1073; two faces have areas of 436800 and the other two have areas of 47120, while the volume is 62092800.[9]: p.107
A 2Dlattice is a regular array of isolated points where if any one point is chosen as theCartesian origin (0, 0), then all the other points are at (x, y) wherex andy range over all positive and negative integers. A lattice triangle is any triangle drawn within a 2D lattice such that all vertices lie on lattice points. ByPick's theorem a lattice triangle has a rational area that either is an integer or ahalf-integer (has a denominator of 2). If the lattice triangle has integer sides then it is Heronian with integer area.[20]
Furthermore, it has been proved that all Heronian triangles can be drawn as lattice triangles.[21][22] Consequently, an integer triangle is Heronian if and only if it can be drawn as a lattice triangle.
Anautomedian triangle is one whose medians are in the same proportions (in the opposite order) as the sides. Ifx,y, andz are the three sides of a right triangle, sorted in increasing order by size, and if 2x < z, thenz,x + y, andy − x are the three sides of an automedian triangle. For instance, the right triangle with side lengths 5, 12, and 13 can be used in this way to form the smallest non-trivial (i.e., non-equilateral) integer automedian triangle, with side lengths 13, 17, and 7.[23]
Consequently, usingEuclid's formula, which generates primitive Pythagorean triangles, it is possible to generate primitive integer automedian triangles as
with and coprime and odd, and (if the quantity inside theabsolute value signs is negative) or (if that quantity is positive) to satisfy thetriangle inequality.
An important characteristic of the automedian triangle is that the squares of its sides form anarithmetic progression. Specifically, so
Integer triangles with one angle at vertexA having given rational cosineh /k (h < 0 or > 0;k > 0) are given by[26]
wherep andq are any coprime positive integers such thatp >qk. All primitive solutions can be obtained by dividinga,b, andc by their greatest common divisor.
Integer triangles with a 60° angle (angles in arithmetic progression)
All integer triangles with a 60° angle have their angles in an arithmetic progression. All such triangles are proportional to:[5]
with coprime integersm,n and 1 ≤ n ≤ m or 3m ≤ n. From here, all primitive solutions can be obtained by dividinga,b, andc by their greatest common divisor.
Integer triangles with a 60° angle can also be generated by[27]
with coprime integersm,n with 0 < n < m (the angle of 60° is opposite to the side of lengtha). From here, all primitive solutions can be obtained by dividinga,b, andc by their greatest common divisor (e.g. an equilateral triangle solution is obtained by takingm = 2 andn = 1, but this producesa =b =c = 3, which is not a primitive solution). See also[28][29]
More precisely, If, then, otherwise. Two different pairs and generate the same triple. Unfortunately the two pairs can both have a gcd of 3, so we can't avoid duplicates by simply skipping that case. Instead, duplicates can be avoided by going only till. We still need to divide by 3 if the gcd is 3. The only solution for under the above constraints is for. With this additional constraint all triples can be generated uniquely.
AnEisenstein triple is a set of integers which are the lengths of the sides of a triangle where one of the angles is 60 degrees.
Integer triangles with a 120° angle can be generated by[30]
with coprime integersm, n with 0 < n < m (the angle of 120° is opposite to the side of lengtha). From here, all primitive solutions can be obtained by dividinga,b, andc by their greatest common divisor. The smallest solution, form = 2 andn = 1, is the triangle with sides (3,5,7). See also.[28][29]
More precisely, If, then, otherwise. Since the biggest sidea can only be generated with a single pair, each primitive triple can be generated in precisely two ways: once directly with a gcd of 1, and once indirectly with a gcd of 3. Therefore, in order to generate all primitive triples uniquely, one can just add additional condition.[citation needed]
Integer triangles with one angle equal to an arbitrary rational number times another angle
For positive coprime integersh andk, the triangle with the following sides has angles,, and and hence two angles in the ratioh :k, and its sides are integers:[31]
where andp andq are any coprime integers such that.
Integer triangles with one angle equal to twice another
The only integer triangle with three rational angles (rational numbers of degrees, or equivalently rational fractions of a full turn) is theequilateral triangle.[2] This is because integer sides imply three rationalcosines by thelaw of cosines, and byNiven's theorem a rational cosine coincides with a rational angle if and only if the cosine equals 0, ±1/2, or ±1. The only ones of these giving an angle strictly between 0° and 180° are the cosine value 1/2 with the angle 60°, the cosine value –1/2 with the angle 120°, and the cosine value 0 with the angle 90°. The only combination of three of these, allowing multiple use of any of them and summing to 180°, is three 60° angles.
Integer triangles with integer ratio of circumradius to inradius
Conditions are known in terms ofelliptic curves for an integer triangle to have an integer ratioN of thecircumradius to theinradius.[35][36] The smallest case, that of theequilateral triangle, hasN = 2. In every known case, – that is, is divisible by 8.
A 5-Con triangle pair is a pair of triangles that aresimilar but notcongruent and that share three angles and two sidelengths. Primitive integer 5-Con triangles, in which the four distinct integer sides (two sides each appearing in both triangles, and one other side in each triangle) share no prime factor, have triples of sides
and
for positive coprime integersx andy. The smallest example is the pair (8, 12, 18), (12, 18, 27), generated byx = 2,y = 3.
The only triangle with consecutive integers for sides and area has sides (3, 4, 5) and area 6.
The only triangle with consecutive integers for an altitude and the sides has sides (13, 14, 15) and altitude from side 14 equal to 12.
The (2, 3, 4) triangle and its multiples are the only triangles with integer sides in arithmetic progression and having the complementary exterior angle property.[37][38][39] This property states that if angle C is obtuse and if a segment is dropped from B meeting perpendicularly ACextended at P, then ∠CAB=2∠CBP.
The (3, 4, 5) triangle and its multiples are the only integer right triangles having sides in arithmetic progression.[39]
The (4, 5, 6) triangle and its multiples are the only triangles with one angle being twice another and having integer sides in arithmetic progression.[39]
The (3, 5, 7) triangle and its multiples are the only triangles with a 120° angle and having integer sides in arithmetic progression.[39]
The only integer triangle with area = semiperimeter[40] has sides (3, 4, 5).
The only integer triangles with area = perimeter have sides[40][41] (5, 12, 13), (6, 8, 10), (6, 25, 29), (7, 15, 20), and (9, 10, 17). Of these the first two, but not the last three, are right triangles.
There exist integer triangles with three rationalmedians.[9]: p. 64 The smallest has sides (68, 85, 87). Others include (127, 131, 158), (113, 243, 290), (145, 207, 328) and (327, 386, 409).
The only primitive Pythagorean triangles for which the square of the perimeter equals an integer multiple of the area are (3, 4, 5) with perimeter 12 and area 6 and with the ratio of perimeter squared to area being 24; (5, 12, 13) with perimeter 30 and area 30 and with the ratio of perimeter squared to area being 30; and (9, 40, 41) with perimeter 90 and area 180 and with the ratio of perimeter squared to area being 45.[42]
There exists a unique (up to similitude) pair of a rational right triangle and a rational isosceles triangle which have the same perimeter and the same area. The unique pair consists of the (377, 135, 352) triangle and the (366, 366, 132) triangle.[43] There is no pair of such triangles if the triangles are also required to be primitive integral triangles.[43] The authors stress the striking fact that the second assertion can be proved by an elementary argumentation (they do so in their appendix A), whilst the first assertion needs modern highly non-trivial mathematics.
^Carmichael, R. D. (1959) [1914]. "Diophantine Analysis". In R. D. Carmichael (ed.).The Theory of Numbers and Diophantine Analysis. Dover Publications. pp. 11–13].
^abConway, J. H., and Guy, R. K., "The only rational triangle", inThe Book of Numbers, 1996, Springer-Verlag, pp. 201 and 228–239.
^abTom Jenkyns and Eric Muller, Triangular Triples from Ceilings to Floors, American Mathematical Monthly 107:7 (August 2000) 634–639