Saints & Scientists · Story library
Ramanujan and the Taxi Number
Young Ramanujan of Kumbakonam loves numbers like friends and becomes close friends with Professor Hardy in England. Hardy visits him in taxi number 1729 and calls it a dull number.
Moral of the story: Even ordinary things are full of wonder when we look closely.
In this story
- Characters
- Srinivasa Ramanujan, G. H. Hardy
- Source text
- From the life of Srinivasa Ramanujan (1887–1920); the 1729 anecdote recorded by G. H. Hardy
- Value
- Wonder
- Read time
- 4 min read aloud
3 min read · pregnancy & ages 4–10 · also known as “Ramanujan aur 1729 taxi number ki kahani”
Source: Story in the Saints & Scientists tradition
Behind this story
G. H. Hardy himself recorded this famous anecdote about his friend Srinivasa Ramanujan, the self-taught genius from Kumbakonam whose letters to Cambridge changed the history of mathematics. Visiting him in Putney, Hardy remarked that his taxi number, 1729, seemed rather dull, and Ramanujan replied at once that it was very interesting: the smallest number expressible as the sum of two cubes in two different ways. Today 1729 is known as the Hardy-Ramanujan number. What makes this story delightful is its warmth, a moment of playful wonder between two very different friends. For a mother-to-be, it invites her to find magic in ordinary things and imagine the curious mind of her coming child.
Ramanujan saw beauty where others saw nothing special, and friendship crossed every difference between him and Hardy. The story celebrates curiosity, joy in learning, and the warmth of a friend's visit.
It is a very interesting number!
Long ago, in a small town in South India called Kumbakonam, there lived a boy named Srinivasa Ramanujan, who loved numbers more than anything in the world.
For Ramanujan, numbers were not just marks on a slate. They were like friends. Each one had its own face, its own personality, its own little secrets.
He would sit on the steps of the temple or on the veranda of his home, working with chalk on a slate, rubbing out with his elbow, writing again. His mother, Komalatammal, would watch him and smile. Sometimes she sang devotional songs while he worked, and the numbers seemed to dance to her music.
As he grew older, he filled notebook after notebook with wonderful discoveries. Many people in India did not understand them. So he wrote a letter to a famous mathematician in England, Professor G. H. Hardy of Cambridge.
When Hardy opened the letter and read the pages of formulas, he was amazed. "These must be true," he said, "because no one could have imagined them otherwise." He invited Ramanujan to come to Cambridge.
So Ramanujan crossed the seas. In Cambridge, he and Hardy became the best of friends and colleagues. They were very different. Hardy was English, tall and quiet, and loved cricket. Ramanujan was Indian, gentle and warm, and loved his mother's cooking and his prayers.
But when they talked about numbers, they understood each other perfectly. They would sit for hours in Hardy's rooms, scribbling, arguing happily, and laughing at the beauty of what they found.
After some years in the cold, damp English weather, Ramanujan became unwell and had to rest. He stayed for a while in a quiet house in a place called Putney, near London, where nurses looked after him and he could get stronger.
Hardy came to visit his friend. He took a taxi from the station, and as he climbed out, he noticed the number painted on the taxi: 1729.
Hardy went inside and sat down by Ramanujan's bed. He was not very good at saying soft, comforting things. So, to start a conversation, he talked about the taxi.
"I came in taxi number 1729," Hardy said. "It seemed to me rather a dull number. I hope that is not a bad sign."
Ramanujan's eyes lit up. He sat up a little against his pillows, and a smile spread across his face.
"No, Hardy," he said. "It is a very interesting number!"
Hardy raised his eyebrows. "Is it?"
"Yes," said Ramanujan. "It is the smallest number that can be made by adding two cubes together in two different ways."
Hardy thought about it. A cube is a number multiplied by itself, and then by itself once more. One times one times one is one. Twelve times twelve times twelve is one thousand seven hundred and twenty-eight.
One plus one thousand seven hundred and twenty-eight makes one thousand seven hundred and twenty-nine.
And nine times nine times nine is seven hundred and twenty-nine. Ten times ten times ten is one thousand. Seven hundred and twenty-nine plus one thousand also makes one thousand seven hundred and twenty-nine!
Two different pairs of cubes, both making the very same number. And no smaller number in the world can do that trick.
Hardy began to laugh. Only his friend Ramanujan could look at a number painted on a taxi and see its hidden secret in an instant, just like greeting an old friend in the street.
The room felt warmer. The two friends talked about numbers for a long while, and for a little time Ramanujan forgot that he was tired.
Since that day, mathematicians all over the world call 1729 the Hardy-Ramanujan number. And sometimes they call special numbers like it taxicab numbers, in memory of that visit.
So, little one, may you find wonder in ordinary things, may you have friends who share your joys, and may nothing in the world ever seem dull to you.
More from Saints & Scientists
- Source
- Story in the Saints & Scientists tradition
- Theme
- wonder, friendship, wisdom
- Updated
Characters
- Srinivasa Ramanujan
- — A brilliant mathematician who sees wonder in every number.
- G. H. Hardy
- — A Cambridge professor and Ramanujan's warm friend.
The moral
Even ordinary things are full of wonder when we look closely.
What to say to your baby
May you find wonder in ordinary things, little one, and never find anything dull.
Ask them when they're older
Which number do you find the most interesting, and why?
Source: From the life of Srinivasa Ramanujan (1887–1920); the 1729 anecdote recorded by G. H. Hardy