Triangular number: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>Ncgtr
No edit summary
 
imported>David Eppstein
relevance not obvious and unsourced
 
(3 intermediate revisions by 2 users not shown)
Line 40: Line 40:
so if the formula is true for <math>m</math>, it is true for <math>m+1</math>. Since it is clearly true for <math>1</math>, it is therefore true for <math>2</math>, <math>3</math>, and ultimately all natural numbers <math>n</math> by induction.
so if the formula is true for <math>m</math>, it is true for <math>m+1</math>. Since it is clearly true for <math>1</math>, it is therefore true for <math>2</math>, <math>3</math>, and ultimately all natural numbers <math>n</math> by induction.


The German mathematician and scientist, [[Carl Friedrich Gauss]], is said to have found this relationship in his early youth, by multiplying {{math|{{sfrac|''n''|2}}}} pairs of numbers in the sum by the values of each pair {{math|''n'' + 1}}.<ref name=Gauss>{{cite web |last=Hayes |first=Brian |title=Gauss's Day of Reckoning |url=http://www.americanscientist.org/issues/pub/gausss-day-of-reckoning/1 |website=American Scientist |publisher=Computing Science |access-date=2014-04-16 |archive-date=2015-04-02 |archive-url=https://web.archive.org/web/20150402141244/http://www.americanscientist.org/issues/pub/gausss-day-of-reckoning/1 }}</ref> However, regardless of the truth of this story, Gauss was not the first to discover this formula, and some find it likely that its origin goes back to the [[Pythagoreans]] in the 5th century BC.<ref>{{cite web|last=Eves|first=Howard|title=Webpage cites AN INTRODUCTION TO THE HISTORY OF MATHEMATICS|url=http://mathcentral.uregina.ca/QQ/database/QQ.09.98/matt1.html|publisher=Mathcentral|access-date=28 March 2015}}</ref> The two formulas were described by the Irish monk [[Dicuil]] in about 816 in his [[Computus]].<ref>{{cite journal |last=Esposito |first=Mario |author-link=Mario Esposito (scholar) |title=An unpublished astronomical treatise by the Irish monk Dicuil |journal=[[Proceedings of the Royal Irish Academy, Section C]] |volume=26 |location=Dublin |date=August 1907 |pages=378–446+i (PDF pages 704–773) |lang=en,la |url=https://archive.org/details/proceedingsofroy2619roya}}</ref> An English translation of Dicuil's account is available.<ref>{{cite journal |last1=Ross |first1=H.E. |last2=Knott |first2=B.I. |title=Dicuil (9th century) on triangular and square numbers |journal=British Journal for the History of Mathematics |year=2019 |volume=34 |issue=2 |pages=79–94 |doi=10.1080/26375451.2019.1598687 |url=https://dspace.stir.ac.uk/handle/1893/29437|hdl=1893/29437 |hdl-access=free }}</ref>
The German mathematician and scientist, [[Carl Friedrich Gauss]], is said to have found this relationship in his early youth, by multiplying {{math|{{sfrac|''n''|2}}}} pairs of numbers in the sum by the values of each pair {{math|''n'' + 1}}.<ref name=Gauss>{{cite web |last=Hayes |first=Brian |title=Gauss's Day of Reckoning |url=http://www.americanscientist.org/issues/pub/gausss-day-of-reckoning/1 |website=American Scientist |publisher=Computing Science |access-date=2014-04-16 |archive-date=2015-04-02 |archive-url=https://web.archive.org/web/20150402141244/http://www.americanscientist.org/issues/pub/gausss-day-of-reckoning/1 }}</ref> However, regardless of the truth of this story, Gauss was not the first to discover this formula, and some find it likely that its origin goes back to the [[Pythagoreans]] in the 5th century BC.<ref>{{cite web|last=Eves|first=Howard|title=Webpage cites AN INTRODUCTION TO THE HISTORY OF MATHEMATICS|url=http://mathcentral.uregina.ca/QQ/database/QQ.09.98/matt1.html|publisher=Mathcentral|access-date=28 March 2015}}</ref> The two formulas were described by the Irish monk [[Dicuil]] in about 816 in his [[Computus]].<ref>{{cite journal |last=Esposito |first=Mario |author-link=Mario Esposito (scholar) |title=An unpublished astronomical treatise by the Irish monk Dicuil |journal=[[Proceedings of the Royal Irish Academy, Section C]] |volume=26 |location=Dublin |date=August 1907 |pages=378–446+i (PDF pages 704–773) |lang=en,la |url=https://archive.org/details/proceedingsofroy2619roya}}</ref> An English translation of Dicuil's account is available.<ref>{{cite journal |last1=Ross |first1=H.E. |last2=Knott |first2=B.I. |title=Dicuil (9th century) on triangular and square numbers |journal=British Journal for the History of Mathematics |year=2019 |volume=34 |issue=2 |pages=79–94 |doi=10.1080/26375451.2019.1598687 |url=https://dspace.stir.ac.uk/handle/1893/29437|hdl=1893/29437 |hdl-access=free |url-access=subscription }}</ref>


Occasionally it is necessary to compute large triangular numbers where the standard formula <code>t = n*(n+1)/2</code> would suffer [[integer overflow]] before the final division by 2.  For example, {{math|''T''<sub>20</sub>}} = 210 < 256, so will fit into an [[8-bit byte]], but not the intermediate product 420.  This can be solved by dividing either {{mvar|n}} or {{mvar|n+1}} by 2 before the multiplication, whichever is even.  This does not require a [[conditional branch]] if implemented as <code>t = (n|1) * ((n+1)/2)</code>.  If <code>n</code> is odd, the [[binary OR]] operation <code>n|1</code> has no effect, so this is equivalent to <code>t = n * ((n+1)/2)</code> and thus correct.  If <code>n</code> is even, setting the low bit with <code>n|1</code> is the same as adding 1, while the 1 added before the division is [[Division (mathematics)#Of integers|truncated away]], so this is equivalent to <code>t = (n+1) * (n/2)</code> and also correct.
Occasionally it is necessary to compute large triangular numbers where the standard formula <code>t = n*(n+1)/2</code> would suffer [[integer overflow]] before the final division by 2.  For example, {{math|''T''<sub>20</sub>}} = 210 < 256, so will fit into an [[8-bit byte]], but not the intermediate product 420.  This can be solved by dividing either {{mvar|n}} or {{mvar|n+1}} by 2 before the multiplication, whichever is even.  This does not require a [[conditional branch]] if implemented as <code>t = (n|1) * ((n+1)/2)</code>.  If <code>n</code> is odd, the [[binary OR]] operation <code>n|1</code> has no effect, so this is equivalent to <code>t = n * ((n+1)/2)</code> and thus correct.  If <code>n</code> is even, setting the low bit with <code>n|1</code> is the same as adding 1, while the 1 added before the division is [[Division (mathematics)#Of integers|truncated away]], so this is equivalent to <code>t = (n+1) * (n/2)</code> and also correct.
Line 62: Line 62:
| access-date = 25 April 2024
| access-date = 25 April 2024
| jstor = 3621134
| jstor = 3621134
| url-access = subscription
}}</ref><ref>{{cite web |title=Triangular Number |url=https://mathworld.wolfram.com/TriangularNumber.html |author=Eric W. Weisstein |publisher=Wolfram MathWorld |accessdate=2024-04-14}} See equations 18 - 20.</ref>
}}</ref><ref>{{cite web |title=Triangular Number |url=https://mathworld.wolfram.com/TriangularNumber.html |author=Eric W. Weisstein |publisher=Wolfram MathWorld |accessdate=2024-04-14}} See equations 18 - 20.</ref>


Line 102: Line 103:
The double of a triangular number, as in the visual proof from the above section {{section link||Formula}}, is called a [[pronic number]].
The double of a triangular number, as in the visual proof from the above section {{section link||Formula}}, is called a [[pronic number]].


There are infinitely many triangular numbers that are also square numbers; e.g., 1, 36, 1225. Some of them can be generated by a simple recursive formula:
There are infinitely many [[Square triangular number|triangular numbers that are also square numbers]]; e.g., 1, 36, 1225. Some of them can be generated by a simple recursive formula:
<math display=block>S_{n+1} = 4S_n \left( 8S_n + 1\right)</math> with <math>S_1 = 1.</math>
<math display=block>S_{n+1} = 4S_n \left( 8S_n + 1\right)</math> with <math>S_1 = 1.</math>


''All'' [[square triangular number]]s are found from the recursion
''All'' square triangular numbers are found from the recursion
<math display=block>S_n = 34S_{n-1} - S_{n-2} + 2</math> with <math>S_0 = 0</math> and <math>S_1 = 1.</math>
<math display=block>S_n = 34S_{n-1} - S_{n-2} + 2</math> with <math>S_0 = 0</math> and <math>S_1 = 1.</math>


[[File:Nicomachus_theorem_3D.svg|thumb|A square whose side length is a triangular number can be partitioned into squares and half-squares whose areas add to cubes. This shows that the square of the {{mvar|n}}th triangular number is equal to the sum of the first {{mvar|n}} cube numbers.]]
[[File:Nicomachus_theorem_3D.svg|thumb|A square whose side length is a triangular number can be partitioned into squares and half-squares whose areas add to cubes. This shows that the square of the {{mvar|n}}th triangular number is equal to the sum of the first {{mvar|n}} cube numbers.]]


Also, the [[squared triangular number|square of the {{mvar|n}}th triangular number]] is the same as the sum of the cubes of the integers 1 to {{mvar|n}}. This can also be expressed as
The [[squared triangular number|square of the {{mvar|n}}th triangular number]] is also the same as the sum of the cubes of the integers 1 to {{mvar|n}}. This can also be expressed as
<math display="block"> \sum_{k=1}^n k^3 = \left(\sum_{k=1}^n k \right)^2.</math>
<math display="block"> \sum_{k=1}^n k^3 = \left(\sum_{k=1}^n k \right)^2.</math>


[[File:visual_proof_tetrahedral_number.svg|thumb|left|upright|Six triangular pyramids with {{mvar|n}} steps fit in a cuboid of size {{math|''n''(''n'' + 1)(''n'' + 2)}} <ref>http://demonstrations.wolfram.com/GeometricProofOfTheTetrahedralNumberFormula</ref>]]
The sum of the first {{mvar|n}} triangular numbers is the {{mvar|n}}th [[tetrahedral number]]:
The sum of the first {{mvar|n}} triangular numbers is the {{mvar|n}}th [[tetrahedral number]]:
<math display=block> \sum_{k=1}^n T_k = \sum_{k=1}^n \frac{k(k+1)}{2} = \frac {n(n+1)(n+2)} {6}.</math>
<math display=block> \sum_{k=1}^n T_k = \sum_{k=1}^n \frac{k(k+1)}{2} = \frac {n(n+1)(n+2)} {6}.</math>
Line 150: Line 152:


In [[base 10]], the [[digital root]] of a nonzero triangular number is always 1, 3, 6, or 9. Hence, every triangular number is either divisible by three or has a remainder of 1 when divided by 9:
In [[base 10]], the [[digital root]] of a nonzero triangular number is always 1, 3, 6, or 9. Hence, every triangular number is either divisible by three or has a remainder of 1 when divided by 9:
{{Block indent|left=1.6|1={{Break lines|1=
{{Block indent|left=1.6|1=<poem>
0 = 9 × 0
0 = 9 × 0
1 = 9 × 0 + 1
1 = 9 × 0 + 1
Line 165: Line 167:
78 = 9 × 8 + 6
78 = 9 × 8 + 6
91 = 9 × 10 + 1
91 = 9 × 10 + 1
...}}}}
...
</poem>}}


The digital root pattern for triangular numbers, repeating every nine terms, as shown above, is "1, 3, 6, 1, 6, 3, 1, 9, 9".
The digital root pattern for triangular numbers, repeating every nine terms, as shown above, is "1, 3, 6, 1, 6, 3, 1, 9, 9".
Line 180: Line 183:
<math display=block> \sum_{n=1}^\infty{1 \over {n(n+1)}} = 1 .</math>
<math display=block> \sum_{n=1}^\infty{1 \over {n(n+1)}} = 1 .</math>


In addition, the ''n''th partial sum of this series can be written as {{sfrac|''2n''|''n'' + 1}}
In addition, the ''n''th partial sum of this series can be written as:
<math display=block> 2n \over {n+1}. </math>


Two other formulas regarding triangular numbers are
Two other formulas regarding triangular numbers are
Line 186: Line 190:
and
and
<math display=block>T_{ab} = T_aT_b + T_{a-1}T_{b-1},</math>
<math display=block>T_{ab} = T_aT_b + T_{a-1}T_{b-1},</math>
both of which can easily be established either by looking at dot patterns (see above) or with some simple algebra. The first formula are relevant to [[multiplication algorithm#Quarter square multiplication]].
both of which can be established either by looking at dot patterns (see above) or with some simple algebra.


In 1796, Gauss discovered that every positive integer is representable as a sum of three triangular numbers, writing in his diary his famous words, "[[Eureka (word)|ΕΥΡΗΚΑ!]] {{nowrap|1=num = Δ + Δ + Δ}}". The three triangular numbers are not necessarily distinct, or nonzero; for example 20 = 10 + 10 + 0. This is a special case of the [[Fermat polygonal number theorem]].
In 1796, Gauss discovered that every positive integer is representable as a sum of three triangular numbers, writing in his diary his famous words, "[[Eureka (word)|ΕΥΡΗΚΑ!]] {{nowrap|1=num = Δ + Δ + Δ}}". The three triangular numbers are not necessarily distinct, or nonzero; for example 20 = 10 + 10 + 0. This is a special case of the [[Fermat polygonal number theorem]].
Line 209: Line 213:
Equivalently, a [[fully connected network]] of {{mvar|n}} computing devices requires the presence of {{math|''T''<sub>''n'' −&thinsp;1</sub>}} cables or other connections.
Equivalently, a [[fully connected network]] of {{mvar|n}} computing devices requires the presence of {{math|''T''<sub>''n'' −&thinsp;1</sub>}} cables or other connections.


A triangular number <math>T_{n} </math> is equivalent to the number of principal rotations in dimension <math>n+1</math>. For example, in five dimensions the number of principal rotations is 10 which is <math>T_{4}</math>.<ref>https://henders.one/2022/05/09/lost-4D-rotation/</ref>
A triangular number <math>T_{n} </math> is equivalent to the number of principal rotations in dimension <math>n+1</math>. For example, in five dimensions the number of principal rotations is 10 which is <math>T_{4}</math>.<ref>{{Cite web | title=The Lost 4-Dimensional Rotation | url=https://henders.one/2022/05/09/lost-4D-rotation/ | access-date=2025-07-26 | website=henders.one | date=9 May 2022 }}</ref>


In a tournament format that uses a round-robin [[group stage]], the number of matches that need to be played between {{mvar|n}} teams is equal to the triangular number {{math|''T''<sub>''n'' −&thinsp;1</sub>}}. For example, a group stage with 4 teams requires 6 matches, and a group stage with 8 teams requires 28 matches. This is also equivalent to the handshake problem and fully connected network problems.
In a tournament format that uses a round-robin [[group stage]], the number of matches that need to be played between {{mvar|n}} teams is equal to the triangular number {{math|''T''<sub>''n'' −&thinsp;1</sub>}}. For example, a group stage with 4 teams requires 6 matches, and a group stage with 8 teams requires 28 matches. This is also equivalent to the handshake problem and fully connected network problems.
Line 273: Line 277:
* [[Tetractys]], an arrangement of ten points in a triangle, important in Pythagoreanism
* [[Tetractys]], an arrangement of ten points in a triangle, important in Pythagoreanism
* [[Factoriangular number]]
* [[Factoriangular number]]
* [[Šindel sequence]]


==References==
==References==

Latest revision as of 18:42, 17 December 2025

Template:Short description

File:First six triangular numbers.svg
The first six triangular numbers (not starting with T0, but rather, T1)
File:Triangular Numbers Plot.svg
Triangular Numbers Plot

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 Template:Mvarth triangular number is the number of dots in the triangular arrangement with Template:Mvar dots on each side, and is equal to the sum of the Template:Mvar natural numbers from 1 to Template:Mvar. The first 100 terms sequence of triangular numbers, starting with the 0th triangular number, are Template:Block indent (sequence A000217 in the OEIS)

Formula

Template:Pascal triangle simplex numbers.svg The triangular numbers are given by the following explicit formulas: Template:Bi where (n+12) is notation for a binomial coefficient. It represents the number of distinct pairs that can be selected from n + 1Script error: No such module "Check for unknown parameters". objects, and it is read aloud as "Template:Mvar plus one choose two".

The fact that the nth triangular number equals n(n+1)/2 can be illustrated using a visual proof.[1] For every triangular number Tn, imagine a "half-rectangle" arrangement of objects corresponding to the triangular number, as in the figure below. Copying this arrangement and rotating it to create a rectangular figure doubles the number of objects, producing a rectangle with dimensions n×(n+1), which is also the number of objects in the rectangle. Clearly, the triangular number itself is always exactly half of the number of objects in such a figure, or: Tn=n(n+1)2. The example T4 follows:

Template:Bi

This formula can be proven formally using mathematical induction.[2] It is clearly true for 1:

T1=k=11k=1(1+1)2=22=1.

Now assume that, for some natural number m, Tm=k=1mk=m(m+1)2. We can then verify it for m+1: k=1m+1k=k=1mk+(m+1)=m(m+1)2+m+1=m2+m2+2m+22=m2+3m+22=(m+1)(m+2)2,

so if the formula is true for m, it is true for m+1. Since it is clearly true for 1, it is therefore true for 2, 3, and ultimately all natural numbers n by induction.

The German mathematician and scientist, Carl Friedrich Gauss, is said to have found this relationship in his early youth, by multiplying Template:SfracScript error: No such module "Check for unknown parameters". pairs of numbers in the sum by the values of each pair n + 1Script error: No such module "Check for unknown parameters"..[3] However, regardless of the truth of this story, Gauss was not the first to discover this formula, and some find it likely that its origin goes back to the Pythagoreans in the 5th century BC.[4] The two formulas were described by the Irish monk Dicuil in about 816 in his Computus.[5] An English translation of Dicuil's account is available.[6]

Occasionally it is necessary to compute large triangular numbers where the standard formula t = n*(n+1)/2 would suffer integer overflow before the final division by 2. For example, T20Script error: No such module "Check for unknown parameters". = 210 < 256, so will fit into an 8-bit byte, but not the intermediate product 420. This can be solved by dividing either Template:Mvar or Template:Mvar by 2 before the multiplication, whichever is even. This does not require a conditional branch if implemented as t = (n|1) * ((n+1)/2). If n is odd, the binary OR operation n|1 has no effect, so this is equivalent to t = n * ((n+1)/2) and thus correct. If n is even, setting the low bit with n|1 is the same as adding 1, while the 1 added before the division is truncated away, so this is equivalent to t = (n+1) * (n/2) and also correct.

Relations to other figurate numbers

Triangular numbers have a wide variety of relations to other figurate numbers.

Most simply, the sum of two consecutive triangular numbers is a square number, since:[7][8]

Tn1+Tn
=12n(n1)+12n(n+1)
=12n((n1)+(n+1))
=n2

with the sum being the square of the difference between the two (and thus the difference of the two being the square root of the sum): Tn+Tn1=(n22+n2)+((n1)22+n1(n1)22)=(n22+n2)+(n22n2)=n2=(TnTn1)2.

This property, colloquially known as the theorem of Theon of Smyrna,[9] is visually demonstrated in the following sum, which represents T4+T5=52 as digit sums:

4321+12345

This fact can also be demonstrated graphically by positioning the triangles in opposite directions to create a square: Template:Bi

The double of a triangular number, as in the visual proof from the above section Template:Section link, is called a pronic number.

There are infinitely many triangular numbers that are also square numbers; e.g., 1, 36, 1225. Some of them can be generated by a simple recursive formula: Sn+1=4Sn(8Sn+1) with S1=1.

All square triangular numbers are found from the recursion Sn=34Sn1Sn2+2 with S0=0 and S1=1.

File:Nicomachus theorem 3D.svg
A square whose side length is a triangular number can be partitioned into squares and half-squares whose areas add to cubes. This shows that the square of the Template:Mvarth triangular number is equal to the sum of the first Template:Mvar cube numbers.

The [[squared triangular number|square of the Template:Mvarth triangular number]] is also the same as the sum of the cubes of the integers 1 to Template:Mvar. This can also be expressed as k=1nk3=(k=1nk)2.

File:Visual proof tetrahedral number.svg
Six triangular pyramids with Template:Mvar steps fit in a cuboid of size n(n + 1)(n + 2)Script error: No such module "Check for unknown parameters". [10]

The sum of the first Template:Mvar triangular numbers is the Template:Mvarth tetrahedral number: k=1nTk=k=1nk(k+1)2=n(n+1)(n+2)6.

More generally, the difference between the Template:Mvarth [[polygonal number|Template:Mvar-gonal number]] and the Template:Mvarth (m + 1)Script error: No such module "Check for unknown parameters".-gonal number is the (n − 1)Script error: No such module "Check for unknown parameters".th triangular number. For example, the sixth heptagonal number (81) minus the sixth hexagonal number (66) equals the fifth triangular number, 15. Every other triangular number is a hexagonal number. Knowing the triangular numbers, one can reckon any centered polygonal number; the Template:Mvarth centered Template:Mvar-gonal number is obtained by the formula Ckn=kTn1+1

where Template:Mvar is a triangular number.

The positive difference of two triangular numbers is a trapezoidal number.

The pattern found for triangular numbers n1=1n2n1=(n2+12) and for tetrahedral numbers n2=1n3n1=1n2n1=(n3+23), which uses binomial coefficients, can be generalized. This leads to the formula:[11] nk1=1nknk2=1nk1n2=1n3n1=1n2n1=(nk+k1k)

File:Tetrahedral triangular number 10.svg
The fourth triangular number equals the third tetrahedral number as the nth k-simplex number equals the kth n-simplex number due to the symmetry of Pascal's triangle, and its diagonals being simplex numbers; similarly, the fifth triangular number (15) equals the third pentatope number, and so forth

Other properties

Triangular numbers correspond to the first-degree case of Faulhaber's formula.

Template:Magnify iconProof without words that all hexagonal numbers are odd-sided triangular numbers

Alternating triangular numbers (1, 6, 15, 28, ...) are also hexagonal numbers.

Every even perfect number is triangular (as well as hexagonal), given by the formula Mp2p1=Mp(Mp+1)2=TMp where Template:Mvar is a Mersenne prime. No odd perfect numbers are known; hence, all known perfect numbers are triangular.

For example, the third triangular number is (3 × 2 =) 6, the seventh is (7 × 4 =) 28, the 31st is (31 × 16 =) 496, and the 127th is (127 × 64 =) 8128.

The final digit of a triangular number is 0, 1, 3, 5, 6, or 8, and thus such numbers never end in 2, 4, 7, or 9. A final 3 must be preceded by a 0 or 5; a final 8 must be preceded by a 2 or 7.

In base 10, the digital root of a nonzero triangular number is always 1, 3, 6, or 9. Hence, every triangular number is either divisible by three or has a remainder of 1 when divided by 9: Template:Block indent

The digital root pattern for triangular numbers, repeating every nine terms, as shown above, is "1, 3, 6, 1, 6, 3, 1, 9, 9".

The converse of the statement above is, however, not always true. For example, the digital root of 12, which is not a triangular number, is 3 and divisible by three.

If Template:Mvar is a triangular number, Template:Mvar is an odd square, and b = Template:SfracScript error: No such module "Check for unknown parameters"., then ax + bScript error: No such module "Check for unknown parameters". is also a triangular number. Note that Template:Mvar will always be a triangular number, because 8Tn + 1 = (2n + 1)2Script error: No such module "Check for unknown parameters"., which yields all the odd squares are revealed by multiplying a triangular number by 8 and adding 1, and the process for Template:Mvar given Template:Mvar is an odd square is the inverse of this operation. The first several pairs of this form (not counting 1x + 0Script error: No such module "Check for unknown parameters".) are: 9x + 1Script error: No such module "Check for unknown parameters"., 25x + 3Script error: No such module "Check for unknown parameters"., 49x + 6Script error: No such module "Check for unknown parameters"., 81x + 10Script error: No such module "Check for unknown parameters"., 121x + 15Script error: No such module "Check for unknown parameters"., 169x + 21Script error: No such module "Check for unknown parameters"., ... etc. Given Template:Mvar is equal to Template:Mvar, these formulas yield T3n + 1Script error: No such module "Check for unknown parameters"., T5n + 2Script error: No such module "Check for unknown parameters"., T7n + 3Script error: No such module "Check for unknown parameters"., T9n + 4Script error: No such module "Check for unknown parameters"., and so on.

The sum of the reciprocals of all the nonzero triangular numbers is n=11n2+n2=2n=11n2+n=2.

This can be shown by using the basic sum of a telescoping series: n=11n(n+1)=1.

In addition, the nth partial sum of this series can be written as: 2nn+1.

Two other formulas regarding triangular numbers are Ta+b=Ta+Tb+ab and Tab=TaTb+Ta1Tb1, both of which can be established either by looking at dot patterns (see above) or with some simple algebra.

In 1796, Gauss discovered that every positive integer is representable as a sum of three triangular numbers, writing in his diary his famous words, "ΕΥΡΗΚΑ! num = Δ + Δ + Δ". The three triangular numbers are not necessarily distinct, or nonzero; for example 20 = 10 + 10 + 0. This is a special case of the Fermat polygonal number theorem.

The largest triangular number of the form 2k − 1Script error: No such module "Check for unknown parameters". is 4095 (see Ramanujan–Nagell equation).

Wacław Franciszek Sierpiński posed the question as to the existence of four distinct triangular numbers in geometric progression. It was conjectured by Polish mathematician Kazimierz Szymiczek to be impossible and was later proven by Fang and Chen in 2007.[12][13]

Formulas involving expressing an integer as the sum of triangular numbers are connected to theta functions, in particular the Ramanujan theta function.[14][15]

The number of line segments between closest pairs of dots in the triangle can be represented in terms of the number of dots or with a recurrence relation: Ln=3Tn1=3(n2);Ln=Ln1+3(n1),L1=0.

In the limit, the ratio between the two numbers, dots and line segments is limnTnLn=13.

Applications

Script error: No such module "anchor".

File:Handshake problem visual proof.svg
Proof without words that the number of possible handshakes between n people is the (n−1)th triangular number

The triangular number Template:Mvar solves the handshake problem of counting the number of handshakes if each person in a room with n + 1Script error: No such module "Check for unknown parameters". people shakes hands once with each person. In other words, the solution to the handshake problem of Template:Mvar people is Tn−1Script error: No such module "Check for unknown parameters"..[16]

Equivalently, a fully connected network of Template:Mvar computing devices requires the presence of Tn − 1Script error: No such module "Check for unknown parameters". cables or other connections.

A triangular number Tn is equivalent to the number of principal rotations in dimension n+1. For example, in five dimensions the number of principal rotations is 10 which is T4.[17]

In a tournament format that uses a round-robin group stage, the number of matches that need to be played between Template:Mvar teams is equal to the triangular number Tn − 1Script error: No such module "Check for unknown parameters".. For example, a group stage with 4 teams requires 6 matches, and a group stage with 8 teams requires 28 matches. This is also equivalent to the handshake problem and fully connected network problems.

Template:Central polygonal numbers.svg One way of calculating the depreciation of an asset is the sum-of-years' digits method, which involves finding Template:Mvar, where Template:Mvar is the length in years of the asset's useful life. Each year, the item loses (bs) × Template:SfracScript error: No such module "Check for unknown parameters"., where Template:Mvar is the item's beginning value (in units of currency), Template:Mvar is its final salvage value, Template:Mvar is the total number of years the item is usable, and Template:Mvar the current year in the depreciation schedule. Under this method, an item with a usable life of Template:Mvar = 4 years would lose Template:Sfrac of its "losable" value in the first year, Template:Sfrac in the second, Template:Sfrac in the third, and Template:Sfrac in the fourth, accumulating a total depreciation of Template:Sfrac (the whole) of the losable value.

Board game designers Geoffrey Engelstein and Isaac Shalev describe triangular numbers as having achieved "nearly the status of a mantra or koan among game designers", describing them as "deeply intuitive" and "featured in an enormous number of games, [proving] incredibly versatile at providing escalating rewards for larger sets without overly incentivizing specialization to the exclusion of all other strategies".[18]

Relationship between the maximum number of pips on an end of a domino and the number of dominoes in its set
(values in bold are common)
Max. pips 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Tn 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 161 190 210 231 253

Triangular roots and tests for triangular numbersScript error: No such module "anchor".

By analogy with the square root of Template:Mvar, one can define the (positive) triangular root of Template:Mvar as the number Template:Mvar such that Tn = xScript error: No such module "Check for unknown parameters".:[19] n=8x+112

which follows immediately from the quadratic formula. So an integer Template:Mvar is triangular if and only if 8x + 1Script error: No such module "Check for unknown parameters". is a square. Equivalently, if the positive triangular root Template:Mvar of Template:Mvar is an integer, then Template:Mvar is the Template:Mvarth triangular number.[19]

Alternative name

By analogy with the factorial function, a product whose factors are the integers from 1 to Template:Mvar, Donald Knuth proposed the name Termial function,[20] with the notation Template:Mvar? for the sum whose terms are the integers from 1 to Template:Mvar (the Template:Mvarth triangular number). Although some other sources use this name and notation,[21] they are not in wide use.

See also

References

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "Citation/CS1".
  6. Script error: No such module "Citation/CS1".
  7. Script error: No such module "Citation/CS1".
  8. Script error: No such module "citation/CS1". See equations 18 - 20.
  9. Script error: No such module "citation/CS1".
  10. http://demonstrations.wolfram.com/GeometricProofOfTheTetrahedralNumberFormula
  11. Script error: No such module "Citation/CS1".
  12. Chen, Fang: Triangular numbers in geometric progression
  13. Fang: Nonexistence of a geometric progression that contains four triangular numbers
  14. Script error: No such module "Citation/CS1".
  15. Script error: No such module "citation/CS1".
  16. Script error: No such module "citation/CS1".
  17. Script error: No such module "citation/CS1".
  18. Script error: No such module "citation/CS1".
  19. a b Script error: No such module "citation/CS1".
  20. Template:TAOCP
  21. Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters".

External links

Template:Sister project

Template:Figurate numbers Template:Series (mathematics) Template:Classes of natural numbers