Squared triangular number

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

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

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