There’s a famous, and famously tedious, story about the number 1729 and how it became known as a taxicab number. You can look it up if you’re that interested.

What’s interesting to me is the numbers themselves: numbers that are the sum of two cubes in two (or more) different ways:

  • 1729=103+93
  • 1729=123+13

You might recall that the sum of two cubes factorises: a3+b3=(a+b)(a2ab+b2), which means that 1729 has two ‘obvious’ factors – 19 and 13. It also has a third factor, 7, and my question is is there a simple way to find that?

This is a question to which I don’t know the answer, but which has led me down an interesting path.

Recalling that a2+b2 factors over the Gaussian integers as (a+bi)(abi), I wondered if there was a similar thing for taxicab numbers and of course there is: a3+b3=(a+b)(a+bω)(a+bω), where ω=1+i32, one of the complex cube roots of 1. Numbers in this form, the field Z[i3] if you prefer, are called the Eisenstein integers.

A few handy observations:

  • ω=ω2
  • ω+ω=1
  • ωω=1.

The upshot of the second of those is that Eisenstein integers can all be written in a unique way as p+qω.

This means that 1729 readily factorises in four different ways:

  • (10+9)(10+9ω)(10+9ω)
  • (9+10)(9+10ω)(9+10ω)
  • (12+1)(12+ω)(12+ω)
  • (1+12)(1+12ω)(1+12ω)

Or, if we write the final factor of each in the conventional form:

  • (10+9)(10+9ω)(19ω)
  • (9+10)(9+10ω)(110ω)
  • (12+1)(12+ω)(11ω)
  • (1+12)(1+12ω)(1112ω)

And these final factors are especially interesting – applying the original logic in reverse, (for example) 19ω is a factor of 1393, or -728.

Similarly, the final factors are also factors of -1001, 1330 and -3059 – all of which are also multiples of 7.

However, I’ve not (yet) been able to come up with a simple method for pulling out the factor of 7 that’s any neater than just “divide 1729 by 19 and 13, and see what’s left over”. I thought it would be a good idea to share my work so far and see if any of my dear readers have an insight to share.