Taxicab Number — Definition, Formula & Examples
A taxicab number, denoted , is the smallest positive integer that can be expressed as the sum of two positive cubes in different ways. The most famous example is , which equals both and .
The -th taxicab number is defined as the least positive integer that can be represented as the sum of two positive cubes in at least distinct ways, where representations differing only in the order of the summands are not counted as different.
Key Formula
Where:
- = The n-th taxicab number
- = A positive integer to test
- = Positive integers forming each cube-sum pair
How It Works
To verify a taxicab number, you search for all ways to write it as with . The name comes from a famous anecdote: the mathematician G. H. Hardy visited Ramanujan in the hospital and mentioned arriving in taxi number 1729, calling it a dull number. Ramanujan immediately replied that 1729 is actually quite interesting — it is the smallest number expressible as the sum of two cubes in two different ways. Finding higher taxicab numbers requires extensive computation; was not discovered until 1957.
Worked Example
Problem: Verify that 1729 is the smallest number that can be written as the sum of two positive cubes in two different ways.
Find the first representation: Compute cubes: and .
Find the second representation: Compute cubes: and .
Confirm it is the smallest: No positive integer less than 1729 has two distinct representations as a sum of two positive cubes. This can be verified by checking all pairs with and .
Answer: , confirmed.
Why It Matters
Taxicab numbers sit at the crossroads of number theory and computational mathematics. They appear in discussions of Diophantine equations — equations seeking integer solutions — which are central to both pure math research and modern cryptography. The story of Ramanujan and 1729 is also one of the most celebrated anecdotes in mathematics, illustrating how deep pattern recognition can reveal hidden structure in seemingly ordinary numbers.
Common Mistakes
Mistake: Including representations with zero, such as .
Correction: The standard definition of taxicab numbers requires both cubes to come from positive integers (not zero). Using would trivially give extra representations.
