Squared triangular number: Difference between revisions

From testwiki
Jump to navigation Jump to search
Numeric values; geometric and probabilistic interpretation: Cite the OEIS in a more explicite manner
 
(No difference)

Latest revision as of 20:23, 16 February 2025

Template:Short description Template:For

A square whose side length is a triangular number can be partitioned into squares and half-squares whose areas add to cubes. From Template:Harvtxt. The Template:Mvarth coloured region shows Template:Mvar squares of dimension Template:Mvar by Template:Mvar (the rectangle is 1 evenly divided square), hence the area of the Template:Mvarth region is Template:Mvar times Template:Math.

In number theory, the sum of the first Template:Mvar cubes is the square of the Template:Mvarth triangular number. That is,

13+23+33++n3=(1+2+3++n)2.

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

k=1nk3=(k=1nk)2.

This identity is sometimes called Nicomachus's theorem, after Nicomachus of Gerasa (Template:CircaTemplate:Circa).

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 cubes equals the sum of the first n(n+1)2 odd numbers, that is, the odd numbers from 1 to n(n+1)1. The average of these numbers is obviously n(n+1)2, and there are n(n+1)2 of them, so their sum is (n(n+1)2)2.

Many early mathematicians have studied and provided proofs of Nicomachus's theorem. Template:Harvtxt claims that "every student of number theory surely must have marveled at this miraculous fact".Template:Sfnp Template:Harvtxt 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 Template:Circa in Persia.Template:Sfnp Template:Harvtxt mentions several additional early mathematical works on this formula, by Al-Qabisi (10th century Arabia), Gersonides (Template:Circa, France), and Nilakantha Somayaji (Template:Circa, India); he reproduces Nilakantha's visual proof.Template:Sfnp

Numeric values; geometric and probabilistic interpretation

[[File:grid_rectangle_count_puzzle.svg|thumb|upright=1.2|All 36 (Template:Nowrap = Template:Nowrap) rectangles, including [[square_pyramidal_number#Geometric_enumeration|14 (Template:Nowrap) squares]] (red), in a 3 × 3 square Template:Nowrap]] The sequence of squared triangular numbers is Template:Block indent These numbers can be viewed as figurate numbers, a four-dimensional hyperpyramidal generalization of the triangular numbers and square pyramidal numbers.

As Template:Harvtxt 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 (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.Template:Sfnp

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 is the largest of the four numbers equals the probability that Y is at least as large as X and that W is at least as large as Z. That is, Pr[max(X,Y,Z)W]=Pr[XYZW]. For any particular value of W, the combinations of X, Y, and Z that make W largest form a cube 1X,Y,Zn so (adding the size of this cube over all choices of W}) the number of combinations of X,Y,Z,W for which W is largest is a sum of cubes, the left hand side of the Nichomachus identity. The sets of pairs (X,Y) with XY and of pairs (Z,W) with ZW 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 Template:NowrapTemplate:Citation needed

Proofs

Template:Harvs 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 n3=(n2n+1)+(n2n+1+2)+(n2n+1+4)++(n2+n1)n consecutive odd numbers. That identity is related to triangular numbers Tn in the following way: n3=k=Tn1+1Tn(2k1), and thus the summands forming n3 start off just after those forming all previous values 13 up to (n1)3. Applying this property, along with another well-known identity: n2=k=1n(2k1), produces the following derivation:Template:Sfnp k=1nk3=1+8+27+64++n3=113+3+523+7+9+1133+13+15+17+1943++(n2n+1)++(n2+n1)n3=112+322+532++(n2+n1)(n2+n2)2=(1+2++n)2=(k=1nk)2.

Template:Harvtxt obtains another proof by summing the numbers in a square multiplication table in two different ways. The sum of the Template:Mvarth row is Template:Mvar 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.Template:Sfnp

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

In the more recent mathematical literature, Template:Harvtxt provides a proof using summation by parts.Template:Sfnp Template:Harvtxt 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 Template:Harvtxt provides "an interesting old Arabic proof".Template:Sfnp Template:Harvtxt provides a purely visual proof,Template:Sfnp Template:Harvtxt provide two additional proofs,Template:Sfnp and Template:Harvtxt gives seven geometric proofs.Template:Sfnp

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.Template:Sfnp

Template:Harvtxt studies more general conditions under which the sum of a consecutive sequence of cubes forms a square.Template:Sfnp Template:Harvtxt and Template:Harvtxt study polynomial analogues of the square triangular number formula, in which series of polynomials add to the square of another polynomial.[2]

Notes

Template:Reflist

References

Template:Refbegin

Template:Refend

Template:Figurate numbers Template:Classes of natural numbers