OU blog

Personal Blogs

Richard Walker

1,000 Consecutive Numbers Whose Cubes Add up to Another Perfect Cube

Visible to anyone in the world
Edited by Richard Walker, Monday 30 November 2026 at 00:27

Euler noted in 1770 that

3 cubed plus 4 cubed plus 5 cubed equals 6 cubed

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

11 cubed plus 12 cubed plus 13 cubed plus 14 cubed equals 20 cubed
15 cubed plus 16 cubed plus midline horizontal ellipsis plus 34 cubed equals 70 cubed
 6 cubed plus 7 cubed plus midline horizontal ellipsis plus 30 cubed equals 60 cubed.
 
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]

sketch%20%283%29.png
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
left parenthesis negative 499 right parenthesis cubed plus left parenthesis negative 498 right parenthesis cubed midline horizontal ellipsis plus 499 plus 500 cubed equals 500 cubed, but he also found
1134 cubed plus 1135 cubed plus midline horizontal ellipsis plus 2133 cubed equals 16830 cubed, 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.
Permalink Add your comment
Share post

This blog might contain posts that are only visible to logged-in users, or where only logged-in users can comment. If you have an account on the system, please log in for full access.

Total visits to this blog: 7156894