1,729 owes its fame to a single, well-documented hospital-room exchange between two mathematicians. The British mathematician G. H. Hardy, visiting his collaborator, the largely self-taught Indian mathematician Srinivasa Ramanujan, remarked that the number of the taxicab he'd arrived in — 1729 — seemed like a rather dull one. Ramanujan reportedly disagreed immediately: 1,729, he said, is actually a genuinely interesting number, because it's the smallest number expressible as the sum of two cubes in two completely different ways. 1,729 = 1³ + 12³ (1 + 1,728) and also 9³ + 10³ (729 + 1,000) — both true, both landing on exactly 1,729, with no other pair of positive-integer cubes doing the same for any smaller number. This site covers the numbers immediately relevant to this same family in more depth elsewhere — including 4,104, the second-smallest number with this exact two-different-ways property.
That instant recognition became a defining anecdote about Ramanujan's extraordinary intuitive relationship with numbers, and numbers sharing this "smallest sum of two cubes in n distinct ways" property are now formally named taxicab numbers in his honor — 1,729 specifically holds the designation Ta(2), the second in the sequence (Ta(1)=2, trivially 1³+1³, the smallest number expressible as a sum of two positive cubes at all, though only in one way).
Less widely known, and genuinely worth highlighting as a separate fact from the taxicab anecdote: 1,729 is also a Carmichael number — a composite number that fools the Fermat primality test for every valid base, the same rare category 1,105 belongs to (covered on its own page on this site). 1,729 factors as 7 × 13 × 19, and checking the Korselt condition confirms it: n−1 = 1,728, and (7−1)=6, (13−1)=12, and (19−1)=18 all divide 1,728 evenly (1,728÷6=288, 1,728÷12=144, 1,728÷18=96). It's a genuinely notable coincidence that this exact number carries two entirely separate, independently earned mathematical distinctions — one from additive number theory (the taxicab property) and one from a completely different branch concerned with primality testing — with no logical connection between the two beyond both happening to land on the identical integer.
1,729 has one more small structural curiosity worth knowing: 1+7+2+9 = 19, and 1,729 ÷ 19 = 91 — meaning 1,729 is exactly 19 times the sum of its own digits, a genuinely rare property (numbers with this "Harshad" characteristic, where a number is divisible by its own digit sum, aren't especially uncommon on their own, but the specific quotient landing on the digit sum's own multiple here is a small additional coincidence worth noting for anyone checking the arithmetic by hand).
As a plain integer, 1,729's full divisor list follows directly from its 7 × 13 × 19 factorization: 1, 7, 13, 19, 91, 133, 247, and 1,729 — eight divisors total. It's odd, composite, not a perfect square or cube itself, and its enduring fame rests overwhelmingly on the Hardy-Ramanujan anecdote — a rare case in mathematics where a specific, documented human conversation, rather than an abstract proof, made a particular number genuinely famous.
Ramanujan's broader mathematical reputation was built on exactly this kind of rapid, often unexplained numerical insight, developed largely through independent study in India before he began formally corresponding with, and eventually working alongside, Hardy at Cambridge starting in 1913. Much of his surviving work, recorded in personal notebooks rather than formal published papers, presented results with little or no accompanying proof — leaving later mathematicians to spend decades verifying and formally proving claims Ramanujan had apparently just recognized as true, a genuinely unusual working style that the 1,729 anecdote captures in miniature: an instantly recognized fact, offered without hesitation, that turned out to be both true and genuinely interesting.
Ramanujan's health had already been seriously declining by the time of the hospital visit the anecdote describes — he died in 1920, just a few years after returning to India from England, at only 32 years old — which lends the story an additional, often-noted poignancy in how it's retold: one of the last widely shared glimpses of Ramanujan's mathematical intuition, captured almost incidentally in an offhand hospital-room remark rather than in a formal paper, from a mathematician whose full potential output was cut dramatically short by his early death.