13/07/2024
Mathematical breakthroughs often spring from the most unexpected places, sometimes even from a casual conversation between two brilliant minds. Such was the case with the number 1729, a seemingly ordinary integer that gained legendary status through a poignant encounter between the prodigious Indian mathematician Srinivasa Ramanujan and his British collaborator, G.H. Hardy. This number, now affectionately known as the 'Taxicab Number', stands as a testament to the profound beauty hidden within the seemingly mundane world of arithmetic.

The story unfolds during Ramanujan's final days in England. Plagued by illness, he was admitted to a hospital in Putney. Hardy, his mentor and friend, frequently visited him, typically arriving by taxi. On one such visit, in an attempt to spark a conversation – a task Hardy often found challenging – he remarked on the 'dullness' of his taxi's number. “I thought the number of my taxicab was 1729. It seemed to me rather a dull number,” Hardy recounted. Ramanujan, with his unparalleled numerical intuition, immediately corrected him, exclaiming, “No, Hardy! No, Hardy! It is a very interesting number. It is the smallest number expressible as the sum of two cubes in two different ways.” This spontaneous insight, delivered from his hospital bed, cemented 1729's place in the annals of number theory and highlighted Ramanujan’s extraordinary mind.
What Makes 1729 So Special? The Taxicab Number Defined
The core of 1729's intrigue lies in its unique property: it is the smallest positive integer that can be expressed as the sum of two positive integer cubes in two distinct ways. Specifically, the two ways are:
- 1729 = 1³ + 12³ (which is 1 + 1728)
- 1729 = 9³ + 10³ (which is 729 + 1000)
In honour of this famous conversation, numbers that share this property are called 'taxicab numbers'. More formally, the smallest number expressible as the sum of two cubes in 'n' different ways is denoted as Ta(n). Thus, 1729 is Ta(2), as it's the smallest number expressible as the sum of two cubes in two different ways. The search for other such numbers, particularly those expressible in more than two ways, has become a fascinating pursuit within mathematics.
Beyond Two Ways: Ramanujan Numbers and Higher Forms
While 1729 is the most famous example, it is merely the first in a family of numbers that can be expressed as the sum of two cubes in multiple ways. Mathematicians have continued to explore numbers expressible as the sum of two cubes in three, four, five, or even more distinct ways. These are sometimes referred to as 'Ramanujan Triples', 'Ramanujan Quadruples', and so on.
Ramanujan Numbers (Sum of Two Cubes in Two Ways)
Here are some of the initial Ramanujan Numbers, showcasing the pairs of cubes that sum to them:
| Number | First Sum (I³ + J³) | Second Sum (K³ + L³) |
|---|---|---|
| 1729 | 1³ + 12³ | 9³ + 10³ |
| 4104 | 2³ + 16³ | 9³ + 15³ |
| 13832 | 2³ + 24³ | 18³ + 20³ |
| 20683 | 10³ + 27³ | 19³ + 24³ |
| 32832 | 4³ + 32³ | 18³ + 30³ |
Notice that some numbers, like 13832 and 32832, are multiples of earlier solutions. For instance, 13832 is 8 times 1729, where each base is doubled (e.g., (2*1)³ + (2*12)³ = 2³(1³+12³)). This demonstrates a pattern in how these numbers can scale.
Ramanujan Triples (Sum of Two Cubes in Three Ways)
As the number of ways increases, the numbers themselves grow substantially. A Ramanujan Triple is a number that can be expressed as the sum of two cubes in three different ways:
| Number | First Sum | Second Sum | Third Sum |
|---|---|---|---|
| 87,539,319 | 228³ + 423³ | 167³ + 436³ | 255³ + 414³ |
| 119,824,488 | 11³ + 493³ | 90³ + 492³ | 346³ + 428³ |
| 143,604,279 | 111³ + 522³ | 408³ + 423³ | 359³ + 460³ |
| 175,959,000 | 70³ + 560³ | 198³ + 552³ | 315³ + 525³ |
| 327,763,000 | 339³ + 661³ | 300³ + 670³ | 510³ + 580³ |
Ramanujan Quadruples (Sum of Two Cubes in Four Ways)
Numbers that are the sum of two cubes in four different ways are even larger and rarer:
| Number | First Sum | Second Sum | Third Sum | Fourth Sum |
|---|---|---|---|---|
| 6,963,472,309,248 | 13322³ + 16630³ | 10200³ + 18072³ | 5436³ + 18948³ | 2421³ + 19083³ |
| 12,625,136,269,928 | 12939³ + 21869³ | 10362³ + 22580³ | 7068³ + 23066³ | 4275³ + 23237³ |
| 21,131,226,514,944 | 17176³ + 25232³ | 11772³ + 26916³ | 8664³ + 27360³ | 1539³ + 27645³ |
| 26,059,452,841,000 | 21930³ + 24940³ | 14577³ + 28423³ | 12900³ + 28810³ | 4170³ + 29620³ |
| 55,707,778,473,984 | 26644³ + 33260³ | 20400³ + 36144³ | 10872³ + 37896³ | 4842³ + 38166³ |
Ramanujan Quintuples (Sum of Two Cubes in Five Ways)
The magnitude of these numbers continues to grow, demonstrating the complexity of finding such solutions:
| Number | First Sum | Second Sum | Third Sum | Fourth Sum | Fifth Sum |
|---|---|---|---|---|---|
| 48,988,659,276,962,496 | 231518³ + 331954³ | 221424³ + 336588³ | 205292³ + 342952³ | 107839³ + 362753³ | 38787³ + 365757³ |
| 391,909,274,215,699,968 | 463036³ + 663908³ | 442848³ + 673176³ | 410584³ + 685904³ | 215678³ + 725506³ | 77574³ + 731514³ |
| 490,593,422,681,271,000 | 579240³ + 666630³ | 543145³ + 691295³ | 285120³ + 776070³ | 233775³ + 781785³ | 48369³ + 788631³ |
| 1,322,693,800,477,987,392 | 694554³ + 995862³ | 664272³ + 1009764³ | 615876³ + 1028856³ | 323517³ + 1088259³ | 116361³ + 1097271³ |
| 3,135,274,193,725,599,744 | 926072³ + 1327816³ | 885696³ + 1346352³ | 821168³ + 1371808³ | 431356³ + 1451012³ | 155148³ + 1463028³ |
The sheer scale of these numbers highlights the computational challenges involved in discovering them, often requiring extensive search algorithms and powerful computing resources.

Generalised Taxicab Numbers and Higher Powers
The concept of a taxicab number can be extended beyond just sums of two cubes. A generalised taxicab number, denoted as Ta(k, m, n), is the smallest number that can be expressed as a sum of 'm' k-th powers in 'n' different ways. For example, Ta(3, 2, 2) is 1729 (sum of 2 cubes in 2 ways). Another example provided is Ta(5, 2, 2) = 32, which would imply 32 = a⁵ + b⁵ = c⁵ + d⁵. However, the provided information does not detail the specific components for Ta(5, 2, 2) = 32. The search for these generalised taxicab numbers, especially for higher powers, remains an active area of research in mathematics.
The table below summarises the number of primitive solutions found for numbers that are sums of two k-th powers in two ways, within various ranges:
| Range | Number of Primitive Solutions | Cumulative Primitive Solutions |
|---|---|---|
| 1.0E8 to 1.0E9 | 1 | 1 |
| 1.0E9 to 1.0E10 | 2 | 3 |
| 1.0E10 to 1.0E11 | 2 | 5 |
| 1.0E11 to 1.0E12 | 1 | 6 |
| 1.0E12 to 1.0E13 | 2 | 8 |
| 1.0E13 to 1.0E14 | 4 | 12 |
| 1.0E14 to 1.0E15 | 6 | 18 |
| 1.0E15 to 1.0E16 | 15 | 33 |
| 1.0E16 to 1.0E17 | 22 | 55 |
| 1.0E17 to 1.0E18 | 15 | 70 |
| 1.0E18 to 1.0E19 | 25 | 95 |
| 1.0E19 to 1.0E20 | 48 | 143 |
| 1.0E20 to 1.0E21 | 58 | 201 |
| 1.0E21 to 1.0E22 | 68 | 269 |
| 1.0E22 to 1.0E23 | 98 | 367 |
| 1.0E23 to 1.0E24 | 148 | 515 |
| 1.0E24 to 1.0E25 | 150 | 665 |
| 1.0E25 to 1.0E26 | 184 | 849 |
| 1.0E26 to 1.0E27 | 252 | 1101 |
| 1.0E27 to 1.0E28 | 312 | 1413 |
This table illustrates the increasing density of solutions as numbers grow larger, providing a glimpse into the vastness of number theory.
The Intriguing Cabtaxi Numbers
Related to taxicab numbers are 'Cabtaxi Numbers', denoted as Cabtaxi(n). These are defined as the smallest numbers that can be expressed as the sum of two cubes in 'n' different ways, where the definition of 'sum of two cubes' allows for a broader interpretation of the base integers involved. While 1729 is the smallest number that is the sum of two *positive* cubes in two ways, the Cabtaxi sequence extends this concept.
| n | Cabtaxi(n) |
|---|---|
| 1 | 1 |
| 2 | 91 |
| 3 | 728 |
| 4 | 2,741,256 |
| 5 | 6,017,193 |
| 6 | 1,412,774,811 |
| 7 | 11,302,198,488 |
| 8 | 137,513,849,003,496 |
| 9 | 424,910,390,480,793,000 |
The Cabtaxi(n) values grow rapidly. For Cabtaxi(10), there are multiple numbers that can be expressed in 10 ways, with the smallest being a truly colossal figure:
| # Ways | Number |
|---|---|
| 10 | 933,528,127,886,302,221,000 |
The ongoing search for these numbers, particularly for higher 'n', represents a significant computational challenge, pushing the boundaries of what modern computers can achieve.
The Enduring Legacy of a Simple Number
The story of 1729 is more than just a mathematical curiosity; it's a powerful symbol of the profound connections that can arise from human collaboration and the boundless depths of number theory. Ramanujan's instantaneous recognition of the number's unique property underscores his unparalleled genius and intuitive grasp of mathematics. This seemingly 'dull' taxicab number has inspired generations of mathematicians to explore the fascinating world of sums of powers, leading to new discoveries and a deeper understanding of the fundamental building blocks of our numerical universe.

Frequently Asked Questions (FAQs)
What is the Ramanujan-Hardy number?
The Ramanujan-Hardy number is 1729. It earned this name from a famous anecdote involving the mathematicians G.H. Hardy and Srinivasa Ramanujan. Hardy remarked that 1729 seemed a 'dull' number, to which Ramanujan instantly replied that it was, in fact, very interesting because it is the smallest number expressible as the sum of two positive cubes in two different ways.
Why is 1729 called a 'taxicab number'?
It is called a 'taxicab number' because of the anecdote involving Hardy's taxi ride. He noted the number of his taxi, 1729, and Ramanujan's immediate recognition of its unique mathematical property led to the term being coined for numbers with this characteristic.
Are there other taxicab numbers?
Yes, there are. While 1729 is the smallest taxicab number (Ta(2)), which is expressible as the sum of two positive cubes in two ways, the concept extends to numbers expressible in three, four, five, or more ways (Ta(3), Ta(4), Ta(5), etc.). These are often referred to as Ramanujan Triples, Quadruples, and Quintuples, respectively.
What are Cabtaxi numbers?
Cabtaxi numbers, denoted as Cabtaxi(n), are the smallest numbers that can be expressed as the sum of two cubes in 'n' different ways, where the definition of 'sum of two cubes' can include negative integer bases for the cubes. This allows for a wider range of numbers to fit the criteria compared to taxicab numbers which typically refer to positive integer bases.
Did Hardy and Ramanujan often collaborate?
Yes, G.H. Hardy and Srinivasa Ramanujan had a highly significant and fruitful collaboration. Ramanujan travelled from India to Cambridge, England, at Hardy's invitation in 1914. Their work together led to some of the most elegant and profound mathematical discoveries of the early 20th century, despite Ramanujan's unconventional methods and lack of formal training.
If you want to read more articles similar to The Enigmatic 1729: Ramanujan's Taxicab Number, you can visit the Taxis category.
