See How Things Work

Triangular numbers

Unit
Special Whole Numbers
Part
1. Special Whole Numbers
Lesson
1.2

A triangular number counts the dots in a triangle whose rows hold 1, 2, 3, … dots. This lesson defines the triangular numbers T(n) = 1 + 2 + ⋯ + n, proves that T(n) = n × (n + 1) ÷ 2 by fitting two triangles into a rectangle, and shows how triangles make squares: two neighboring triangles make a square, and eight equal triangles and one dot make an odd square.

Triangular numbers

Among the numbers that the Pythagoreans pictured as dots, the triangular numbers came first: 1, 3, 6 and 10 count the dots that can be arranged evenly in an equilateral triangle.⁠[1] The rows of such a triangle hold 1, 2, 3, … dots, each one dot longer than the row above it,⁠[2] and so the ancient Greeks called a number triangular when it is a sum of consecutive whole numbers beginning with 1.⁠[3]

Definition (Triangular number).

For a whole number n ≥ 1, the nth triangular number is T(n) = 1 + 2 + 3 + ⋯ + n, the number of dots in a triangle with rows of 1, 2, 3, …, n dots.⁠[3][4] For n = 0 the triangle has no rows, and T(0) = 0.

The name T(n) is this lesson’s notation; Burton, for example, writes tn.⁠[5] Read T(n) as “the nth triangular number”: T(4) = 1 + 2 + 3 + 4 = 10. By the associative property of addition the rows can be added in any grouping, so T(n) is also the previous triangle with one more row: T(n) = T(n − 1) + n for n ≥ 1.⁠[2] The rows are therefore the gnomons of the triangles, and they are simply the counting numbers 1, 2, 3, ….⁠[6]

1361015
Figure. The first five triangular numbers, 1, 3, 6, 10 and 15: triangles of dots with rows of 1, then 1 and 2, then 1, 2 and 3, and so on. Each triangle has one more row than the one before, one dot longer than its last row.⁠[1]
Historical note.

Heath thinks it probable that Pythagoras himself discovered that adding 1, 2, 3, … from 1 always makes a triangle,⁠[7] and Burton writes that Pythagoras knew at least the triangular numbers.⁠[8] The triangle of 10 dots in four rows, which the Pythagoreans called the tetractys,⁠[9] appears in the lesson “Pythagoras and his followers”.

Example (The seventh triangular number).

Find T(7).

  1. T(7) = 1 + 2 + 3 + 4 + 5 + 6 + 7.
  2. Add row by row: 1, 3, 6, 10, 15, 21, 28. Each running total is the triangular number before.

Answer: T(7) = 28.

Example (How many rows?).

A triangle of dots has 21 dots. How many rows does it have?

  1. Add rows until the dots are used up: 1 + 2 + 3 + 4 + 5 = 15, and 15 + 6 = 21.
  2. The sixth row uses the last dots, so 21 = T(6).

Answer: 6 rows.

Two triangles make a rectangle

Adding the rows one at a time is slow for a large triangle. Push the rows of a triangle to the left, so that it becomes a staircase, and set a second copy of it, turned upside down, beside it. The staircases fit together.

T(5)T(5)→5 × 6 = 30
Figure. Left: T(5) = 15 dots in rows of 1 to 5, pushed to the left. Middle: a copy turned upside down, with rows of 5 down to 1. Right: the two fit together into 5 rows of 6 dots, so 2 × T(5) = 5 × 6 = 30.⁠[10]
Theorem (two triangles).

For every whole number n, 2 × T(n) = n × (n + 1).⁠[10][11]

Proof.

For n = 0 both sides are 0. Let n ≥ 1. Row k of the triangle, for k from 1 to n, holds k dots; row k of the copy turned upside down holds n + 1 − k dots, since its rows run from n down to 1. Side by side, row k holds k + (n + 1 − k) = n + 1 dots. So the two triangles together fill n rows of n + 1 dots, which by Multiplication lesson 1.2 is n × (n + 1) dots. Each triangle holds T(n) dots, so T(n) + T(n) = 2 × T(n) = n × (n + 1).

To find T(n) itself, the rectangle has to be halved, and halving needs an even number. It always is one.

Proposition (the product of neighbors is even).

For every whole number n, n × (n + 1) is even.⁠[12]

Proof.

Of the two neighbors n and n + 1, one is even and the other odd, by the Proposition “neighbors” of “Even and odd numbers”. A product with an even factor is even, by the parity of a product in the same lesson.

Corollary (the formula for T(n)).

For every whole number n, T(n) = n × (n + 1) ÷ 2, and the division leaves no remainder.⁠[13]

Proof.

By the Proposition, n × (n + 1) is even, so n × (n + 1) ÷ 2 is a whole number. By the Theorem, T(n) × 2 = n × (n + 1), and by “Division as the inverse of multiplication” that says exactly T(n) = n × (n + 1) ÷ 2.

In practice, halve the even factor before multiplying. If n = 2 × k is even, then n × (n + 1) = 2 × (k × (n + 1)) by the associative property, so T(n) = (n ÷ 2) × (n + 1); if n is odd, n + 1 is even and T(n) = n × ((n + 1) ÷ 2). So T(100) = 50 × 101 and T(9) = 9 × 5.

Example (The sum told in the legend).

Find 1 + 2 + 3 + ⋯ + 100.

  1. The sum is T(100). By the Corollary, T(100) = 100 × 101 ÷ 2.
  2. Halve the even factor: 100 ÷ 2 = 50, and 50 × 101 = 5,050.

Answer: 5,050. In the rectangle of the Theorem, the 100 rows of 101 dots hold 10,100 dots, twice 5,050.

Example (Checking the formula on a small case).

Find T(10) by the formula and by adding.

  1. Formula: 10 is even, so T(10) = (10 ÷ 2) × 11 = 5 × 11 = 55.
  2. Adding: 1 + 2 + ⋯ + 7 = 28 (the earlier example), 28 + 8 = 36, 36 + 9 = 45, 45 + 10 = 55.

Answer: T(10) = 55 both ways.

Example (The edge cases n = 1 and n = 0).

What does the formula give for n = 1 and for n = 0?

  1. n = 1: 1 × 2 ÷ 2 = 1, the single dot of the first triangle.
  2. n = 0: 0 × 1 ÷ 2 = 0 ÷ 2 = 0, the empty triangle with no rows.

Answer: T(1) = 1 and T(0) = 0, as the definition says.

Example (A common mistake: n × n ÷ 2).

Someone computes the ninth triangular number as 9 × 9 ÷ 2. Find the mistake.

  1. 9 × 9 = 81 is odd, so 81 ÷ 2 is not even a whole number. That alone shows the method is wrong: a number of dots is whole.
  2. The rectangle made of two triangles is n by n + 1, not n by n. T(9) = 9 × 10 ÷ 2 = 9 × 5 = 45.

Answer: T(9) = 45. Check: T(10) − 10 = 55 − 10 = 45.

Example (A block of consecutive numbers).

Find 51 + 52 + 53 + ⋯ + 100.

  1. 1 + 2 + ⋯ + 100 is the sum 1 + ⋯ + 50 followed by 51 + ⋯ + 100. So 51 + ⋯ + 100 = T(100) − T(50).
  2. T(100) = 5,050 and T(50) = 25 × 51 = 1,275.
  3. 5,050 − 1,275 = 3,775.

Answer: 3,775. Check by pairing: 51 + 100 = 52 + 99 = ⋯ = 75 + 76 = 151, and 25 pairs give 25 × 151 = 3,775.

Caution.

A famous story says that Carl Friedrich Gauss, as a young pupil, astonished his teacher by summing the numbers from 1 to 100 at once,⁠[14] and it is often told with the pairing 1 + 100, 2 + 99, …. The story is not reliable in its details. The earliest account, a memorial volume of 1856, mentions no numbers from 1 to 100 or any other particular series;⁠[15][16] Brian Hayes, who traced the story through many retellings, first found the series 1 to 100 in a book of 1938.⁠[17] The lesson “Carl Friedrich Gauss” examines the story.

Game

Two triangles make a rectangle

Round
1
Score
0
Streak
0

The blue triangle has rows of 1, 2, 3, …, 8 dots. How many dots does it have? Place a copy of it, turned upside down, beside it.

One triangle: rows of 1 to 8 dots.

Triangles make squares

Two triangles of the same size make a rectangle. Two triangles of neighboring sizes make a square.

T(4) + T(5) = 10 + 15= 5² = 25
Figure. A 5 × 5 square of dots, split along a staircase: on and below the diagonal, rows of 1 to 5 dots (blue, T(5) = 15); above it, rows of 4 down to 0 (amber, T(4) = 10). So T(4) + T(5) = 5².⁠[18]
Theorem (two neighboring triangles).

For every whole number n ≥ 1, T(n − 1) + T(n) = n². The sum of two consecutive triangular numbers is the square whose side is the side of the larger triangle.⁠[18][19]

Proof.

Take an n × n square of dots with rows and columns numbered 1 to n. In row k, the dots in columns 1 to k lie on or below the diagonal, k of them, and the other n − k lie above it. Below and on the diagonal the rows hold 1, 2, …, n dots: T(n). Above it they hold n − 1, n − 2, …, 1, 0 dots: T(n − 1). Together they are all n² dots.

The same in numbers: by the Theorem, 2 × T(n − 1) + 2 × T(n) = (n − 1) × n + n × (n + 1), which by the distributive property is n × ((n − 1) + (n + 1)) = n × (2 × n) = 2 × n². Halving both sides gives T(n − 1) + T(n) = n².

Historical note.

Nicomachus of Gerasa, whose Introduction to Arithmetic of around 100 CE is the fullest account of Pythagorean arithmetic to survive, mentions that any square is the sum of two successive triangular numbers;⁠[20][21][22] Heath also credits the theorem to Theon of Smyrna.⁠[23]

Example (Two triangles into a square).

Check the Theorem for n = 8.

  1. T(7) = 7 × 8 ÷ 2 = 28 and T(8) = 4 × 9 = 36.
  2. 28 + 36 = 64 = 8².

Answer: T(7) + T(8) = 64 = 8².

A second relation needs eight triangles. It was known in antiquity: Plutarch, around 100 CE, stated it.⁠[24][25]

Theorem (eight triangles and one dot).

For every whole number n, 8 × T(n) + 1 = (2 × n + 1)².

Proof.

By the Theorem “two triangles”, 8 × T(n) = 4 × (2 × T(n)) = 4 × n × (n + 1) = 4 × n² + 4 × n, using the distributive property. By the square of a sum and the power of a product (Powers lesson 1.5), (2 × n + 1)² = (2 × n)² + 2 × (2 × n) × 1 + 1² = 4 × n² + 4 × n + 1. The two sides agree.

8 × T(3) + 1= 8 × 6 + 1= 49 = 7²
Figure. A 7 × 7 square of dots: four rectangles of 3 × 4 dots, one in each color, around a single center dot. Each rectangle is two triangles of T(3) = 6 dots (light and dark), so 7² = 8 × T(3) + 1.⁠[25]
Corollary (odd squares).

The square of every odd number is 1 more than a multiple of 8.⁠[26]

Proof.

An odd number is 2 × n + 1 for a whole number n, and by the Theorem its square is 8 × T(n) + 1.

This completes the remark at the end of the lesson “Square numbers”: 9 = 8 × 1 + 1, 25 = 8 × 3 + 1, 49 = 8 × 6 + 1, and the multipliers 1, 3, 6 are the triangular numbers. The Theorem also works backward, and gives a test for triangular numbers.⁠[27]

Theorem (test for triangular numbers).

A whole number N is triangular exactly when 8 × N + 1 is a square number.

Proof.

If N = T(n), then 8 × N + 1 = (2 × n + 1)² by the Theorem.

Conversely, let 8 × N + 1 = m² for a whole number m. Then m² is odd, so m is odd (if m were even, m × m would be even). Write m = 2 × n + 1. By the Theorem, 8 × T(n) + 1 = m² = 8 × N + 1, so 8 × T(n) = 8 × N, and dividing by 8 (the quotient is unique, by “Division as the inverse of multiplication”) gives N = T(n).

Example (A large triangular number).

Is 210 triangular? If so, which one is it?

  1. 8 × 210 + 1 = 1,681, and 41² = 41 × 41 = 1,681. So 210 is triangular.
  2. 41 = 2 × 20 + 1, so n = 20.

Answer: 210 = T(20). Check: T(20) = 10 × 21 = 210.

Example (A number that is not triangular).

Is 100 triangular?

  1. 8 × 100 + 1 = 801. 28² = 784 and 29² = 841, so 801 lies strictly between two neighboring squares and is not a square.
  2. By the test, 100 is not triangular.

Answer: no. Indeed T(13) = 91 and T(14) = 105, and 100 lies between them.

Game

Can these dots make a triangle?

Round
1
Score
0
Streak
0

Here is a pile of 28 dots. Can they be set out as a triangle with rows of 1, 2, 3, … dots? Lay the rows one at a time.

No rows laid yet: 28 dots in the pile.

The last digits of triangular numbers

Squares never end in 2, 3, 7 or 8 (Powers lesson 1.6). Triangular numbers have their own forbidden digits.

Proposition (last digits).

The last digit of a triangular number is always 0, 1, 3, 5, 6 or 8, never 2, 4, 7 or 9.⁠[28]

Proof.

First, T(n + 20) and T(n) end in the same digit. Indeed T(n + 20) = T(n) + (n + 1) + (n + 2) + ⋯ + (n + 20), and the twenty added terms regroup as 20 × n + (1 + 2 + ⋯ + 20) = 20 × n + T(20) = 20 × n + 210. That is 10 × (2 × n + 21), a multiple of 10, which ends in 0; adding it does not change the last digit.

So the last digits repeat every 20 steps, and it is enough to look at T(0) to T(19), listed in the table. Their last digits are 0, 1, 3, 5, 6 and 8 only.

nT(n)last digit
000
111
233
366
4100
5155
6211
7288
8366
9455
nT(n)last digit
10555
11666
12788
13911
141055
151200
161366
171533
181711
191900
Table. The triangular numbers T(0) to T(19) and their last digits. From T(20) = 210 on, the last digits repeat in the same order.
Example (Ruled out by the last digit).

Is 2,024 a triangular number? Is 3,486?

  1. 2,024 ends in 4, which no triangular number does. It is not triangular.
  2. 3,486 ends in 6, which is allowed, so use the test: 8 × 3,486 + 1 = 27,889, and 167² = 27,889. Since 167 = 2 × 83 + 1, 3,486 = T(83).

Answer: 2,024 is not triangular; 3,486 = T(83). Check: T(83) = 83 × 42 = 3,486.

Example (A common mistake: trusting an allowed digit).

40 ends in 0, an allowed digit. Is it triangular?

  1. T(8) = 36 and T(9) = 45, so 40 lies strictly between two neighboring triangular numbers.
  2. The test agrees: 8 × 40 + 1 = 321 lies between 17² = 289 and 18² = 324.

Answer: no. An allowed last digit does not make a number triangular; a forbidden one rules it out.

Looking ahead.

Triangular numbers reach much further. Fermat conjectured that every positive whole number is a sum of at most three triangular numbers, for example 16 = 6 + 10 and 39 = 3 + 15 + 21;⁠[29][30] Burton dates the first proof, by Gauss, to 1801, and MathWorld notes that Gauss recorded the discovery in his diary on 10 July 1796.⁠[29][30] And the sum of the first n cubes is the square of a triangular number, 1³ + 2³ + ⋯ + n³ = T(n)², an identity usually attributed to Nicomachus.⁠[31] Sums such as these are proved in the unit Mathematical Induction, lesson “Sums of figurate numbers”.

Exercises

Exercise .

Find T(12) and T(25).

▸ Show solution

T(12) = 6 × 13 = 78 and T(25) = 25 × 13 = 325 (25 is odd, so halve 26).

Exercise .

Find 1 + 2 + ⋯ + 40 and 41 + 42 + ⋯ + 80.

▸ Show solution

1 + 2 + ⋯ + 40 = T(40) = 20 × 41 = 820. The second sum is T(80) − T(40) = 40 × 81 − 820 = 3,240 − 820 = 2,420. Check by pairing: 41 + 80 = 121, and 20 pairs give 20 × 121 = 2,420.

Exercise .

Ten people each shake hands once with every other person. How many handshakes are there?

▸ Show solution

Line the people up. The first shakes hands with the 9 after him, the second with the 8 after him (his handshake with the first is already counted), and so on, down to the ninth, who shakes hands with the last one. That is 9 + 8 + ⋯ + 1 = T(9) = 9 × 5 = 45 handshakes.

Exercise .

Is 1,275 triangular? Is 1,277?

▸ Show solution

1,275 ends in 5, which is allowed. 8 × 1,275 + 1 = 10,201 = 101², and 101 = 2 × 50 + 1. So 1,275 = T(50). Check: T(50) = 25 × 51 = 1,275.

1,277 ends in 7, which no triangular number does, so it is not triangular.

Exercise .

Prove that 9 × T(n) + 1 is always a triangular number, namely T(3n + 1). Check it for n = 2 and n = 4.

▸ Show solution

By the Theorem “two triangles”, 2 × T(3n + 1) = (3n + 1) × (3n + 2). By the corollary “both factors split” of “The distributive property”, this is 9 × n² + 6 × n + 3 × n + 2 = 9 × (n² + n) + 2 = 9 × (2 × T(n)) + 2, since n² + n = n × (n + 1) = 2 × T(n). So 2 × T(3n + 1) = 2 × (9 × T(n) + 1), and halving gives T(3n + 1) = 9 × T(n) + 1.

For n = 2: 9 × T(2) + 1 = 9 × 3 + 1 = 28 = T(7). For n = 4: 9 × 10 + 1 = 91 = T(13).

Exercise .

Prove that T(2n) = 3 × T(n) + T(n − 1) for every n ≥ 1, and check it for n = 3 and n = 5.

▸ Show solution

2 × T(2n) = 2n × (2n + 1) = 4 × n² + 2 × n. And 2 × (3 × T(n) + T(n − 1)) = 3 × n × (n + 1) + (n − 1) × n = (3 × n² + 3 × n) + (n² − n) = 4 × n² + 2 × n. The doubles agree, so T(2n) = 3 × T(n) + T(n − 1).

For n = 3: 3 × 6 + 3 = 21 = T(6). For n = 5: 3 × 15 + 10 = 55 = T(10).

Summary

  1. The nth triangular number T(n) = 1 + 2 + ⋯ + n counts the dots in a triangle with rows of 1 to n; T(n) = T(n − 1) + n.
  2. Two copies of a triangle make n rows of n + 1 dots, so 2 × T(n) = n × (n + 1); this product is always even, and T(n) = n × (n + 1) ÷ 2.
  3. Two neighboring triangles make a square: T(n − 1) + T(n) = n².
  4. Eight equal triangles and one dot make an odd square: 8 × T(n) + 1 = (2n + 1)². So N is triangular exactly when 8 × N + 1 is a square.
  5. Triangular numbers end only in 0, 1, 3, 5, 6 or 8.

Sources

  1. 1.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 95 (the whole topic: pp. 94–97).
    “The numbers 1, 3, 6, and 10 are examples of triangular numbers, because each of these counts the number of dots that can be arranged evenly in an equilateral triangle.”
    Used for: 1, 3, 6 and 10 count the dots arranged evenly in an equilateral triangle (text and figure).
  2. 2.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 96 (the whole topic: pp. 95–96).
    “each new one is obtained from the previous triangular number by adding another row containing one more dot than the previous row added”
    Used for: each row is one dot longer than the one before; T(n) = T(n − 1) + n.
  3. 3.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 2, “Divisibility Theory in the Integers”, section 2.1, “Early Number Theory”, Problems 2.1, problem 1, p. 15 (the whole topic: pp. 13–16).
    “This led the ancient Greeks to call a number triangular if it is the sum of consecutive integers, beginning with 1.”
    Used for: a triangular number is a sum of consecutive whole numbers beginning with 1 (the definition).
  4. 4.
    Eric W. Weisstein, “Triangular Number”, MathWorld—A Wolfram Resource.
    “a triangular grid of points where the first row contains a single element and each subsequent row contains one more element than the previous one”
    Used for: the definition: the dots of a triangle with rows of 1, 2, 3, … dots (second source).
  5. 5.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 96 (the whole topic: pp. 95–96).
    “Thus, if tn designates the nth triangular number”
    Used for: Burton’s notation t with subscript n for the nth triangular number.
  6. 6.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Systematic treatises on arithmetic”, “Nicomachus, Introductio Arithmetica”, p. 106 (the whole topic: pp. 105–106).
    “The gnomons of triangles are therefore the successive natural numbers.”
    Used for: the gnomons (rows) of the triangles are the counting numbers 1, 2, 3, ….
  7. 7.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Figured numbers”, “(α) Triangular numbers”, p. 76 (the whole topic: pp. 76–77).
    “It was probably Pythagoras who discovered that the sum of any number of successive terms of the series of natural numbers 1, 2, 3 . . . beginning from 1 makes a triangular number.”
    Used for: Heath’s judgment that Pythagoras probably discovered that adding 1, 2, 3, … from 1 makes a triangle.
  8. 8.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 95 (the whole topic: pp. 94–97).
    “Pythagoras himself was acquainted at least with the triangular numbers”
    Used for: Burton: Pythagoras knew at least the triangular numbers.
  9. 9.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Pythagoras and His Followers”, p. 91 (the whole topic: pp. 90–93).
    “The tetractys was represented geometrically by an equilateral triangle made up of 10 dots”
    Used for: the triangle of 10 dots in four rows, called the tetractys by the Pythagoreans (the sentence before: the symbol on which the members of the Pythagorean community swore their oaths).
  10. 10.
    John H. Conway and Richard K. Guy, The Book of Numbers (Copernicus (Springer), 1996).
    Chapter 2, “Figures from Figures: Doing Arithmetic and Algebra by Geometry”, section “Triangular Numbers”, p. 34 (the whole topic: pp. 33–35).
    “If we put two triangular numbers of side n together, they form a rectangle, n + 1 by n”
    Used for: the Theorem “two triangles”: two triangles of side n fit together into a rectangle n by n + 1 (text and figure).
  11. 11.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 96 (the whole topic: pp. 95–96).
    “It is clear that such an array contains n(n + 1) dots and so”
    Used for: the two triangles fitted together (“to produce a rectangular array whose sides are n and n + 1”, the sentence before) hold n × (n + 1) dots, so 2 × T(n) = n × (n + 1) (second source).
  12. 12.
    John H. Conway and Richard K. Guy, The Book of Numbers (Copernicus (Springer), 1996).
    Chapter 2, “Figures from Figures: Doing Arithmetic and Algebra by Geometry”, section “Triangular Numbers”, p. 34 (the whole topic: pp. 33–35).
    “Since for two consecutive numbers one is odd and the other is even, it's no surprise that their product is always divisible by 2.”
    Used for: the Proposition: the product of two neighboring numbers is even.
  13. 13.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 2, “Divisibility Theory in the Integers”, section 2.1, “Early Number Theory”, Problems 2.1, problem 1, p. 15 (the whole topic: pp. 13–16).
    “A number is triangular if and only if it is of the form n(n + 1)/2”
    Used for: the Corollary T(n) = n × (n + 1) ÷ 2.
  14. 14.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 10, “The Revival of Number Theory: Fermat, Euler, and Gauss”, section 10.3, “The Prince of Mathematicians: Carl Friedrich Gauss”, “Gauss’s Disquisitiones Arithmeticae”, p. 546 (the whole topic: pp. 546–547).
    “It is said that in his first arithmetic class, Gauss astonished his teacher by instantly solving what was intended as a long “busy work” problem, “Find the sum of all the numbers from 1 to 100.””
    Used for: the story that Gauss astonished his teacher by summing the numbers from 1 to 100 at once, told as a story (“It is said”); the pairing appears in Burton’s next sentences.
  15. 15.
    Brian Hayes, “Gauss’s Day of Reckoning”, American Scientist 94(3) (2006), beginning on p. 200.
    “This locus classicus of the Gauss schoolroom story is a memorial volume published in 1856, just a year after Gauss's death.”
    Used for: the earliest account of the story is a memorial volume of 1856.
  16. 16.
    Brian Hayes, “Gauss’s Day of Reckoning”, American Scientist 94(3) (2006), beginning on p. 200.
    “There is no mention of the numbers from 1 to 100, or any other specific arithmetic progression.”
    Used for: the earliest account names no numbers from 1 to 100 or any other particular series.
  17. 17.
    Brian Hayes, “Gauss’s Day of Reckoning”, American Scientist 94(3) (2006), beginning on p. 200.
    “In the literature I have surveyed, the 1-100 series makes its first appearance in 1938, some 80 years after Sartorius wrote his memoir.”
    Used for: Hayes first found the series 1 to 100 in a book of 1938.
  18. 18.
    John H. Conway and Richard K. Guy, The Book of Numbers (Copernicus (Springer), 1996).
    Chapter 2, “Figures from Figures: Doing Arithmetic and Algebra by Geometry”, section “Triangular Numbers”, p. 36 (the whole topic: pp. 36–37).
    “Figure 2.19 shows that the sum of two consecutive triangular numbers is a square”
    Used for: the Theorem “two neighboring triangles”, shown by splitting a square of dots (text and figure).
  19. 19.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 95 (the whole topic: pp. 94–97).
    “the sum of two consecutive triangular numbers always equals the square number whose”
    Used for: the Theorem: the sum of two consecutive triangular numbers is the square whose side is the side of the larger triangle (““side” is the same as the “side” of the larger of the two triangles”, the same sentence).
  20. 20.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Systematic treatises on arithmetic”, “Nicomachus, Introductio Arithmetica”, p. 106 (the whole topic: pp. 105–106).
    “After mentioning (c. 12) that any square is the sum of two successive triangular numbers”
    Used for: Nicomachus mentions that any square is the sum of two successive triangular numbers.
  21. 21.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “Nicomachus’s Introductio Arithmeticae”, p. 94 (the whole topic: pp. 94).
    “The most complete exposition that has come down to us of the arithmetic of Pythagoras and his immediate successors is contained in the Introductio Arithmeticae of Nicomachus of Gerasa (circa 100).”
    Used for: Nicomachus’s Introduction to Arithmetic, of around 100 CE, as the fullest surviving account of Pythagorean arithmetic.
  22. 22.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Systematic treatises on arithmetic (theory of numbers)”, p. 97 (the whole topic: pp. 97–99).
    “Nicomachus, of Gerasa, probably the Gerasa in Judaea east of the river Jordan, flourished about 100 A.D.”
    Used for: Nicomachus of Gerasa lived around 100 CE (second source for the date).
  23. 23.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Figured numbers”, “(ζ) Oblong numbers”, p. 83 (the whole topic: pp. 82–84).
    “Scarcely less obvious is the theorem of Theon that any square number is made up of two triangular numbers”
    Used for: Heath credits the theorem that a square is made of two triangular numbers to Theon of Smyrna.
  24. 24.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, Problems, problem 1, p. 103 (the whole topic: pp. 95–99).
    “Plutarch (about A.D. 100) stated that if a triangular number is multiplied by 8, and 1 is added, then the result is a square number.”
    Used for: Plutarch, around 100 CE, stated that 8 times a triangular number plus 1 is a square.
  25. 25.
    Thomas L. Heath, A History of Greek Mathematics, Vol. II: From Aristarchus to Diophantus (Clarendon Press, Oxford, 1921).
    Chapter XX, “Algebra: Diophantus of Alexandria”, section “The treatise on Polygonal Numbers”, p. 516 (the whole topic: pp. 514–517).
    “Every triangular number taken eight times and then increased by 1 gives a square.”
    Used for: the Theorem “eight triangles and one dot”, mentioned by Plutarch, a contemporary of Nicomachus (the sentence before) (text and figure).
  26. 26.
    John H. Conway and Richard K. Guy, The Book of Numbers (Copernicus (Springer), 1996).
    Chapter 2, “Figures from Figures: Doing Arithmetic and Algebra by Geometry”, section “Triangular Numbers”, p. 38 (the whole topic: pp. 37–38).
    “Figure 2.23 shows once again that an odd square is congruent to 1 modulo 8.”
    Used for: the Corollary: an odd square is 1 more than a multiple of 8, shown by the figure of eight triangles and one dot (“congruent to 1 modulo 8” means leaving the remainder 1 on division by 8).
  27. 27.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 2, “Divisibility Theory in the Integers”, section 2.1, “Early Number Theory”, Problems 2.1, problem 1, p. 15 (the whole topic: pp. 13–16).
    “The integer n is a triangular number if and only if 8n + 1 is a perfect square.”
    Used for: the test for triangular numbers: N is triangular exactly when 8 × N + 1 is a square.
  28. 28.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Theory of Congruences”, section 4.3, “Binary and Decimal Representations of Integers”, Problems 4.3, problem 2, p. 73 (the whole topic: pp. 69–73).
    “The units digit of a triangular number is 0, 1, 3, 5, 6, or 8.”
    Used for: the Proposition on the last digits of triangular numbers.
  29. 29.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “The Theory of Figurative Numbers”, p. 98 (the whole topic: pp. 97–98).
    “This remarkable result was conjectured by Fermat in a letter to Mersenne dated 1636 and first proved by Gauss in 1801.”
    Used for: Fermat’s conjecture that every positive whole number is a sum of at most three triangular numbers (16 = 6 + 10, 39 = 3 + 15 + 21 are Burton’s examples), and Burton’s date of 1801 for Gauss’s first proof.
  30. 30.
    Eric W. Weisstein, “Triangular Number”, MathWorld—A Wolfram Resource.
    “Gauss proved the triangular case (Wells 1986, p. 47), and noted the event in his diary on July 10, 1796”
    Used for: Fermat’s polygonal number theorem includes the statement on three triangular numbers (the sentence before); Gauss proved it and recorded the discovery in his diary on 10 July 1796.
  31. 31.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 3, “The Beginnings of Greek Mathematics”, section 3.2, “Pythagorean Mathematics”, “The Theory of Figurative Numbers”, p. 99 (the whole topic: pp. 98–99).
    “This unexpected identity, relating sums of cubes to triangular numbers, goes back to the first century and is usually attributed to Nicomachus himself.”
    Used for: the sum of the first n cubes is the square of the nth triangular number, an identity usually attributed to Nicomachus.