The familiar identity
can be viewed as an equality between two consecutive runs of squares. Surprisingly, this is the first member of a simple infinite family.
Pythagorean runs
This classical family is known as Pythagorean runs. For every positive integer , consider
Thus the first consecutive squares have the same sum as the next consecutive squares.
There is exactly one positive value of for each :
To see this, move the right-hand side to the left and simplify. The difference factors as
Since , the factor cannot vanish. Therefore
So there is a Pythagorean run for every .
The first few are
and
This naturally raises another question:
What happens if squares are replaced by cubes?
Looking for cubic runs
The most direct analogue is to look for two runs of consecutive cubes having the same sum. In other words, this is the case , where the terms on the right also differ by 1.
A computer search found no nontrivial examples. This does not prove that none exist, but it suggests looking at the next possibility.
For , we compare consecutive cubes with later cubes whose indices differ by 2:
A computer search produced the remarkable example
Written out, this is
Both sides equal
Here
At first, such a large numerical identity looks like something that might have occurred by accident. But it is actually the beginning of a much deeper pattern.
A Pell equation appears
Introduce the centered variables
For the example above,
so
We therefore set
Substitution into the cubic-run equation and simplification lead to
This is a generalized Pell equation.
Our first cubic run corresponds to
since
The importance of the Pell equation is that one solution need not stand alone. Pell equations can generate further integer solutions, and in this case they produce infinitely many cubic runs.
Thus the huge identity found by computer search is not an isolated numerical curiosity. It belongs to an infinite Diophantine family.
The next cubic run
The next ordered solution is already enormous:
with
and
Therefore the next run can be written as
The final cube on the right has index
The enormous jump from to
helps explain why these identities are so difficult to discover by direct search.
The computer found the first example.
The Pell equation explains why there are infinitely many more.
Reference
Michael Boardman, “Proof Without Words: Pythagorean Runs,” Mathematics Magazine, Vol. 73, No. 1 (2000), p. 59.
See also the corresponding sequence and additional historical references in OEIS A059255.