An integer triangle or integral triangle is a triangle all of whose side lengths are integers. A rational triangle is one whose side lengths are rational numbers; any rational triangle can be rescaled by the lowest common denominator 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);[1] Conway and Guy (1996) define a rational triangle as one with rational sides and rational angles measured in degrees—the only such triangles are rational-sided equilateral triangles.[2]
Any triple of positive integers can serve as the side lengths of an integer triangle as long as it satisfies the triangle inequality: 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 congruence. So the number of integer triangles (up to congruence) with perimeter p is the number of partitions of p into three positive parts that satisfy the triangle inequality. This is the integer closest to
p2/48
(p+3)2/48
p=2n
p=2n-3.
p=1,
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.
The number of integer triangles (up to congruence) with given largest side c and integer triple
(a,b,c)
a+b>c
a\leqb\leqc.
\lceil\tfrac12(c+1)\rceil ⋅ \lfloor\tfrac12(c+1)\rfloor.
\tfrac12cl(\tfrac12c+1r)
\tfrac14(c+1).
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 + b2 ≤ c2 and a ≤ b ≤ c. This is also the number of integer sided obtuse or right (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 ...
By Heron's formula, if T is the area of a triangle whose sides have lengths a, b, and c then
4T=\sqrt{(a+b+c)(a+b-c)(a-b+c)(-a+b+c)}.
Since all the terms under the radical on the right side of the formula are integers it follows that all integer triangles must have an integer value of 16T2 and T2 will be rational.
By the law of cosines, every angle of an integer triangle has a rational cosine. Every angle of an integer right triangle also has rational sine (see Pythagorean triple).
If the angles of any triangle form an arithmetic progression 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
\pip/q
0<p/q<1.
p/q=1/3.
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).
Any altitude dropped from a vertex onto an opposite side or its extension will split that side or its extension into rational lengths.
The square of twice any median of an integer triangle is an integer, because the general formula for the squared median ma2 to side a is
\tfrac14(2b2+2c2-a2)
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.
The ratio of the inradius to the circumradius of an integer triangle is rational, equaling
4T2/sabc
The product of the inradius and the circumradius of an integer triangle is rational, equaling
abc/2(a+b+c).
Thus the squared distance between the incenter and the circumcenter of an integer triangle, given by Euler's theorem as
R2-2Rr
See main article: article and Heronian triangle.
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.[6] 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[7]
a=n(m2+k2)
b=m(n2+k2)
c=(m+n)(mn-k2)
Semiperimeter=mn(m+n)
Area=mnk(m+n)(mn-k2)
for integers m, n and k subject to the constraints:
\gcd{(m,n,k)}=1
mn>k2\gem2n/(2m+n)
m\gen\ge1.
The proportionality factor is generally a rational
p/q
p
See main article: article and Pythagorean triple.
A Pythagorean triangle is right-angled and Heronian. Its three integer sides are known as a Pythagorean triple or Pythagorean triplet or Pythagorean triad.[8] All Pythagorean triples
(a,b,c)
c
a=m2-n2,
b=2mn,
c=m2+n2,
Semiperimeter=m(m+n)
Area=mn(m2-n2)
where m and n are coprime 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
a=2m
b=(a/2)2-1=m2-1
c=m2+1
n
m
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
d=ab/c
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[10]
(a,b,c,d)=(xz,yz,z2,xy).
Consequently, all Pythagorean triangles with legs a and b, hypotenuse c, and integer altitude d from the hypotenuse, with
\gcd(a,b,c,d)=1
\tfrac{1}{a2
a=(m2-n2)(m2+n2),
b=2mn(m2+n2),
c=(m2+n2)2,
d=2mn(m2-n2),
Semiperimeter=m(m+n)(m2+n2)
Area=mn(m2-n2)(m2+n2)2
A triangle with integer sides and integer area has sides in arithmetic progression if and only if[12] the sides are (b – d, b, b + d), where
b=2(m2+3n2)/g,
d=(m2-3n2)/g,
and where g is the greatest common divisor of
m2-3n2,
2mn,
m2+3n2.
All Heronian triangles with B = 2A are generated by[13] either
\begin{align} a&=\tfrac14k2(s2+r2)2,\\[5mu] b&=\tfrac12k2(s4-r4),\\[5mu] c&=\tfrac14k2(3s4-10s2r2+3r4),\\[5mu] Area&=\tfrac12k2csr(s2-r2), \end{align}
with integers k, s, r such that
s2>3r2,
\begin{align} a&=\tfrac14q2(u2+v2)2,\\[5mu] b&=q2uv(u2+v2),\\[5mu] c&=\tfrac14q2(14u2v2-u4-v4),\\[5mu] Area&=\tfrac12q2cuv(v2-u2), \end{align}
with integers such that
v>u
v2<(7+4\sqrt{3})u2.
No Heronian triangles with B = 2A are isosceles or right triangles because all resulting angle combinations generate angles with non-rational sines, giving a non-rational area or side.
All isosceles 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[14]
a=2(u2-v2),
b=u2+v2,
c=u2+v2,
and
a=4uv,
b=u2+v2,
c=u2+v2,
for coprime integers u and v with u > v and u + v odd.
It has been shown that a Heronian triangle whose perimeter is four times a prime is uniquely associated with the prime and that the prime is congruent to
1
3
8
p
m
n
p=m2+2n2
Consequently, all primitive Heronian triangles whose perimeter is four times a prime can be generated by
a=m2+2n2
b=m2+4n2
c=2(m2+n2)
Semiperimeter=2a=2(m2+2n2)
Area=2mn(m2+2n2)
for integers
m
n
m2+2n2
Furthermore, the factorization of the area is
2mnp
p=m2+2n2
6
m=1
n=1,
p=3,
m
n
m
3
If in a Heronian triangle the angle bisector
wa
\alpha
wb
\beta
wc
\gamma
\alpha,\beta,\gamma
\tfrac12\alpha
\tfrac12\beta
\tfrac12\gamma
\tfrac12\alpha
\tfrac12\beta
\tfrac12\gamma
\tfrac12\alpha+\tfrac12\beta
wa=
2\sqrt{s(s-a) | |
⋅ |
\sqrt{bc}}{b+c} wb=
2\sqrt{s(s-b) | |
⋅ |
\sqrt{ac}}{a+c} wc=
2\sqrt{s(s-c) | |
⋅ |
\sqrt{ab}}{a+b}
wa ⋅ wb ⋅ wc=
8s ⋅ J ⋅ a ⋅ b ⋅ c | |
(a+b)(a+c)(b+c) |
,
s
J
All Heronian triangles with rational angle bisectors are generated by[17]
a=mn(p2+q2)
b=pq(m2+n2)
c=(mq+np)(mp-nq)
Semiperimeter=s=(a+b+c)/2=mp(mq+np)
s-a=mq(mp-nq)
s-b=np(mp-nq)
s-c=nq(mq+np)
Area=J=mnpq(mq+np)(mp-nq)
m,n,p,q
m=t2-u2
n=2tu
p=v2-w2
q=2vw
t,u,v,w
t
u
v
w
There are infinitely many decomposable, and infinitely many indecomposable, primitive Heronian (non-Pythagorean) triangles with integer radii for the incircle and each excircle.[18] A family of decomposible ones is given by
a=4n2
b=(2n+1)(2n2-2n+1)
c=(2n-1)(2n2+2n+1)
r=2n-1
ra=2n+1
2 | |
r | |
b=2n |
2(2n-1)(2n+1); | |
r | |
c=Area=2n |
a=5(5n2+n-1)
b=(5n+3)(5n2-4n+1)
c=(5n-2)(5n2+6n+2)
r=5n-2
ra=5n+3
2+n-1 | |
r | |
b=5n |
2 | |
r | |
c=Area=(5n-2)(5n+3)(5n |
+n-1).
There exist tetrahedra having integer-valued volume 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.[8]
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.[19]
Furthermore, it has been proved that all Heronian triangles can be drawn as lattice triangles.[20] [21] 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 with all vertices, the incenter, and all three excenters at lattice points. Two families of such triangles are the ones with parametrizations given above at
See main article: article and Automedian triangle.
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 2x < 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.[22]
Consequently, using Euclid's formula, which generates primitive Pythagorean triangles, it is possible to generate primitive integer automedian triangles as
a=|m2-2mn-n2|
b=m2+2mn-n2
c=m2+n2
m
n
m+n
n<m<n\sqrt{3}
m>(2+\sqrt{3})n
An important characteristic of the automedian triangle is that the squares of its sides form an arithmetic progression. Specifically,
c2-a2=b2-c2
2c2=a2+b2.
A triangle family with integer sides
a,b,c
d
a=2(k2-m2),
b=(k-m)2,
c=(k+m)2,
d=
2km(k2-m2) | |
k2+m2 |
,
with integers
k>m>0
There exist infinitely many non-similar triangles in which the three sides and the bisectors of each of the three angles are integers.
There exist infinitely many non-similar triangles in which the three sides and the two trisectors of each of the three angles are integers.
However, for n > 3 there exist no triangles in which the three sides and the (n – 1) n-sectors of each of the three angles are integers.[24]
Some integer triangles with one angle at vertex A having given rational cosine h / k (h < 0 or > 0; k > 0) are given by[25]
a=p2-2pqh+q2k2,
b=p2-q2k2,
c=2qk(p-qh),
where p and q are any coprime positive integers such that p > qk.
All integer triangles with a 60° angle have their angles in an arithmetic progression. All such triangles are proportional to:[26]
a=4mn,
b=3m2+n2,
c=2mn+|3m2-n2|
with coprime integers m, n and 1 ≤ n ≤ m or 3m ≤ n. From here, all primitive solutions can be obtained by dividing a, b, and c by their greatest common divisor.
Integer triangles with a 60° angle can also be generated by[27]
a=m2-mn+n2,
b=2mn-n2,
c=m2-n2,
with coprime integers m, n with 0 < n < m (the angle of 60° is opposite to the side of length a). From here, all primitive solutions can be obtained by dividing a, b, and c by their greatest common divisor (e.g. an equilateral triangle solution is obtained by taking and, but this produces a = b = c = 3, which is not a primitive solution). See also [28] [29]
More precisely, If
m\equiv-n\pmod{3}
\gcd(a,b,c)=3
\gcd(a,b,c)=1
(m,n)
(m,m-n)
n
m/2
n=m/2
(3,3,3)\equiv(1,1,1)
m=2,n=1
n\leqm/2
An Eisenstein 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]
a=m2+mn+n2,
b=2mn+n2,
c=m2-n2,
with coprime integers m, n with 0 < n < m (the angle of 120° is opposite to the side of length a). From here, all primitive solutions can be obtained by dividing a, b, and c by their greatest common divisor. The smallest solution, for m = 2 and n = 1, is the triangle with sides (3,5,7). See also.[28] [29]
More precisely, If
m\equivn\pmod{3}
\gcd(a,b,c)=3
\gcd(a,b,c)=1
(m,n)
m\not\equivn\pmod{3}
For positive coprime integers h and k, the triangle with the following sides has angles
h\alpha
k\alpha
\pi-(h+k)\alpha
a=qh+k-1
\sinh\alpha | |
\sin\alpha |
=qk
⋅ \sum | ||||||
|
(-1)i\binom{h}{2i+1}ph-2i-1(q2-p2)i,
b=qh+k-1
\sink\alpha | |
\sin\alpha |
=qh
⋅ \sum | ||||||
|
(-1)i\binom{k}{2i+1}pk-2i-1(q2-p2)i,
c=qh+k-1
\sin(h+k)\alpha | |
\sin\alpha |
=
\sum | ||||||
|
(-1)i\binom{h+k}{2i+1}ph+k-2i-1(q2-p2)i,
where
\alpha=\cos-1
p | |
q |
\cos
\pi | |
h+k |
<
p | |
q |
<1
With angle A opposite side
a
b
a=n2,
b=mn,
c=m2-n2,
with integers m, n such that 0 < n < m < 2n.
All triangles with B = 2A (whether integer or not) satisfy[33]
a(a+c)=b2.
The equivalence class of similar triangles with
B=\tfrac32A
a=mn3,
b=n2(m2-n2),
c=(m2-n2)2-m2n2,
with integers
m,n
0<\varphin<m<2n
\varphi
All triangles with
B=\tfrac32A
(b2-a2)(b2-a2+bc)=a2c2.
We can generate the full equivalence class of similar triangles that satisfy B = 3A by using the formulas[34]
a=n3,
b=n(m2-n2),
c=m(m2-2n2),
where
m
n
\sqrt{2}n<m<2n
All triangles with B = 3A (whether with integer sides or not) satisfy
ac2=(b-a)2(b+a).
The only integer triangle with three rational angles (rational numbers of degrees, or equivalently rational fractions of a full turn) is the equilateral triangle.[2] This is because integer sides imply three rational cosines by the law of cosines, and by Niven'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.
Conditions are known in terms of elliptic curves for an integer triangle to have an integer ratio N of the circumradius to the inradius.[35] [36] The smallest case, that of the equilateral triangle, has N = 2. In every known case,
N\equiv2\pmod{8}
N-2
See main article: article and 5-Con triangles.
A 5-Con triangle pair is a pair of triangles that are similar but not congruent 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
(x3,x2y,xy2)
(x2y,xy2,y3)
for positive coprime integers x and y. The smallest example is the pair (8, 12, 18), (12, 18, 27), generated by x = 2, y = 3.