1,000 Consecutive Numbers Whose Cubes Add up to Another Perfect Cube
Sunday 29 November 2026 at 20:51
Visible to anyone in the world
Edited by Richard Walker, Monday 30 November 2026 at 00:27
Euler noted in 1770 that
and since then many people must have rediscovered this. Mathematician have generalisation in their DNA and it's natural to ask if there are other examples of consecutive cubes whose sum is also a cube. Some well known examples are
.
So are there infinitely many example? The answer is yes. Here's the story
In 1829 Camille Pagliani, an army cadet, responded
to a challenge problem (there is a long tradition of mathematicians putting out problems and challenging others to solve them). [1]
Take note of that mille; we are being asked for 1000 consecutive cubes, whose sum is itself a cube!
Pagliani came up with the (I assume tongue-in-cheek) solution
, but he also found
, and the method he developed generates an infinite family of solutions.
I checked the calculation in Python
cubes = [n**3 for n in range(1134, 2133 + 1)] len(cubes) 1000 sum(cubes) 4767078987000 import math math.cbrt(4767078987000) 16830.0
Hey Presto!
This and similar problems have remain a subject of interest and research right up to the present day. For a good recent survey see [2].
[1] C. Pagliani, Solution du problème d’analyse indéterminéeénoncéà la pag. 212 du présent volume, Annales de Mathématiques pures et appliquées 20 (1829-1830), 382–384.
[2] Bennett, M.A., Patel, V. and Siksek, S. (2017) 'Perfect powers that are sums of consecutive cubes', Mathematika, 63(1), pp. 230–249. doi:10.1112/S0025579316000231.
1,000 Consecutive Numbers Whose Cubes Add up to Another Perfect Cube
Euler noted in 1770 that
and since then many people must have rediscovered this. Mathematician have generalisation in their DNA and it's natural to ask if there are other examples of consecutive cubes whose sum is also a cube. Some well known examples are
to a challenge problem (there is a long tradition of mathematicians putting out problems and challenging others to solve them). [1]