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
Richard Walker

Do You Know What a Congruum is? I Didn't.

Visible to anyone in the world
Edited by Richard Walker, Thursday 10 September 2026 at 23:45

Can there be four square numbers in arithmetic progression? Can four numbers that are perfect powers be in arithmetic progression?

The simple answers are no and yes!

First I'll sketch the history of the first question, which developed from a problem studies by Islamic mathematicians more than a thousand years ago.

Then I'll outline how we know the answer to the second question and give an a examplle.

A little background: An arithmetic progression (AP) is when a series of numbers go up (or down) in equal steps, and this size of this step is called the common difference. For example 1, 4, 7, 10 are four numbers in AP, with common difference 3. 

The congruum problem asks for triplets of square numbers that are in arithmetic progression, for example 1, 25, 49, whose common difference 24 is called the congruum.

Finding congruums (or congrua)? attracted the interest of medieval and later mathematicians, with several mathematical superstars getting in on the act.

According to Wikipedia the problem was first investigated in the 10th century, by Abu Jafar al-Khazin, who gave example such as the one above and found a general solution.

Things really hotted up in 1225 though, because the Holy Roman Emperor at that time organised a mathematical tournament. Can you imagine such a thing nowadays? 

The prize was carried off by one Leonardo of Pisa, better known as Fibonacci, who wrote about the eponymous series 1, 1, 2, 3, 5, 8, ..., and about the Indo-Arabic numerals which replaced Roman numerals and to become the system used today.

Next on the stage is Fermat, lawyer and amateur mathematician who made a claim that got called Fermat's Last Theorem even though it wasn't really a theorem because at the time he never actually proved it (as far as we know). He also made a conjecture about squares in AP — that it is impossible to find a congruum that works for four squares, not just three. Could there be numbers x squared comma y squared comma z squared comma w squared that were in AP?

This challenge was taken up by Euler, another giant famous for many things, including introducing the symbol e for the base of natural logarithm. He published a proof but by that time he had low vision and had a helper to tale his dictation, so some writers are not sure the published version is accurate.

Since that time there have been many proofs published but in the literature there are also authors who have commented flaws in earlier papers, and there is active research right up to the present day. 

Now for the second problem. Can four numbers that are perfect powers be in arithmetic progression?

Absolutely. Start with one comma 25 comma 49 if you like. The common difference is 24 , so the next term would be 49 plus 24 equals 73 . But, you will say, 73 is not a perfect power. No, but 73 multiplication 73 squared equals seven cubed is. So scale everything up by 73 squared . 

Now we get the four terms one multiplication 73 squared comma 25 multiplication 73 squared comma 49 multiplication 73 squared comma 73 cubed

We can use Python as a sort of super-calculator

1*73**2, 25*73**2, 49*73**2, 73**3
(5329, 133225, 261121, 389017)
133225 - 5329, 261121 - 133225,389017 - 261121
(127896, 127896, 127896)

and sure enough we have our AP.

Surprisingly we could in principle carry this as far as we like and get a million or a gazillion perfect powers in AP, although as you see the numbers grow dizzyingly fast; we have gone from 24 to 127896 in one step. So I imagine we would soon run out of resources and get to numbers too big to actually write dowm!

Permalink
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: 7156891