Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Squared triangular number
Theorem that the sum of the first n cubes is the square of the nth triangular number

In number theory, the sum of the first n cubes is the square of the nth triangular number. That is,

1 3 + 2 3 + 3 3 + ⋯ + n 3 = ( 1 + 2 + 3 + ⋯ + n ) 2 . {\displaystyle 1^{3}+2^{3}+3^{3}+\cdots +n^{3}=\left(1+2+3+\cdots +n\right)^{2}.}

The same equation may be written more compactly using the mathematical notation for summation:

∑ k = 1 n k 3 = ( ∑ k = 1 n k ) 2 . {\displaystyle \sum _{k=1}^{n}k^{3}=\left(\sum _{k=1}^{n}k\right)^{2}.}

This identity is sometimes called Nicomachus's theorem, after Nicomachus of Gerasa (c. 60 – c. 120 CE).

Related Image Collections Add Image
We don't have any YouTube videos related to Squared triangular number yet.
We don't have any PDF documents related to Squared triangular number yet.
We don't have any Books related to Squared triangular number yet.
We don't have any archived web articles related to Squared triangular number yet.

History

Nicomachus, at the end of Chapter 20 of his Introduction to Arithmetic, pointed out that if one writes a list of the odd numbers, the first is the cube of 1, the sum of the next two is the cube of 2, the sum of the next three is the cube of 3, and so on. He does not go further than this, but from this it follows that the sum of the first n {\displaystyle n} cubes equals the sum of the first n ( n + 1 ) 2 {\displaystyle {\tfrac {n(n+1)}{2}}} odd numbers, that is, the odd numbers from 1 to n ( n + 1 ) − 1 {\displaystyle n(n+1)-1} . The average of these numbers is obviously n ( n + 1 ) 2 {\displaystyle {\tfrac {n(n+1)}{2}}} , and there are n ( n + 1 ) 2 {\displaystyle {\tfrac {n(n+1)}{2}}} of them, so their sum is ( n ( n + 1 ) 2 ) 2 {\displaystyle \left({\tfrac {n(n+1)}{2}}\right)^{2}} .

Many early mathematicians have studied and provided proofs of Nicomachus's theorem. Stroeker (1995) claims that "every student of number theory surely must have marveled at this miraculous fact".1 Pengelley (2002) finds references to the identity not only in the works of Nicomachus in what is now Jordan in the 1st century CE, but also in those of Aryabhata in India in the 5th century, and in those of Al-Karaji c. 1000 in Persia.2 Bressoud (2004) mentions several additional early mathematical works on this formula, by Al-Qabisi (10th century Arabia), Gersonides (c. 1300, France), and Nilakantha Somayaji (c. 1500, India); he reproduces Nilakantha's visual proof.3

Numeric values; geometric and probabilistic interpretation

The sequence of squared triangular numbers is

0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, ... (sequence A000537 in the OEIS).

These numbers can be viewed as figurate numbers, a four-dimensional hyperpyramidal generalization of the triangular numbers and square pyramidal numbers.

As Stein (1971) observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in an n × n {\displaystyle n\times n} grid. For instance, the points of a 4 × 4 {\displaystyle 4\times 4} grid (or a square made up of three smaller squares on a side) can form 36 different rectangles. The number of squares in a square grid is similarly counted by the square pyramidal numbers.4

The identity also admits a natural probabilistic interpretation as follows. Let X , Y , Z , W {\displaystyle X,Y,Z,W} be four integer numbers independently and uniformly chosen at random between 1 and n {\displaystyle n} . Then, the probability that W {\displaystyle W} is the largest of the four numbers equals the probability that Y {\displaystyle Y} is at least as large as X {\displaystyle X} and that W {\displaystyle W} is at least as large as Z {\displaystyle Z} . That is, Pr [ max ( X , Y , Z ) ≤ W ] = Pr [ X ≤ Y ∧ Z ≤ W ] . {\displaystyle \Pr[\max(X,Y,Z)\leq W]=\Pr[X\leq Y\wedge Z\leq W].} For any particular value of W {\displaystyle W} , the combinations of X {\displaystyle X} , Y {\displaystyle Y} , and Z {\displaystyle Z} that make W {\displaystyle W} largest form a cube 1 ≤ X , Y , Z ≤ n {\displaystyle 1\leq X,Y,Z\leq n} so (adding the size of this cube over all choices of W {\displaystyle W} }) the number of combinations of X , Y , Z , W {\displaystyle X,Y,Z,W} for which W {\displaystyle W} is largest is a sum of cubes, the left hand side of the Nichomachus identity. The sets of pairs ( X , Y ) {\displaystyle (X,Y)} with X ≤ Y {\displaystyle X\leq Y} and of pairs ( Z , W ) {\displaystyle (Z,W)} with Z ≤ W {\displaystyle Z\leq W} form isosceles right triangles, and the set counted by the right hand side of the equation of probabilities is the Cartesian product of these two triangles, so its size is the square of a triangular number on the right hand side of the Nichomachus identity. The probabilities themselves are respectively the left and right sides of the Nichomachus identity, normalized to make probabilities by dividing both sides by n 4 {\displaystyle n^{4}} .

Proofs

Charles Wheatstone (1854) gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers. He begins by giving the identity n 3 = ( n 2 − n + 1 ) + ( n 2 − n + 1 + 2 ) + ( n 2 − n + 1 + 4 ) + ⋯ + ( n 2 + n − 1 ) ⏟ n  consecutive odd numbers . {\displaystyle n^{3}=\underbrace {\left(n^{2}-n+1\right)+\left(n^{2}-n+1+2\right)+\left(n^{2}-n+1+4\right)+\cdots +\left(n^{2}+n-1\right)} _{n{\text{ consecutive odd numbers}}}.} That identity is related to triangular numbers T n {\displaystyle T_{n}} in the following way: n 3 = ∑ k = T n − 1 + 1 T n ( 2 k − 1 ) , {\displaystyle n^{3}=\sum _{k=T_{n-1}+1}^{T_{n}}(2k-1),} and thus the summands forming n 3 {\displaystyle n^{3}} start off just after those forming all previous values 1 3 {\displaystyle 1^{3}} up to ( n − 1 ) 3 {\displaystyle (n-1)^{3}} . Applying this property, along with another well-known identity: n 2 = ∑ k = 1 n ( 2 k − 1 ) , {\displaystyle n^{2}=\sum _{k=1}^{n}(2k-1),} produces the following derivation:5 ∑ k = 1 n k 3 = 1 + 8 + 27 + 64 + ⋯ + n 3 = 1 ⏟ 1 3 + 3 + 5 ⏟ 2 3 + 7 + 9 + 11 ⏟ 3 3 + 13 + 15 + 17 + 19 ⏟ 4 3 + ⋯ + ( n 2 − n + 1 ) + ⋯ + ( n 2 + n − 1 ) ⏟ n 3 = 1 ⏟ 1 2 + 3 ⏟ 2 2 + 5 ⏟ 3 2 + ⋯ + ( n 2 + n − 1 ) ⏟ ( n 2 + n 2 ) 2 = ( 1 + 2 + ⋯ + n ) 2 = ( ∑ k = 1 n k ) 2 . {\displaystyle {\begin{aligned}\sum _{k=1}^{n}k^{3}&=1+8+27+64+\cdots +n^{3}\\&=\underbrace {1} _{1^{3}}+\underbrace {3+5} _{2^{3}}+\underbrace {7+9+11} _{3^{3}}+\underbrace {13+15+17+19} _{4^{3}}+\cdots +\underbrace {\left(n^{2}-n+1\right)+\cdots +\left(n^{2}+n-1\right)} _{n^{3}}\\&=\underbrace {\underbrace {\underbrace {\underbrace {1} _{1^{2}}+3} _{2^{2}}+5} _{3^{2}}+\cdots +\left(n^{2}+n-1\right)} _{\left({\frac {n^{2}+n}{2}}\right)^{2}}\\&=(1+2+\cdots +n)^{2}\\&=\left(\sum _{k=1}^{n}k\right)^{2}.\end{aligned}}}

Row (1893) obtains another proof by summing the numbers in a square multiplication table in two different ways. The sum of the ith row is i times a triangular number, from which it follows that the sum of all the rows is the square of a triangular number. Alternatively, one can decompose the table into a sequence of nested gnomons, each consisting of the products in which the larger of the two terms is some fixed value. The sum within each gmonon is a cube, so the sum of the whole table is a sum of cubes.6

In the more recent mathematical literature, Edmonds (1957) provides a proof using summation by parts.7 Stein (1971) uses the rectangle-counting interpretation of these numbers to form a geometric proof of the identity.8 Stein observes that it may also be proved easily (but uninformatively) by induction, and states that Toeplitz (1963) provides "an interesting old Arabic proof".9 Kanim (2004) provides a purely visual proof,10 Benjamin & Orrison (2002) provide two additional proofs,11 and Nelsen (1993) gives seven geometric proofs.12

Generalizations

A similar result to Nicomachus's theorem holds for all power sums, namely that odd power sums (sums of odd powers) are a polynomial in triangular numbers. These are called Faulhaber polynomials, of which the sum of cubes is the simplest and most elegant example. However, in no other case is one power sum a square of another.13

Stroeker (1995) studies more general conditions under which the sum of a consecutive sequence of cubes forms a square.14 Garrett & Hummel (2004) and Warnaar (2004) study polynomial analogues of the square triangular number formula, in which series of polynomials add to the square of another polynomial.15

Notes

References

  1. Stroeker (1995). - Stroeker, R. J. (1995), "On the sum of consecutive cubes being a perfect square", Compositio Mathematica, 97 (1–2): 295–307, MR 1355130 http://www.numdam.org/item?id=CM_1995__97_1-2_295_0

  2. Pengelley (2002). - Pengelley, David (2002), "The bridge between continuous and discrete via original sources", Study the Masters: The Abel-Fauvel Conference (PDF), National Center for Mathematics Education, Univ. of Gothenburg, Sweden http://www.math.nmsu.edu/~davidp/bridge.pdf

  3. Bressoud (2004). - Bressoud, David (2004), Calculus before Newton and Leibniz, Part III (PDF), AP Central http://www.macalester.edu/~bressoud/pub/CBN3.pdf

  4. Stein (1971). - Stein, Robert G. (1971), "A combinatorial proof that ∑ k 3 = ( ∑ k ) 2 {\displaystyle \textstyle \sum k^{3}=(\sum k)^{2}} ", Mathematics Magazine, 44 (3): 161–162, doi:10.2307/2688231, JSTOR 2688231 https://doi.org/10.2307%2F2688231

  5. Wheatstone (1854). - Wheatstone, C. (1854), "On the formation of powers from arithmetical progressions", Proceedings of the Royal Society of London, 7: 145–151, Bibcode:1854RSPS....7..145W, doi:10.1098/rspl.1854.0036 https://zenodo.org/record/1432033

  6. Row (1893). - Row, T. Sundara (1893), Geometric Exercises in Paper Folding, Madras: Addison, pp. 47–48 https://archive.org/details/geometricexerci00raogoog/page/n61/mode/2up

  7. Edmonds (1957). - Edmonds, Sheila M. (1957), "Sums of powers of the natural numbers", The Mathematical Gazette, 41 (337): 187–188, doi:10.2307/3609189, JSTOR 3609189, MR 0096615, S2CID 126165678 https://doi.org/10.2307%2F3609189

  8. Stein (1971); see also Benjamin, Quinn & Wurtz 2006 - Stein, Robert G. (1971), "A combinatorial proof that ∑ k 3 = ( ∑ k ) 2 {\displaystyle \textstyle \sum k^{3}=(\sum k)^{2}} ", Mathematics Magazine, 44 (3): 161–162, doi:10.2307/2688231, JSTOR 2688231 https://doi.org/10.2307%2F2688231

  9. Stein (1971). - Stein, Robert G. (1971), "A combinatorial proof that ∑ k 3 = ( ∑ k ) 2 {\displaystyle \textstyle \sum k^{3}=(\sum k)^{2}} ", Mathematics Magazine, 44 (3): 161–162, doi:10.2307/2688231, JSTOR 2688231 https://doi.org/10.2307%2F2688231

  10. Kanim (2004). - Kanim, Katherine (2004), "Proofs without words: The sum of cubes—An extension of Archimedes' sum of squares", Mathematics Magazine, 77 (4): 298–299, doi:10.2307/3219288, JSTOR 3219288 https://doi.org/10.2307%2F3219288

  11. Benjamin & Orrison (2002). - Benjamin, Arthur T.; Orrison, M. E. (2002), "Two quick combinatorial proofs of ∑ k 3 = ( n + 1 2 ) 2 {\displaystyle \textstyle \sum k^{3}={n+1 \choose 2}^{2}} " (PDF), College Mathematics Journal, 33 (5): 406–408, doi:10.2307/1559017, JSTOR 1559017 http://www.math.hmc.edu/~orrison/research/papers/two_quick.pdf

  12. Nelsen (1993). - Nelsen, Roger B. (1993), Proofs without Words, Cambridge University Press, ISBN 978-0-88385-700-7

  13. Edmonds (1957). - Edmonds, Sheila M. (1957), "Sums of powers of the natural numbers", The Mathematical Gazette, 41 (337): 187–188, doi:10.2307/3609189, JSTOR 3609189, MR 0096615, S2CID 126165678 https://doi.org/10.2307%2F3609189

  14. Stroeker (1995). - Stroeker, R. J. (1995), "On the sum of consecutive cubes being a perfect square", Compositio Mathematica, 97 (1–2): 295–307, MR 1355130 http://www.numdam.org/item?id=CM_1995__97_1-2_295_0

  15. Garrett & Hummel (2004); Warnaar (2004) - Garrett, Kristina C.; Hummel, Kristen (2004), "A combinatorial proof of the sum of q-cubes", Electronic Journal of Combinatorics, 11 (1), Research Paper 9, doi:10.37236/1762, MR 2034423 http://www.combinatorics.org/Volume_11/Abstracts/v11i1r9.html