A square whose side length is a triangular number can be partitioned into squares and half-squares whose areas add to cubes. FromGulley (2010). Thenth coloured region showsn squares of dimensionn byn (the rectangle is 1 evenly divided square), hence the area of thenth region isn timesn ×n.
Nicomachus, at the end of Chapter 20 of hisIntroduction 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 cubes equals the sum of the first odd numbers, that is, the odd numbers from 1 to. The average of these numbers is obviously, and there are of them, so their sum is.
AsStein (1971) observes, these numbers also count the number of rectangles with horizontal and vertical sides formed in angrid. For instance, the points of a 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 be four integer numbers independently and uniformly chosen at random between 1 and. Then, the probability that is the largest of the four numbers equals the probability that is at least as large as and that is at least as large as. That is, For any particular value of, the combinations of,, and that make largest form a cube so (adding the size of this cube over all choices of}) the number of combinations of for which is largest is a sum of cubes, the left hand side of the Nichomachus identity. The sets of pairs with and of pairs with form isosceles right triangles, and the set counted by the right hand side of the equation of probabilities is theCartesian 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 sidesby.[citation needed]
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 identityThat identity is related totriangular numbers in the following way:and thus the summands forming start off just after those forming all previous values up to. Applying this property, along with another well-known identity:produces the following derivation:[5]
Row (1893) obtains another proof by summing the numbers in a squaremultiplication table in two different ways. The sum of theith row isi 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 nestedgnomons, 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.[6]
Visual demonstration that the square of a triangular number equals a sum of cubes.
In the more recent mathematical literature,Edmonds (1957) provides a proof usingsummation 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 thatToeplitz (1963) provides "an interesting old Arabic proof".[4]Kanim (2004) provides a purely visual proof,[9]Benjamin & Orrison (2002) provide two additional proofs,[10] andNelsen (1993) gives seven geometric proofs.[11]
A similar result to Nicomachus's theorem holds for allpower sums, namely that odd power sums (sums of odd powers) are a polynomial in triangular numbers.These are calledFaulhaber 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.[7]
Stroeker (1995) studies more general conditions under which the sum of a consecutive sequence of cubes forms a square.[1]Garrett & Hummel (2004) andWarnaar (2004) study polynomial analogues of the square triangular number formula, in which series of polynomials add to the square of another polynomial.[12]
Nelsen, Roger B. (1993),Proofs without Words, Cambridge University Press,ISBN978-0-88385-700-7.
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.