There is a legendary story in mathematics involving G.H. Hardy and the self-taught Indian genius Srinivasa Ramanujan. Hardy was visiting Ramanujan in a hospital in Putney. Looking for conversation, Hardy mentioned that he had arrived in taxi cab number 1729.

Hardy remarked that the number seemed “rather a dull one” and hoped it wasn’t an unfavorable omen.

Ramanujan’s response was immediate: “No, it is a very interesting number; it is the smallest number expressible as the sum of two cubes in two different ways.”[1]

The Math Behind the Myth

To understand why Ramanujan’s brain worked differently than yours or mine, we have to look at the arithmetic. Most numbers can’t be expressed as the sum of two positive cubes at all. Those that can usually only have one unique pair.

1729 is the first instance where this “uniqueness” breaks.[2] It can be decomposed into:

1729=13+1231729 = 1^3 + 12^3

1729=93+1031729 = 9^3 + 10^3

If we verify the arithmetic:

Taxicab Numbers: Ta(n)Ta(n)

This observation gave birth to a whole class of integers known as Taxicab Numbers. In formal notation, we define Ta(n)Ta(n) as the smallest integer that can be expressed as a sum of two positive algebraic cubes in nn distinct ways.

Under this definition:

As nn increases, the numbers grow at an astronomical rate, making them a favorite challenge for computer scientists and distributed computing projects. For instance, the search for Ta(3)Ta(3) leads us to a much larger neighborhood[3]:

Ta(3)=87,539,319Ta(3) = 87,539,319

Which can be written as:

1673+4363=2283+4233=2553+4143167^3 + 436^3 = 228^3 + 423^3 = 255^3 + 414^3

Why This Matters

Beyond being a fun trivia fact for math competitions, taxicab numbers touch on Fermat’s Last Theorem. While Fermat famously proved that:

xn+yn=znx^n + y^n = z^n

…has no integer solutions for n>2n > 2, the Taxicab numbers explore the “near misses” and the properties of Diophantine equations where the result doesn’t have to be a perfect cube itself (kk).[4]

x3+y3=kx^3 + y^3 = k

The Lesson of 1729

For the prospective entrepreneur or the student of innovation, 1729 is a reminder that “dullness” is usually just a lack of perspective. To Hardy, it was a random number on a car door. To Ramanujan, it was a intersection of two deep mathematical paths.

Next time you’re looking at a “boring” dataset or a “standard” system configuration, ask yourself: am I seeing the whole picture, or am I just missing the cubes?

References


  1. Hardy, G. H. (1940). Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Works. Cambridge University Press. This is the primary source for the Putney hospital anecdote. ↩︎

  2. Silverman, J. H. (1993). Taxicabs and Sums of Two Cubes. The American Mathematical Monthly. Detailed exploration of the modular forms related to taxicab numbers. ↩︎

  3. OEIS Foundation Inc. (2026). The On-Line Encyclopedia of Integer Sequences. Sequence A001235 (Taxicab numbers). The discovery of Ta(3)Ta(3) is attributed to John Leech in 1957. ↩︎

  4. Weisstein, Eric W. “Taxicab Number.” From MathWorld–A Wolfram Web Resource. https://mathworld.wolfram.com/TaxicabNumber.html ↩︎