Srinivasa Ramanujan: The Man Who Heard Mathematics in Dreams — SciHub101

Photo: www.kaboompics.com / Pexels
Srinivasa Ramanujan (1887–1920) produced theorems of such unexpected depth, across so many branches of mathematics, that the Cambridge mathematician G.H. Hardy called him "the most romantic figure in the history of mathematics." He had almost no formal training, worked in near-isolation in Madras for years, and mailed two letters of unsolicited theorems to Hardy in 1913 that changed the trajectory of 20th-century mathematics. He died of tuberculosis and malnutrition at 32, leaving behind notebooks that mathematicians are still working to fully understand more than a century later.
Quick Biography
Srinivasa Ramanujan Iyengar was born on December 22, 1887, in Erode, in the Madras Presidency of British India, into a Tamil Brahmin family of modest means. His mother Komalatammal was deeply religious; his father Kuppuswamy worked as a clerk in a sari shop. The family moved to Kumbakonam, where Ramanujan spent most of his childhood.
He showed unusual mathematical ability early — at ten he was asking his school teachers questions they could not answer — but his early intellectual life was shaped by a single book: A Synopsis of Elementary Results in Pure and Applied Mathematics by G.S. Carr, a Cambridge tutor's cram text containing some 5,000 theorems with minimal proofs. Ramanujan worked through it, verified the theorems, and then kept going into territory Carr had never mapped.
His mathematical obsession cost him everything else. He won a scholarship to Government College in Kumbakonam in 1904 but failed his examinations — in every subject except mathematics — and lost it. He tried again at Pachaiyappa's College in Madras and failed again. By his early twenties he was living with his parents, doing mathematics on whatever paper was cheap enough to afford, and surviving on the patronage of local mathematicians who recognized that something unusual was happening but had no way to formally situate it.
In 1912 he got a job as a clerk at the Madras Port Trust at a salary of 25 rupees per month. He used the margins of official ledgers for calculations. He sent letters to three Cambridge mathematicians. Two did not reply. The third, Godfrey Harold Hardy, recognized immediately what he was reading.
Hardy arranged for Ramanujan to come to Cambridge in 1914. Ramanujan spent nearly five years there, was elected a Fellow of the Royal Society in 1918 — one of the youngest Fellows in the Society's history and the first Indian elected on the basis of research — and was named a Fellow of Trinity College. He returned to India in 1919, ill from a disease diagnosed as tuberculosis and complicated by what modern researchers believe was also hepatic amoebiasis. He died on April 26, 1920, in Madras, at age 32.
Personal Life and Relationships
The Arranged Marriage
In 1909, at the age of twenty-one, Ramanujan entered an arranged marriage with Srimathia Janaki Ammal, who was then nine or ten years old — a practice that was legal and customary in Tamil Brahmin communities of the era. Because of her age, Janaki did not move in with Ramanujan immediately; she continued living with her own family while he pursued his mathematical work. She formally joined his household only when she was older, around 1912.
The marriage was arranged by Ramanujan's mother Komalatammal, who played an unusually controlling role in the household. By multiple accounts, the relationship between Komalatammal and Janaki was difficult. Janaki later stated in interviews that Ramanujan's mother withheld his letters from her during his Cambridge years and that she received little emotional support from the family. When Ramanujan left for England in 1914, Janaki was left in Kumbakonam, dependent on in-laws who did not treat her warmly.
Ramanujan wrote to Janaki from England, but the correspondence was intercepted or delayed by his mother, who apparently controlled the household correspondence. Janaki's account of this period, given in interviews late in her life and cited in Robert Kanigel's biography The Man Who Knew Infinity (1991), describes years of isolation and unacknowledged hardship.
Janaki After Ramanujan's Death
When Ramanujan died in April 1920, Janaki was twenty or twenty-one years old. She had no children, no independent income, and was dependent on Komalatammal. A dispute over Ramanujan's estate — the money Hardy had arranged for him and the pension Cambridge had approved — became a source of prolonged conflict between Janaki and her mother-in-law. Janaki eventually separated from the Ramanujan family and lived independently, later adopting a son.
The government of India eventually provided her a pension in recognition of Ramanujan's national significance. She lived until 1994, dying at approximately ninety-four, and outlived the man she had been married to by seventy-four years. In her final decades she gave interviews to biographers and journalists and spoke with considerable clarity about the conditions of her marriage and widowhood. She was, toward the end of her life, recognized formally by mathematical institutions in India as Ramanujan's widow and as a person whose own story deserved telling.
Major Contributions
Infinite Series and the Number Pi
Ramanujan derived a series for 1/pi that converges with extraordinary speed — each term of the series adds roughly eight correct decimal places to the value of pi. The formula, published in 1914, was derived without proof. Hardy verified that it worked but could not reconstruct the method. Variants of Ramanujan's pi formula are used in modern computer algorithms: the Chudnovsky brothers' algorithm, which held the record for pi computation for years, is a direct descendant of Ramanujan's series.
The Partition Function
Working with Hardy, Ramanujan developed an asymptotic formula for the partition function p(n) — the number of ways a positive integer can be expressed as a sum of positive integers. The problem sounds simple; the behavior of p(n) is not. Hardy and Ramanujan's 1918 paper on partitions introduced the circle method, a technique that became one of the foundational tools of analytic number theory.
Mock Theta Functions
In a letter written to Hardy in 1920, three months before his death, Ramanujan described a new class of mathematical objects he called mock theta functions. He gave examples but no rigorous definition, and the letter became one of the most studied documents in 20th-century mathematics. It took until 2002 for Sander Zwegers, in his doctoral dissertation, to provide a complete mathematical framework for what Ramanujan had described — linking mock theta functions to a broader theory called harmonic Maass forms. Applications have since been found in the theory of black holes, string theory, and combinatorics.
The Lost Notebook and Black Hole Entropy
The "lost notebook" — a sheaf of 138 pages found by mathematician George Andrews in the Trinity College Library in 1976 — turned out to contain some of Ramanujan's most consequential late work. Among the results were formulas that, decades later, appeared in an entirely unexpected context: the mathematics of black hole entropy. Physicists studying the quantum statistical mechanics of black holes found that certain partition functions they needed — related to counting microscopic states of black hole systems — were the precise objects Ramanujan had been studying in 1919 and 1920, without any knowledge of black holes. The connection between the lost notebook's mock theta functions and string theory's calculation of black hole entropy was established through the work of several researchers in the 2000s and 2010s. It is among the stranger examples of mathematics anticipating physics: Ramanujan died nine years before the first serious discussion of black holes as physical objects.
The Ramanujan Conjecture
In 1916 Ramanujan proposed what became known as the Ramanujan conjecture, concerning the behavior of the tau function, a particular arithmetic function. The conjecture was proved in 1974 by Pierre Deligne as a consequence of his proof of the Weil conjectures — work for which Deligne received the Fields Medal in 1978 and the Abel Prize in 2013. Ramanujan had identified a deep structure that it took the full machinery of 20th-century algebraic geometry to explain.
Ramanujan Primes and Highly Composite Numbers
His work on highly composite numbers — integers with more divisors than any smaller integer — established a framework for understanding divisibility that connects to multiple areas of number theory. His work on Ramanujan primes extended classical results on prime distributions. Neither result is as celebrated as his analytic work, but both have been developed extensively by later mathematicians.
Lesser-Known Habits and Quirks
The Goddess and the Formulas
Ramanujan attributed his mathematical insights, explicitly and repeatedly, to the Hindu goddess Namagiri Thayar of Namakkal, a form of Lakshmi worshipped in the Tamil tradition. This was not a polite cultural expression. He told colleagues, including Hardy, that the goddess appeared to him in dreams and wrote formulas on his tongue, that she showed him mathematical relationships in visions, and that he would reject results that she had not confirmed. "An equation for me has no meaning," he is reported to have said, "unless it represents a thought of God."
Hardy's account of this, in his essay Ramanujan (published in Collected Papers of Srinivasa Ramanujan, 1927), is careful and respectful: he notes that Ramanujan's accounts were entirely consistent, that his family confirmed the same reports, and that Ramanujan distinguished clearly between results he had proved and results he had dreamed. Some results from the dreams were wrong. Most were not. Hardy concluded that the mechanism was irrelevant to the mathematics, and that speculating about whether it was genuine mystical experience or a metaphor for unconscious reasoning was a distraction.
What is documented: Ramanujan's mother reported that he woke repeatedly in the middle of the night to write formulas, that these nocturnal sessions produced his most original results, and that this pattern was consistent from childhood. The notebooks contain large blocks written in different ink and hand pressure — characteristic of rapid transcription.
Near-Starvation in Cambridge
Ramanujan was a devout Brahmin vegetarian. In Madras this was straightforward; Cambridge in wartime England — he arrived in April 1914, four months before World War I began — was not equipped for it. The college kitchens had no framework for vegetarian religious observance. Ramanujan largely cooked for himself in his rooms, relying on ingredients that could be obtained and prepared without violating his dietary restrictions, which meant that during periods of poor supply — particularly during the war years when food imports were disrupted — he frequently ate very little.
By 1917 his health was deteriorating visibly. He was admitted to nursing homes and sanatoria on multiple occasions. Hardy and his colleagues arranged for special dietary provisions; the effort was inconsistent. Hardy wrote later that he deeply regretted not doing more, that Ramanujan's nutritional state in Cambridge contributed to his vulnerability to the tuberculosis that killed him, and that this was one of the institutional failures of his own career.
The specific difficulty of a Tamil Brahmin diet in wartime Cambridge — not just vegetarianism but restrictions on specific ingredients, cooking vessels, and preparation methods — is discussed in Robert Kanigel's biography The Man Who Knew Infinity (1991), which remains the definitive account.
The Taxi-Cab Number: 1729
The incident is genuine and the details are documented. In 1919, Hardy visited Ramanujan in a nursing home in Putney. Hardy, not knowing what to say, mentioned that the taxi he had arrived in bore the number 1729 and that it seemed to him a rather dull number. Ramanujan replied immediately: "No, Hardy, it is a very interesting number. It is the smallest number expressible as the sum of two cubes in two different ways." (1729 = 1³ + 12³ = 9³ + 10³.)
Hardy recorded this in his memoir of Ramanujan, published in Proceedings of the London Mathematical Society (1921). The number 1729 is now called the Hardy-Ramanujan number, and the class of numbers expressible as the sum of two cubes in two ways are called taxicab numbers. The exchange illustrates something specific about Ramanujan's working method: he held numerical relationships in memory the way musicians hold harmonic relationships, immediately and without calculation. Hardy said that Ramanujan's memory for specific integers and their properties was unlike anything he had encountered in another mathematician.
Maryam Mirzakhani, who like Ramanujan died at a young age after producing mathematics of rare originality, also worked with a kind of visual-tactile mathematical intuition — though in geometry rather than number theory. Both cases raise questions about mathematical creativity that remain unresolved.
He Filled Notebooks With Unproven Theorems
The Ramanujan notebooks are peculiar documents. He worked without proof in the conventional sense — he arrived at results and recorded them, returning later to verify or abandon them. The first notebook was compiled by Ramanujan himself and contains roughly 3,000 results with almost no derivations. After his death, Hardy and other mathematicians began the work of verifying and proving what the notebooks contained. Bruce C. Berndt of the University of Illinois spent over twenty years on a systematic proof of every theorem in the notebooks, completing the project in five volumes between 1985 and 1998. Not every result in the notebooks was correct. Most were.
He Tried to Withdraw the FRS Nomination
Hardy and other Cambridge mathematicians began the process of nominating Ramanujan as a Fellow of the Royal Society in 1917. When Ramanujan learned of the nomination, he apparently expressed discomfort with the process and its social obligations. He was elected in 1918, the first Indian elected on the basis of research alone. The full circumstances of his reaction to the nomination are recounted in Kanigel's biography; what is clear is that the institutional honors that Cambridge conferred on him arrived during a period of serious illness and personal isolation, and his response to them was muted.
He Solved Problems from a Trigonometry Book Without the Instructions
An episode recounted in multiple biographical sources describes Ramanujan, as a schoolboy, obtaining a copy of S.L. Loney's Plane Trigonometry — a standard examination text — without its companion volume of solutions. He solved every problem in the book independently before discovering that solutions existed. This was not unusual for him. He routinely arrived at results by paths unavailable in the texts he worked from, then retroactively verified them against standard results when he could.
Famous Quotes
"An equation has no meaning unless it expresses a thought of God." Reported in multiple sources, including Hardy's A Mathematician's Apology (1940) and Paul Erdos's accounts of conversations with Hardy. The context was Ramanujan's explanation of his mathematical method; he was not speaking metaphorically.
"The man who resigned himself to living on the ground while others flew is not one to be forgotten." Hardy's description of Ramanujan in the 1921 memoir, capturing the combination of complete mathematical certainty and personal precariousness that defined his years in India.
"I have not trodden through the conventional regular course which is followed in a university course, but I am striking out a new path for myself." From Ramanujan's first letter to Hardy, January 1913. The letter also contained a sample of 120 theorems and the sentence: "I beg to introduce myself to you as a clerk in the Accounts Department of the Port Trust Office at Madras."
"No, Hardy, it is a very interesting number." Ramanujan's response to Hardy's taxi-cab comment, as recorded by Hardy in his memoir. The four words are the most cited sentence in the history of number theory.
Legacy
Ramanujan's mathematical influence is not narrowly contained. His work on mock theta functions became central to string theory and the mathematics of black holes. His pi series drives computational mathematics. The Hardy-Ramanujan-Rademacher formula for the partition function is used in statistical physics. His name appears in the mathematics underlying the Monster group — one of the largest structures in abstract algebra — and in the Langlands program, a vast unifying project in modern number theory.
The Ramanujan Prize, awarded by the International Centre for Theoretical Sciences, the Abdus Salam International Centre for Theoretical Physics, and the International Mathematical Union, is given annually to a mathematician from a developing country under forty-five who has made outstanding contributions to mathematics. The age limit is deliberate. Ramanujan himself died at thirty-two, with a full career of mathematics still in him.
For more on mathematicians who reshaped their fields from outside institutional centers, see Emmy Noether and Maryam Mirzakhani.
FAQ
Q: Did Ramanujan really receive formulas from a goddess in dreams? He said so, consistently and without apparent irony, to multiple people including Hardy. Whether this was a genuine religious experience, an unconscious cognitive process described in the available religious vocabulary, or a cultivated self-narrative is not knowable. Hardy's position — that the mechanism was irrelevant to the mathematics — is the position most subsequent commentators have adopted.
Q: Why did Hardy initially doubt Ramanujan's letters? He did not initially doubt them — he was initially unsure whether he was reading work of genius or elaborate plagiarism. The theorems were so unexpected in their approach that Hardy spent an evening with J.E. Littlewood trying to determine whether the results were known. They were not. Hardy described the evening as the most extraordinary of his mathematical life.
Q: Was Ramanujan self-taught? Largely, yes. He had access to Carr's Synopsis and to some standard texts, but his formal mathematical education ended when he lost his scholarship at Government College. Everything else he derived himself. This makes the notebooks' contents — including results in areas of mathematics he had no known exposure to — difficult to account for by ordinary means.
Q: What killed Ramanujan? The official diagnosis was tuberculosis. Modern medical analysis of his symptoms, particularly by Dr. D.A.B. Young in a 1994 paper in Notes and Records of the Royal Society of London, suggests that hepatic amoebiasis — a parasitic liver infection — was a contributing or primary cause. Malnutrition during the Cambridge years is documented and would have worsened both conditions.
Q: Are all the theorems in his notebooks proved? As of Bruce Berndt's five-volume project, all verifiable theorems in the first three notebooks have been proved. The "lost notebook" — discovered in the Trinity College library in 1976 by George Andrews — has been the subject of ongoing work; Andrews and Berndt published a four-volume series on it between 2005 and 2013.
Q: What happened to Ramanujan's wife Janaki? Janaki Ammal lived until 1994, dying at approximately ninety-four years old. After Ramanujan's death she faced prolonged disputes with his mother over his estate and pension, eventually living independently and later adopting a son. The Indian government awarded her a pension in recognition of Ramanujan's national importance. In her later years she spoke to biographers and journalists about her marriage and the years she spent in Ramanujan's family's household.
Q: How did mock theta functions connect to black holes? The connection was established in the 2000s by physicists studying black hole entropy in string theory. Counting the microscopic quantum states of a black hole requires specific mathematical functions — and those functions turned out to be precisely the mock theta functions Ramanujan had described in his dying letter to Hardy in 1920. He had no knowledge of black holes; the mathematics preceded the physics by decades. It is one of the most striking examples of pure mathematics anticipating physical theory on record.
Q: Why did Ramanujan fail his college exams if he was a genius? Because his genius was entirely concentrated in mathematics. He had no interest in, or capacity for sustained study of, other subjects — languages, history, physiology. The British Indian examination system required performance across subjects for scholarship eligibility, and Ramanujan's lopsidedness disqualified him repeatedly. The system was not designed to accommodate someone who had, in effect, already moved beyond the curriculum in one direction while neglecting all others.
Sources
- Hardy, G.H. "Obituary Notice: Srinivasa Ramanujan." Proceedings of the London Mathematical Society 19 (1921): xl–lviii.
- Kanigel, Robert. The Man Who Knew Infinity: A Life of the Genius Ramanujan. Charles Scribner's Sons, 1991.
- Berndt, Bruce C. Ramanujan's Notebooks, 5 vols. Springer, 1985–1998.
- Andrews, George, and Berndt, Bruce C. Ramanujan's Lost Notebook, 4 vols. Springer, 2005–2013.
- Hardy, G.H. A Mathematician's Apology. Cambridge University Press, 1940.
- Young, D.A.B. "Ramanujan's Illness." Notes and Records of the Royal Society of London 48 (1994): 107–119.
- Zwegers, S.P. "Mock Theta Functions." PhD diss., Utrecht University, 2002.
Follow new articles
Add SciHub101 to your feed reader to see new science and technology stories.
About the Author
SciHub101 is an independent science and technology publication founded and edited by Buğra Sözeri, a software engineer and app developer based in Türkiye. AI tools assist with drafting and research. Source documentation in the existing archive is uneven, and articles are being reviewed and corrected. The Editorial Team byline identifies editorial responsibility; it does not certify specialist or independent human review. Where we compare products, anything built by our own team is labelled as such — see the editorial guidelines and About page for how corrections and disclosures work.
Related Articles

Subrahmanyan Chandrasekhar: The Limit That Eddington Tried to Kill — SciHub101
Subrahmanyan Chandrasekhar's life, the Chandrasekhar limit, and verified quirks: humiliated by Eddington, derived the limit at 19 on a ship, taught 2 students who both won Nobels.

Maryam Mirzakhani: The First Woman to Win the Fields Medal — SciHub101
Maryam Mirzakhani's life, discoveries, and verified quirks: painting math on the floor, two IMO gold medals, the Fields Medal in 2014, and dying at 40 of breast cancer.

Joseph-Louis Lagrange: The Mathematician Who Rewrote Mechanics — SciHub101
Lagrange's 1788 Mécanique analytique reformulated Newton using pure algebra. He discovered Lagrange points, invented calculus of variations, and survived the Revolution that killed Lavoisier.

Kurt Gödel: The Logician Who Proved Mathematics Has Limits — SciHub101
Kurt Gödel's incompleteness theorems (1931) shattered the dream of a complete mathematics. His Princeton friendship with Einstein and tragic death reveal a singular mind.

Pierre-Simon Laplace: The Mathematician Who Mapped the Solar System — SciHub101
Laplace's celestial mechanics proved the solar system stable, his demon defined determinism, and his probability theory is still used today. He served Napoleon and the Bourbons with equal facility.

Carl Friedrich Gauss: The Prince of Mathematicians
Carl Friedrich Gauss proved the 17-gon constructible at 19 and published Disquisitiones Arithmeticae at 24. Explore the life of history's greatest mathematician.