About six months ago I wrote about the recent discovery that 33 can be written as the sum of three cubes. At that time, the only remaining number less than 100 whose status was still unknown was 42. And just recently that, too, has fallen: thanks to Andrew Booker and Andrew Sutherland, we now know that

Again, this was very difficult to *find* (it required 1.3 *million* hours of computer time!) but very easy to verify: you can plug the above numbers into a computer yourself and see that you get 42. In fact, I’ve set up some links here so you can try it yourself using either Wolfram Alpha or Python. (Sadly, most graphing calculators don’t have enough precision to represent these numbers exactly. But seriously, click one of the links above and try it out!)

I still don’t understand the math behind the algorithm Booker and Sutherland used (I tried reading the paper but quickly got lost, and my sense is that I would probably have to spend at least several months doing background reading to be able to understand it). But this time around I’ve been learning more about the sums of three cubes problem itself. Today I’ll write a bit about which numbers actually have a hope of being written as a sum of three cubes, and in a future post I plan to write about numbers that have *multiple* representations as sums of cubes.

For the rest of this post I’m going to use the word *tricubic* to refer to numbers which can be written as a sum of three cubes. So, for example, we now know that is tricubic. I’ll also say *tricubic sum* to refer to three cubes that add up to a given number, for example, “ is a tricubic sum for ”.

## Which numbers are tricubic?

Some numbers definitely *aren’t* tricubic: for example, 13. How did I know that? The key is to look at the remainders of cubes :

Notice that in the above table we only ever get remainders of , , or . And since every integer is equivalent, , to one of the numbers from through , this table actually tells us everything we need to know: *every* integer cube will be either a multiple of 9, one more than a multiple of 9, or one less. By adding up three remainders which are all , , or , you can get any remainder between and , inclusive. But that leaves out exactly two remainders you can’t get: and . That’s how I knew 13 is not tricubic: is four more than a multiple of .

OK, so now we know that any number either 4 or 5 more than a multiple of 9 is not tricubic. What about other numbers? Maybe if we look at remainders modulo some other divisor, say, , we can rule out other numbers in a similar way? Actually, no! So far it seems like this simple restriction is the *only* restriction on tricubic numbers: the conjecture is that every number not of the form is tricubic—but right now this is only a conjecture; no one has yet managed to prove it!

So, in general, numbers fall into three groups:

- Numbers of the form or which we
*know*are*not*tricubic: . - Numbers which we know
*are*tricubic, because we know of at least one tricubic sum for them: . - Numbers which we
*think*are*probably*tricubic, but we currently don’t actually know:

## Where do we go from here?

Progress on this problem could theoretically come in a lot of different ways.

First, someone could prove that there are additional numbers which are *not* tricubic. But as far as I can tell, everyone thinks this is pretty unlikely.

Someone could find a way to write some additional numbers as sums of three cubes. For example, the smallest number whose tricubic status we don’t currently know is ; someone might find a way to write as a sum of three cubes. However, the amount of computer time necessary to search for these may get prohibitively large: as I mentioned earlier, finding a tricubic sum for required 1.3 million hours of computer time. Note, however, that finding and was possible specifically because Andrew Booker came up with a better algorithm than what had been used before. So perhaps someone will come up with an even better algorithm that makes it feasible to search for larger tricubic sums. At some point, however, people will lose interest: finding bigger and bigger tricubic sums just gets boring after a while.

Someone could prove that every number not of the form is tricubic by finding an *algorithm* which takes a number as input, and spits out a tricubic sum for . But wait, you ask, don’t we already have that? Weren’t and found using an algorithm? Well, yes, but the search algorithm used to find tricubic sums for and was not *guaranteed* to find anything. You give it an upper limit for the size of the cubes involved, and it will search everything below that, but there is no guarantee that it will find what it is looking for. You could easily modify the program to run as follows: given a number for which we wish to find a tricubic sum, start by searching for tricubic sums under a certain upper bound; if nothing is found, increase the upper bound and try again. If nothing is found the second time, increase the upper bound yet again, and so on. This is called a *semi-decision procedure*: if a tricubic sum exists for , this program will eventually find it, but if no tricubic sum exists then it will simply run forever (in theory, that is; of course any real computer would run out of memory long before that). So this doesn’t count as a proof because it doesn’t guarantee to find a tricubic sum for every number. An algorithmic proof would consist of an algorithm to find a tricubic sum for any suitable input number, *along with* a proof that the program will always return a tricubic sum in a finite amount of time for any input.

I don’t actually find the above scenario very likely (though a dramatic example of this kind is the recent proof that every positive integer is a sum of three palindromes). I find it more likely that someone will prove that every number not of the form is tricubic, but in a way that is *non-effective*. That is, we would know that every suitable number *must be* tricubic, but the proof would not actually give us a way to *find* a tricubic sum for any given . (There is a very interesting distinction here between *classical* and *constructive* mathematics; maybe I’ll write more on this in a future post!)