homehome Home chatchat Notifications


Solved for 42: long-lasting math problem finally gets its answer

42 may or may not be the answer to everything -- but it's definitely a solution for this math problem.

Mihai Andrei
September 13, 2019 @ 5:31 pm

share Share

Here’s a problem which sounds simple enough, but isn’t: find three numbers so that the sum of their cubes is equal to 42. A planetary scientist just solved the problem, and the numbers will definitely surprise you.

The original problem was laid out in 1954 at the University of Cambridge, and was very straightforward: find the solutions for x3+y3+z3=k, with k being all the numbers from one to 100. Some of them are pretty obvious. Just take 1, 2, and 3, sum their cubes, and you end up with 1+8+27=36 — so you have an answer to 36. You can be a bit clever and use -1 instead of 1, which leaves you with -1+8+27=34, and you have another solution. After you take out all these easy solutions, you’re left with some weird ones though.

There should be a solution for all numbers, but two proved particularly different to crack: 33 and 42. Thanks to a creative approach (and a week at a world-leading supercomputer), Professor Andrew Booker managed to solve it for 33. Coincidence or not, the only remaining number was 42 — which fans of the Hitchhiker’s Guide to the Galaxy will recognize as “the answer to Everything”, according to a fictional computing machine that worked for 7 million years.

Booker tried to solve the equation for 42, but couldn’t — so he turned to MIT maths professor Andrew Sutherland. Together, the two used a machine that’s surprisingly similar to the fictional one described above. The platform is called Charity Engine: a ‘worldwide computer’ that harnesses idle, unused computing power from over 500,000 home PCs to create a crowd-sourced, super-green platform made entirely from otherwise wasted capacity. It didn’t take 7 million years, but it did take quite a long time. Yet, at the end of it all, the two had their answer.

Are you ready?

The three numbers for which the sum of their cubes is equal to 42 are:

  • X = -80538738812075974
  • Y = 80435758145817515
  • Z = 12602123297335631

These three incredibly large numbers are the solution to the problem — trust us, we did the math.

We checked.

But while doing the math is easy if you have a big calculator, it’s not easy to reach these numbers in the first place. These 17-digit monsters are so big that brute-forcing calculations just won’t work. Instead, researchers used clever algorithms to help finesse the search. But there was no guarantee if or when they would find the solution. Booker, who is based at the University of Bristol’s School of Mathematics, says he’s glad the search is finally over:

“I feel relieved. In this game it’s impossible to be sure that you’ll find something. It’s a bit like trying to predict earthquakes, in that we have only rough probabilities to go by. So, we might find what we’re looking for with a few months of searching, or it might be that the solution isn’t found for another century.”

With ingenuity and sufficient computing power, you can solve almost any problem. Who knows, one day we might even learn the answer to Everthing — and it might be 42.

share Share

New Nanoparticle Vaccine Clears Pancreatic Cancer in Over Half of Preclinical Models

The pancreatic cancer vaccine seems to work so well it's even surprising its creators

Coffee Could Help You Live Longer — But Only If You Have it Black

Drinking plain coffee may reduce the risk of death — unless you sweeten it.

Scientists Turn Timber Into SuperWood: 50% Stronger Than Steel and 90% More Environmentally Friendly

This isn’t your average timber.

A Provocative Theory by NASA Scientists Asks: What If We Weren't the First Advanced Civilization on Earth?

The Silurian Hypothesis asks whether signs of truly ancient past civilizations would even be recognisable today.

Scientists Created an STD Fungus That Kills Malaria-Carrying Mosquitoes After Sex

Researchers engineer a fungus that kills mosquitoes during mating, halting malaria in its tracks

From peasant fodder to posh fare: how snails and oysters became luxury foods

Oysters and escargot are recognised as luxury foods around the world – but they were once valued by the lower classes as cheap sources of protein.

Rare, black iceberg spotted off the coast of Labrador could be 100,000 years old

Not all icebergs are white.

We haven't been listening to female frog calls because the males just won't shut up

Only 1.4% of frog species have documented female calls — scientists are listening closer now

A Hawk in New Jersey Figured Out Traffic Signals and Used Them to Hunt

An urban raptor learns to hunt with help from traffic signals and a mental map.

A Team of Researchers Brought the World’s First Chatbot Back to Life After 60 Years

Long before Siri or ChatGPT, there was ELIZA: a simple yet revolutionary program from the 1960s.