# Squared triangular number

﻿
Squared triangular number
Visual demonstration that the square of a triangular number equals a sum of cubes.

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

$\sum_{i=1}^{n} i^3 = \Bigl(\sum_{i=1}^{n} i\Bigr)^2.$

This identity is sometimes called Nicomachus's theorem.

## History

Stroeker (1995), writing about Nicomachus's theorem, claims that "every student of number theory surely must have marveled at this miraculous fact". While Stroeker's statement may perhaps be a poetic exaggeration, it is true that many mathematicians have studied this equality and have proven it in many different ways. Pengelley (2002) finds references to the identity in several ancient mathematical texts: the works of Nicomachus in what is now Jordan in the first century CE, Aryabhata in India in the fifth century, and Al-Karaji circa 1000 in Persia. Bressoud (2004) mentions several additional early mathematical works on this formula, by Alchabitius (tenth century Arabia), Gersonides (circa 1300 France), and Nilakantha Somayaji (circa 1500 India); he reproduces Nilakantha's visual proof.

## 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 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 grid. For instance, the points of a 4×4 grid can form 36 different rectangles. The number of squares in a square grid is similarly counted by the square pyramidal numbers.

The identity also admits a natural probabilistic interpretation as follows. Let X,Y,Z,W be four integer numbers independently and uniformly chosen at random between 1 and n. Then, the probability that W be not less than any other is equal to the probability that both Y be not less than X and W be not less than Z, that is, $\scriptstyle \mathbb{P}\left(\{\max(X,Y,Z)\leq W\}\right)=\mathbb{P}\left(\{X\leq Y\} \cap \{Z\leq W\}\right).$ Indeed, these probabilities are respectively the left and right sides of the Nichomacus identity, normalized over n4.

## Proofs

Wheatstone (1854) gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers:

1 + 8 + 27 + 64 + 125 + ...
= (1) + (3 + 5) + (7 + 9 + 11) + (13 + 15 + 17 + 19) + (21 + 23 + 25 + 27 + 29) + ...
= 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19 + 21 + 23 + 25 + 27 + 29 ...

The sum of any set of consecutive odd numbers starting from 1 is a square, and the quantity that is squared is the count of odd numbers in the sum. The latter is easily seen to be a count of the form 1+2+3+4+...+n.

In the more recent mathematical literature, Stein (1971) uses the rectangle-counting interpretation of these numbers to form a geometric proof of the identity (see also Benjamin et al.); he observes that it may also be proved easily (but uninformatively) by induction, and states that Toeplitz (1963) provides "an interesting old Arabic proof". Kanim (2004) provides a purely visual proof, Benjamin and Orrison (2002) provide two additional proofs, and Nelsen (1993) gives seven geometric proofs.

## 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.

Stroeker (1995) studies more general conditions under which the sum of a consecutive sequence of cubes forms a square. Garrett and 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.

## References

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• number game — Introduction       any of various puzzles and games that involve aspects of mathematics.       Mathematical recreations comprise puzzles and games that vary from naive amusements to sophisticated problems, some of which have never been solved.… …   Universalium

• Square pyramidal number — In mathematics, a pyramid number, or square pyramidal number, is a figurate number that represents a pyramid with a base and four sides. These numbers can be expressed in a formula as:sum {k=1}^nk^2={n(n + 1)(2n + 1) over 6}={2n^3 + 3n^2 + n over …   Wikipedia

• 4 (number) — Four redirects here. For other uses, see 4 (disambiguation). 4 −1 0 1 2 3 4 5 6 7 8 9 → List of numbers Integers …   Wikipedia

• Square number — In mathematics, a square number, sometimes also called a perfect square, is an integer that can be written as the square of some other integer; in other words, it is the product of some integer with itself. So, for example, 9 is a square number,… …   Wikipedia

• 21 (number) — For other uses, see 21 (disambiguation). ← 20 22 → 21 ← 20 21 22 …   Wikipedia

• Chi-squared distribution — This article is about the mathematics of the chi squared distribution. For its uses in statistics, see chi squared test. For the music group, see Chi2 (band). Probability density function Cumulative distribution function …   Wikipedia

• Noncentral chi-squared distribution — Noncentral chi squared Probability density function Cumulative distribution function parameters …   Wikipedia

• List of mathematics articles (S) — NOTOC S S duality S matrix S plane S transform S unit S.O.S. Mathematics SA subgroup Saccheri quadrilateral Sacks spiral Sacred geometry Saddle node bifurcation Saddle point Saddle surface Sadleirian Professor of Pure Mathematics Safe prime Safe… …   Wikipedia

• Greek arithmetic, geometry and harmonics: Thales to Plato — Ian Mueller INTRODUCTION: PROCLUS’ HISTORY OF GEOMETRY In a famous passage in Book VII of the Republic starting at Socrates proposes to inquire about the studies (mathēmata) needed to train the young people who will become leaders of the ideal… …   History of philosophy

• Cube (algebra) — Third power redirects here. For the band, see Third Power. Cubed redirects here. For other uses, see cube (disambiguation). y=x³: for values of 0≤x≤25. In arithmetic and algebra, the cube of a number n is its third power the result of the number… …   Wikipedia