A famous story. G. H. Hardy visited Srinivasa Ramanujan in hospital and said his taxi number, 1729, seemed rather dull. Ramanujan replied at once that it is very interesting: it is the smallest number that is a sum of two cubes in two different ways:
1729 = 1³ + 12³ = 9³ + 10³
1729 is called the Hardy–Ramanujan number, and numbers like it are taxicab numbers. The next two are 4104 and 13832. Try it: find their two ways.
Cubes from odd numbers: group the odd numbers 1, 2, 3, … at a time:
1 = 1³ 3 + 5 = 8 = 2³ 7 + 9 + 11 = 27 = 3³ 13 + 15 + 17 + 19 = 64 = 4³ 21 + 23 + 25 + 27 + 29 = 125 = 5³
So the 10 odd numbers from 91 to 109 add to 10³ = 1000, no adding needed.
Successive differences: for squares, the differences of differences are all 2 after two levels. For cubes (1, 8, 27, 64, 125, 216) they become all 6 after three levels (see the picture).
Tap the diagram to enlarge it
- 1729 = 1³ + 12³ = 9³ + 10³
- Row n of odd numbers adds to n³
- Cube differences settle at level 3