An integer triangle or integral triangle is a
triangle
A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimension ...
all of whose side lengths are
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s. A rational triangle is one whose side lengths are
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s; any rational triangle can be
rescaled by the
lowest common denominator
In mathematics, the lowest common denominator or least common denominator (abbreviated LCD) is the lowest common multiple of the denominators of a set of fractions. It simplifies adding, subtracting, and comparing fractions.
Description
The l ...
of the sides to obtain a
similar integer triangle, so there is a close relationship between integer triangles and rational triangles.
Sometimes other definitions of the term ''rational triangle'' are used: Carmichael (1914) and Dickson (1920) use the term to mean a
Heronian triangle (a triangle with integral or rational side lengths and area); Conway and Guy (1996) define a rational triangle as one with rational sides and rational
angle
In Euclidean geometry, an angle can refer to a number of concepts relating to the intersection of two straight Line (geometry), lines at a Point (geometry), point. Formally, an angle is a figure lying in a Euclidean plane, plane formed by two R ...
s measured in degrees—the only such triangles are rational-sided
equilateral triangle
An equilateral triangle is a triangle in which all three sides have the same length, and all three angles are equal. Because of these properties, the equilateral triangle is a regular polygon, occasionally known as the regular triangle. It is the ...
s.
[Conway, J. H., and Guy, R. K., "The only rational triangle", in ''The Book of Numbers'', 1996, Springer-Verlag, pp. 201 and 228–239.]
General properties for an integer triangle
Integer triangles with given perimeter
Any triple of positive integers can serve as the side lengths of an integer triangle as long as it satisfies the
triangle inequality
In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side.
This statement permits the inclusion of Degeneracy (mathematics)#T ...
: the longest side is shorter than the sum of the other two sides. Each such triple defines an integer triangle that is unique
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation "
* if and are related by , that is,
* if holds, that is,
* if the equivalence classes of and with respect to are equal.
This figure of speech ...
congruence. So the number of integer triangles (up to congruence) with
perimeter
A perimeter is the length of a closed boundary that encompasses, surrounds, or outlines either a two-dimensional shape or a one-dimensional line. The perimeter of a circle or an ellipse is called its circumference.
Calculating the perimet ...
''p'' is the number of
partitions of ''p'' into three positive parts that satisfy the triangle inequality. This is the integer closest to
when ''p'' is
even and to
when ''p'' is
odd.
[Tom Jenkyns and Eric Muller, Triangular Triples from Ceilings to Floors, American Mathematical Monthly 107:7 (August 2000) 634–639] 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. The
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
of the number of integer triangles with perimeter ''p'', starting at
is:
:0, 0, 1, 0, 1, 1, 2, 1, 3, 2, 4, 3, 5, 4, 7, 5, 8, 7, 10, 8 ...
This is called
Alcuin's sequence.
Integer triangles with given largest side
The number of integer triangles (up to congruence) with given largest side ''c'' and integer triple
is the number of integer triples such that
and
This is the integer value
[ Alternatively, for ''c'' even it is the double ]triangular number
A triangular number or triangle number counts objects arranged in an equilateral triangle. Triangular numbers are a type of figurate number, other examples being square numbers and cube numbers. The th triangular number is the number of dots in ...
and for ''c'' odd it is the square
In geometry, a square is a regular polygon, regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal si ...
It also means that the number of integer triangles with greatest side ''c'' exceeds the number of integer triangles with greatest side ''c'' − 2 by ''c''. The sequence of the number of non-congruent integer triangles with largest side ''c'', starting at ''c'' = 1, is:
:1, 2, 4, 6, 9, 12, 16, 20, 25, 30, 36, 42, 49, 56, 64, 72, 81, 90 ...
The number of integer triangles (up to congruence) with given largest side ''c'' and integer triple (''a'', ''b'', ''c'') that lie on or within a semicircle of diameter ''c'' is the number of integer triples such that ''a'' + ''b'' > ''c'' , ''a2'' + ''b''2 ≤ ''c''2 and ''a'' ≤ ''b'' ≤ ''c''. This is also the number of integer sided obtuse or right
Rights are law, legal, social, or ethics, ethical principles of freedom or Entitlement (fair division), entitlement; that is, rights are the fundamental normative rules about what is allowed of people or owed to people according to some legal sy ...
(non- acute) triangles with largest side ''c''. The sequence starting at ''c'' = 1, is:
:0, 0, 1, 1, 3, 4, 5, 7, 10, 13, 15, 17, 22, 25, 30, 33, 38, 42, 48 ...
Consequently, the difference between the two above sequences gives the number of acute integer sided triangles (up to congruence) with given largest side ''c''. The sequence starting at ''c'' = 1, is:
:1, 2, 3, 5, 6, 8, 11, 13, 15, 17, 21, 25, 27, 31, 34, 39, 43, 48, 52 ...
Area of an integer triangle
By Heron's formula, if ''T'' is the area
Area is the measure of a region's size on a surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an open surface or the boundary of a three-di ...
of a triangle whose sides have lengths ''a'', ''b'', and ''c'' then
:
Since all the terms under the radical on the right side of the formula are integers it follows that all integer triangles must have ''16T2'' an integer and ''T2'' will be rational.
Angles of an integer triangle
By the law of cosines
In trigonometry, the law of cosines (also known as the cosine formula or cosine rule) relates the lengths of the sides of a triangle to the cosine of one of its angles. For a triangle with sides , , and , opposite respective angles , , and (see ...
, every angle of an integer triangle has a rational cosine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite that ...
. Every angle of an integer right triangle also has rational sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
(see Pythagorean triple
A Pythagorean triple consists of three positive integers , , and , such that . Such a triple is commonly written , a well-known example is . If is a Pythagorean triple, then so is for any positive integer . A triangle whose side lengths are a Py ...
).
If the angles of any triangle form an arithmetic progression
An arithmetic progression or arithmetic sequence is a sequence of numbers such that the difference from any succeeding term to its preceding term remains constant throughout the sequence. The constant difference is called common difference of that ...
then one of its angles must be 60°.[ 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 a geometric or harmonic 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 i.e. the integer triangle is equilateral.
The square of each internal angle bisector of an integer triangle is rational, because the general triangle formula for the internal angle bisector of angle ''A'' is where ''s'' is the semiperimeter (and likewise for the other angles' bisectors).
]
Side split by an altitude
Any altitude
Altitude is a distance measurement, usually in the vertical or "up" direction, between a reference datum (geodesy), datum and a point or object. The exact definition and reference datum varies according to the context (e.g., aviation, geometr ...
dropped from a vertex onto an opposite side or its extension will split that side or its extension into rational lengths.
Medians
The square of twice any median
The median of a set of numbers is the value separating the higher half from the lower half of a Sample (statistics), data sample, a statistical population, population, or a probability distribution. For a data set, it may be thought of as the “ ...
of an integer triangle is an integer, because the general formula for the squared median ''m''a2 to side ''a'' is , giving (2''m''a)2 = 2''b''2 + 2''c''2 − ''a''2 (and likewise for the medians to the other sides).
Circumradius and inradius
Because the square of the area of an integer triangle is rational, the square of its circumradius is also rational, as is the square of the inradius
In geometry, the incircle or inscribed circle of a triangle is the largest circle that can be contained in the triangle; it touches (is tangent to) the three sides. The center of the incircle is a triangle center called the triangle's incenter. ...
.
The ratio of the inradius to the circumradius of an integer triangle is rational, equaling for semiperimeter ''s'' and area ''T''.
The product of the inradius and the circumradius of an integer triangle is rational, equaling
Thus the squared distance between the incenter
In geometry, the incenter of a triangle is a triangle center, a point defined for any triangle in a way that is independent of the triangle's placement or scale. The incenter may be equivalently defined as the point where the internal angle bis ...
and the circumcenter of an integer triangle, given by Euler's theorem
In number theory, Euler's theorem (also known as the Fermat–Euler theorem or Euler's totient theorem) states that, if and are coprime positive integers, then a^ is congruent to 1 modulo , where \varphi denotes Euler's totient function; that ...
as is rational.
Heronian triangles
A Heronian triangle, also known as a Heron triangle or a Hero triangle, is a triangle with integer sides and integer area.
All Heronian triangles can be placed on a lattice with each vertex at a lattice point. Furthermore, if an integer triangle can be place on a lattice with each vertex at a lattice point it must be Heronian.
General formula
Every Heronian triangle has sides proportional to
:
:
:
:
:
for integers ''m'', ''n'' and ''k'' subject to the constraints:
:
:
:
The proportionality factor is generally a rational where ''q'' = gcd(''a'',''b'',''c'') reduces the generated Heronian triangle to its primitive and scales up this primitive to the required size.
Pythagorean triangles
A Pythagorean triangle is right-angled and Heronian. Its three integer sides are known as a Pythagorean triple
A Pythagorean triple consists of three positive integers , , and , such that . Such a triple is commonly written , a well-known example is . If is a Pythagorean triple, then so is for any positive integer . A triangle whose side lengths are a Py ...
or Pythagorean triplet or Pythagorean triad.[Sierpiński, Wacław. '' Pythagorean Triangles'', Dover Publications, 2003 (orig. 1962).] All Pythagorean triples with hypotenuse which are primitive (the sides having no common factor) can be generated by
:
:
:
:
:
where ''m'' and ''n'' are coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
integers and one of them is even with ''m'' > ''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 . 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 both ''ab'' and ''cd'' where ''d'' is the height from the hypotenuse ''c''. The three side lengths of a primitive triangle are coprime, so is in fully reduced form; since ''c'' cannot equal 1 for any primitive Pythagorean triangle, ''d'' cannot be an integer.
However, any Pythagorean triangle with legs ''x'', ''y'' and hypotenuse ''z'' can generate a Pythagorean triangle with an integer altitude, by scaling up the sides by the length of the hypotenuse ''z''. If ''d'' is the altitude, then the generated Pythagorean triangle with integer altitude is given by[Richinick, Jennifer, "The upside-down Pythagorean Theorem", ''Mathematical Gazette'' 92, July 2008, 313–317.]
:
Consequently, all Pythagorean triangles with legs ''a'' and ''b'', hypotenuse ''c'', and integer altitude ''d'' from the hypotenuse, with , which necessarily satisfy both ''a''2 + ''b''2 = c2 and , are generated by
:
:
:
:
:
:
for coprime integers ''m'', ''n'' with ''m'' > ''n''.
Heronian triangles with sides in arithmetic progression
A triangle with integer sides and integer area has sides in arithmetic progression if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
the sides are (''b'' – ''d'', ''b'', ''b'' + ''d''), where
:
:
and where ''g'' is the greatest common divisor
In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
of and
Heronian triangles with one angle equal to twice another
All Heronian triangles with ''B'' = 2''A'' are generated by either
:
with integers ''k'', ''s'', ''r'' such that or
:
with integers such that and
No Heronian triangles with ''B'' = 2''A'' are isosceles or right triangles because all resulting angle combinations generate angles with non-rational sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
s, giving a non-rational area or side.
Isosceles Heronian triangles
All isosceles
In geometry, an isosceles triangle () is a triangle that has two sides of equal length and two angles of equal measure. Sometimes it is specified as having ''exactly'' two sides of equal length, and sometimes as having ''at least'' two sides ...
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:[Sastry, K. R. S.]
"Construction of Brahmagupta n-gons"
, ''Forum Geometricorum'' 5 (2005): 119–126.
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 a prime
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
is uniquely associated with the prime and that the prime is congruent to or modulo . It is well known that such a prime can be uniquely partitioned into integers and such that (see Euler'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 .
Heronian triangles with rational angle bisectors
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 be Heronian 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
:
:
:
:
:
:
:
:
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 the incircle and each excircle.[Li Zhou, "Primitive Heronian Triangles With Integer Inradius and Exradii", ''Forum Geometricorum'' 18, 2018, pp. 71–77.] A family of decomposible ones is given by
:
:
:
:
:
:
:
and a family of indecomposable ones is given by
:
:
:
:
:
:
:
Heronian triangles as faces of a tetrahedron
There exist tetrahedra
In geometry, a tetrahedron (: tetrahedra or tetrahedrons), also known as a triangular pyramid, is a polyhedron composed of four triangular Face (geometry), faces, six straight Edge (geometry), edges, and four vertex (geometry), vertices. The tet ...
having integer-valued volume
Volume is a measure of regions in three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch) ...
and Heron triangles as faces. 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.
Heronian triangles in a 2D lattice
A 2D lattice is a regular array of isolated points where if any one point is chosen as the Cartesian origin (0, 0), then all the other points are at (''x, y'') where ''x'' and ''y'' 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. By Pick's theorem a lattice triangle has a rational area that either is an integer or a half-integer (has a denominator of 2). If the lattice triangle has integer sides then it is Heronian with integer area.
Furthermore, it has been proved that all Heronian triangles can be drawn as lattice triangles. Consequently, an integer triangle is Heronian if and only if it can be drawn as a lattice triangle.
There are infinitely many primitive Heronian (non-Pythagorean) triangles which can be placed on an integer lattice
In mathematics, the -dimensional integer lattice (or cubic lattice), denoted , is the lattice (group), lattice in the Euclidean space whose lattice points are tuple, -tuples of integers. The two-dimensional integer lattice is also called the s ...
with all vertices, the incenter
In geometry, the incenter of a triangle is a triangle center, a point defined for any triangle in a way that is independent of the triangle's placement or scale. The incenter may be equivalently defined as the point where the internal angle bis ...
, and all three excenters at lattice points. Two families of such triangles are the ones with parametrizations given above at #Heronian triangles with integer inradius and exradii.[
]
Integer automedian triangles
An automedian triangle is one whose medians are in the same proportions (in the opposite order) as the sides. If ''x'', ''y'', and ''z'' are the three sides of a right triangle, sorted in increasing order by size, and if 2''x'' < ''z'', then ''z'', ''x'' + ''y'', and ''y'' − ''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.[.]
Consequently, using Euclid's formula, which generates primitive Pythagorean triangles, it is possible to generate primitive integer automedian triangles as
:
:
:
with and coprime and odd, and