
In number theory, the sum of the first cubes is the square of the th triangular number. That is,
13+23+33+ … +n3=\left(1+2+3+ … +n\right)2.
| n | |
| \sum | |
| k=1 |
k3=
| n | |
| \left(\sum | |
| k=1 |
k\right)2.
This identity is sometimes called Nicomachus's theorem, after Nicomachus of Gerasa (–).
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
\tfrac{n(n+1)}{2}
n(n+1)-1
\tfrac{n(n+1)}{2}
\tfrac{n(n+1)}{2}
\left(\tfrac{n(n+1)}{2}\right)2
Many early mathematicians have studied and provided proofs of Nicomachus's theorem. claims that "every student of number theory surely must have marveled at this miraculous fact". finds references to the identity not only in the works of Nicomachus in what is now Jordan in the first century CE, but also in those of Aryabhata in India in the 5th century, and in those of Al-Karaji in Persia. mentions several additional early mathematical works on this formula, by Al-Qabisi (10th century Arabia), Gersonides (France), and Nilakantha Somayaji (India); he reproduces Nilakantha's visual proof.
The sequence of squared triangular numbers isThese numbers can be viewed as figurate numbers, a four-dimensional hyperpyramidal generalization of the triangular numbers and square pyramidal numbers.
As observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in an
n x n
4 x 4
The identity also admits a natural probabilistic interpretation as follows. Let
X,Y,Z,W
n
W
Y
X
W
Z
W
X
Y
Z
W
1\leX,Y,Z\len
W
X,Y,Z,W
W
(X,Y)
X\leY
(Z,W)
Z\leW
Tn
n3
13
(n-1)3
obtains another proof by summing the numbers in a square multiplication table in two different ways. The sum of the th row is 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 gnomon is a cube, so the sum of the whole table is a sum of cubes.
In the more recent mathematical literature, provides a proof using summation by parts. uses the rectangle-counting interpretation of these numbers to form a geometric proof of the identity.[1] Stein observes that it may also be proved easily (but uninformatively) by induction, and states that provides "an interesting old Arabic proof". provides a purely visual proof, provide two additional proofs, and gives seven geometric proofs.
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.
studies more general conditions under which the sum of a consecutive sequence of cubes forms a square. and study polynomial analogues of the square triangular number formula, in which series of polynomials add to the square of another polynomial.