This post is based on my own research on cubic runs, written up in a paper currently under review at The College Mathematics Journal.
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
Checking the sums confirms the pattern. Each run starts at :
| Pythagorean run | Each side equals | |
|---|---|---|
| 1 | 25 | |
| 2 | 365 | |
| 3 | 2,030 | |
| 4 | 7,230 |
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
Why Does This Produce Infinitely Many Cubic Runs?
The Pell equation provides a way to generate infinitely many solutions. However, we must also verify that these solutions produce positive integers in the required order.
The original variables can be recovered from
To generate further solutions, let
These integers satisfy
Starting with , define
Substitution shows that this recurrence preserves the Pell equation
Because u is odd and v is even, the recurrence preserves the property that z is odd and m is even. Therefore A and B remain integers.
All coefficients in the recurrence are positive, so the resulting sequences are positive and strictly increasing.
It remains to verify the ordering of the two runs. The Pell equation gives
Also,
Thus the two runs remain correctly ordered and do not overlap. Moreover, the same bound ensures that A and B are positive.
Consequently, every solution generated by the recurrence produces a valid ordered cubic run. Since the solutions are strictly increasing, this gives infinitely many distinct cubic runs.
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.
Explore More: Why Are 1, 2, 4, and 8 Special?
Pythagorean triples are closely connected to sums of two squares. But a remarkable mathematical discovery takes this idea much further: special multiplication identities exist for sums of 1, 2, 4, and 8 squares. Why exactly these four numbers?
Explore the answer in Why Are 1, 2, 4, and 8 Special? The Mathematics of Sums of Squares.
Pythagorean runs begin with the most famous right triangle. For more on where right triangles with whole-number sides come from, read How to Generate Infinitely Many Pythagorean Triples Using Complex Numbers and The Hidden Mathematics of Right Triangles: Sides, Area, and Perimeter.

Leave a Reply