What Would Ramanujan Have Done With AI?
Quick answer: Ramanujan would most likely have used AI to test his formula guesses faster and to check proofs, the two things he lacked time and training for. AI would not have replaced his intuition. Even the Technion team behind the Ramanujan Machine, an AI that generates formulas for constants like pi, says it cannot prove its own conjectures, so people still must.
What Would Ramanujan Have Done With AI? The Short Answer
Srinivasa Ramanujan filled notebooks with formulas that he rarely bothered to prove, and some of them took experts decades to check. Now imagine handing that same mind a machine that can test a formula to a thousand decimal places in a second, and another that can check a proof line by line.
Nobody can know what Ramanujan would actually have done, so treat everything in the speculative parts of this article as an educated guess. What we can do is look at how he really worked, look at the AI tools that now exist, and see where they fit together. The match is surprisingly close. One AI project is even named after him: the Ramanujan Machine, built at the Technion in Israel, which hunts for new formulas for numbers like pi and e.
Here is the short version of what the evidence suggests:
- He would probably have used AI to check guesses faster. Ramanujan found patterns by heavy hand calculation. Computers do that part in seconds.
- AI could have helped with his weakest spot: proof. Some of his claims were wrong, and many lacked written proofs. Proof checkers like Lean are built for exactly that gap.
- AI would not have replaced his intuition. Even the people who built the Ramanujan Machine say it produces guesses that humans still have to prove or explain.
The rest of this article explains each point, with the real history and the real AI projects behind it.
How Ramanujan Worked: Intuition, Slates and Thousands of Formulas
Ramanujan was born on 22 December 1887 in Erode, in what is now Tamil Nadu, India, according to the MacTutor History of Mathematics biography. He taught himself from G. S. Carr’s Synopsis of elementary results in pure mathematics, a book that, as Britannica notes, lists thousands of theorems, many without proofs. That style rubbed off on him.
His formal education did not go smoothly. He passed mathematics at Pachaiyappa’s College in Madras but failed his other subjects, so he could not enter the University of Madras. In 1912 he took a clerk’s job at the Madras Port Trust. In January 1913 he wrote to G. H. Hardy at Cambridge, opening with the line: “I have had no university education but I have undergone the ordinary school course.”
A quick timeline
| Year | Event |
|---|---|
| 1887 | Born in Erode, India |
| 1912 | Starts work as a clerk at the Madras Port Trust |
| 1913 | Writes to G. H. Hardy; Hardy replies on 8 February |
| 1914 | Arrives in England and moves into Trinity College, Cambridge |
| 1918 | Elected to the Royal Society and as a Fellow of Trinity College |
| 1920 | Dies on 26 April in Kumbakonam, aged 32 |
His working method matters for our question. According to Wikipedia’s biography, he compiled nearly 3,900 results in his life, mostly identities and equations. Paper was expensive, so he likely did much of his working on a slate and copied only final results into his notebooks. That is why the notebooks look like lists of answers with very little explanation.
He also described his ideas as gifts. He credited his family goddess, Namagiri Thayar, and often said, “An equation for me has no meaning unless it expresses a thought of God.” The DeepMind team opened its 2021 blog post on AI and pure mathematics with exactly this picture: a self-taught mathematician who saw patterns in numbers that others missed.
Even his small talk was number theory. In the famous story told by Britannica, Hardy called his taxi number, 1729, “rather a dull one.” Ramanujan replied that it is the smallest number that can be written as a sum of two cubes in two different ways: 1 cubed plus 12 cubed, and 9 cubed plus 10 cubed. Our post on the 1729 taxicab number walks through why.
Ramanujan: Myth or Fact?
Tap a card to reveal the answer.
Watch: Two Videos Worth Your Time
Prefer to watch? These videos add another angle on the topic.
The Ramanujan Machine: An AI Built to Guess Like Ramanujan
If you want a real-world answer to “what would Ramanujan do with AI,” the closest thing is a project that copies his favorite activity: guessing formulas for famous constants.
The Ramanujan Machine was created by undergraduate students working under Assistant Professor Ido Kaminer at the Technion, and the results were published in the journal Nature in 2021. According to the Technion’s announcement, the system uses AI and computer automation to produce conjectures, mostly formulas for constants such as pi, e, Apery’s constant and Catalan’s constant. A few highlights:
- It reproduced all of Gauss’s known formulas for pi in a few hours, along with dozens of new ones.
- Some of the formulas it produced were previously unknown.
- One of its most interesting finds, a new algebraic structure hidden in Catalan’s constant, was found by Yahel Manor, a high school student on the team.
Notice the human in that last bullet. Kaminer was clear about the limits: “It’s important to point out that the algorithm itself is incapable of proving the conjectures it found.” The machine guesses; people prove.
From many formulas to one hidden structure
The story kept going. As Scientific American reported, Kaminer’s group later collected 455,050 math papers from arXiv, pulled out 385 unique formulas for pi, and showed that many of them, including formulas by Archimedes, Euler and Ramanujan, share a hidden structure the team calls a conservative matrix field. About 43 percent of the 385 formulas analyzed descend from a single such structure. The team used GPT-4o, together with specialized algorithms, to spot pi equations in the papers and turn them into code they could test. About 10 percent of the 385 formulas had come from the Ramanujan Machine itself.
Not everyone loved the name. George Andrews, a leading Ramanujan expert, had criticized naming the machine after Ramanujan, yet he called the newer work “serious mathematics done in a serious way.” And in 2026 the same group, with collaborators, published The Ramanujan Challenge For AI, a set of formulas for constants such as pi, e and Catalan’s constant meant to test whether AI systems can prove them. Some come with proofs the authors are keeping hidden for a short time; others are still open.
Ramanujan vs AI: Where Their Strengths Overlap and Differ
Putting Ramanujan side by side with today’s tools makes the “what if” question much more concrete.
| Task | Ramanujan | AI tools today |
|---|---|---|
| Spotting a pattern in numbers | World class, by hand and intuition | Strong when the search space is well defined, as with the Ramanujan Machine |
| Checking a guess numerically | Slow, by hand on a slate | Very fast, to huge precision |
| Writing out a full proof | Often skipped or left out of notebooks | Improving; proof assistants like Lean can check every step |
| Knowing what the field already knew | Limited; some results were rediscoveries | Can scan large libraries of papers |
| Deciding which questions are beautiful or important | His defining gift | Still mostly a human job |
Two rows stand out. First, Ramanujan’s knowledge gaps were real. Hardy wrote that “the limitations of his knowledge were as startling as its profundity,” as quoted by MacTutor. When Hardy read the first letter, he found that some results were wrong, some were already known, and the rest were new. An AI literature search could have told the young clerk in Madras which of his results were original before he ever mailed them.
Second, the “which questions matter” row is still the human row. In DeepMind’s 2021 work with mathematicians such as Geordie Williamson, Marc Lackenby and Andras Juhasz, machine learning spotted patterns in data, but humans decided what to look at, interpreted the patterns and proved the theorems. Oxford mathematician Marcus du Sautoy said the work “feels like Galileo picking up a telescope.” A telescope is a great image here: it extends what you can see, but someone still has to decide where to point it.
Ramanujan's Missing Piece Was Proof, and That Is Where AI Is Growing Fastest
Hardy’s most famous comment on Ramanujan’s letter is about trust. Faced with some of Ramanujan’s continued fraction results, Hardy wrote that they “defeated me completely” and that they “must be true, because, if they were not true, no one would have the imagination to invent them.” That is a compliment, but it is also a warning. Imagination is not proof.
And sometimes the imagination misfired. MacTutor states plainly that “some of his theorems on prime numbers were completely wrong.” Mathematicians spent much of the twentieth century proving, correcting and explaining what was in his notebooks. G. N. Watson alone published 14 papers titled Theorems stated by Ramanujan.
Proof checkers: the tool Ramanujan never had
Today a proof can be written in a computer language such as Lean, where software checks every logical step. If you are new to this, our guide to the Lean theorem prover explains how it works. The big news story of November 2026 shows how far this has come. According to Science News, Levent Alpöge, a mathematician at Anthropic, posted a proof of the Riemann hypothesis on November 20, 2026, that he said he developed over about six weeks of back-and-forth with Anthropic’s AI, Claude. Claude checked the work in Lean, using the Mathlib library, and a joint statement from the Lean Focused Research Organization and the Mathlib Initiative said they had “full confidence” in the proof’s correctness.
Independent mathematicians reacted strongly. Ken Ono of Axiom Math and the University of Virginia called it “an earthquake throughout mathematics,” while Bryna Kra of Northwestern University stressed that human expertise was central and that the work is “a beginning.” There are real caveats too: the proof is enormous, mathematicians were still working to turn it into something people can read and understand, and some critics, Science News reports, argue that no human can fully take responsibility for it. You can read more in our profile of Levent Alpöge.
Why does this matter for Ramanujan? Because it shows the exact pairing his career lacked: a person with deep intuition steering, and a machine that refuses to accept any step that is not airtight.
Three Educated Guesses About Ramanujan With AI
With the history and the tools in hand, here are three reasonable scenarios. They are guesses, not facts, but each is grounded in how he actually worked.
- He would have run experiments at enormous speed. Ramanujan’s notebooks are full of identities that he found by working through many examples. A tool like the Ramanujan Machine automates the same kind of search over formulas for constants. He would likely have used it the way a musician uses a piano: to try ideas fast and hear which ones ring true.
- He would have had fewer wrong theorems. Working alone, without access to the latest research, probably made his errors on prime numbers harder to catch. Numerical checks and a proof assistant would have flagged many of those mistakes early, before they reached Hardy.
- He would have had a faster path to recognition. He spent years as a clerk, writing to mathematicians and hoping someone would take him seriously. A formal proof that software can verify is much harder to ignore than a letter from an unknown clerk. That might have shortened his path to Cambridge.
There is also an honest counterpoint. Some people believe that his isolation was part of his genius, because he was not taught to think like everyone else. A tool that always shows you what is already known could, in theory, push you toward familiar ideas. Nobody can test this, so it is worth holding both views at once.
One more thing is clear from the record: Ramanujan died at 32. Whatever AI might have added, the larger loss was simply time. Mock theta functions, which he found in the last year of his life, were only fully understood through modern theory developed decades after his death.
Use AI Like Ramanujan Would
Pick the best move in each situation.
You notice that 1 + 3 = 4, 1 + 3 + 5 = 9 and 1 + 3 + 5 + 7 = 16. What is your next step?
An AI chatbot gives you a neat formula for a homework problem but no steps.
You think you found a new math fact and want to share it online.
Your teacher asks you to explain why your answer is right, not just give it.
What Ramanujan's Story Means for Students Using AI Today
You do not need to be a genius to use the same habits. The useful lesson from Ramanujan and the Ramanujan Machine is a simple loop: guess, test, then prove or explain. AI is excellent at the middle step and getting better at the last one, but the first step is still yours.
Five habits to borrow
- Play with numbers before you ask for help. Work three or four examples by hand and look for a pattern. That is how Ramanujan built his intuition.
- Use AI or a calculator to test your guess, not to make it. Our free math calculators are handy for quick checks, like confirming that 1729 really is 1 cubed plus 12 cubed.
- Ask the AI why, not just what. If a tool gives you an answer, ask it to show the steps and then check each one yourself.
- Treat an answer like a conjecture until it is checked. Hardy recognized Ramanujan’s talent at once but still asked for proofs before accepting his claims. Do the same with any AI answer.
- Write your reasoning down. Ramanujan’s lack of written proofs cost mathematicians decades of work. A short written explanation is what turns a right answer into real understanding.
For a step-by-step approach, see our guide on how to use AI to learn math. The bottom line is hopeful. A clerk who had no university degree at the time changed mathematics with a slate and a book of formulas. With today’s tools, curious students have far more help than he ever did. The part no machine supplies is the curiosity.
Quick Quiz: Ramanujan and AI
Test what you learned about Ramanujan and the AI tools inspired by him.
Answer each question and press Submit to see your result right away.
Answer each question and press Submit to see your result right away.
Frequently Asked Questions
Tap a question to see the answer.
Who was Srinivasa Ramanujan?
Ramanujan was a self-taught Indian mathematician who lived from 1887 to 1920. He worked as a clerk in Madras before writing to G. H. Hardy, who brought him to Cambridge. He produced nearly 3,900 results, mostly identities and equations, and was elected to the Royal Society in 1918.
What is the Ramanujan Machine?
It is a software project from the Technion in Israel, led by Ido Kaminer, that searches for new formulas for mathematical constants such as pi, e and Catalan's constant. Its results were published in Nature in 2021. It generates conjectures but does not prove them.
Did Ramanujan prove his formulas?
Often he did not write proofs down. His notebooks list results with few derivations, partly because paper was expensive and he worked on a slate. Later mathematicians spent decades proving and checking his claims, and some turned out to be wrong.
Can AI come up with new math formulas?
Yes, in some areas. The Ramanujan Machine has produced formulas for constants that were previously unknown, and DeepMind's 2021 work helped mathematicians find new results in knot theory and representation theory. In both cases humans still interpreted and proved the results.
Was Ramanujan ever wrong?
Yes. MacTutor states that some of his theorems on prime numbers were completely wrong, and Hardy found that some results in his first letter were already known or incorrect. His correct results, though, were often deep and original.
Why is it called the Ramanujan Machine?
It is named after Ramanujan because, like him, it produces formulas without proofs. Ramanujan expert George Andrews had criticized the group for naming the machine after Ramanujan, though he later praised the group's work connecting pi formulas as serious mathematics.
What is the Ramanujan Challenge for AI?
It is a 2026 benchmark from Kaminer's group and collaborators that lists formulas for constants such as pi, e and Catalan's constant. The formulas can be checked numerically, but proving them may need non-obvious math, so they test whether AI can actually prove things.
Is Ramanujan's lost notebook real?
Yes. Mathematician George Andrews rediscovered a sheaf of 87 unorganized pages in 1976, now called the lost notebook. Its rediscovery caused great excitement among mathematicians, and it is still studied today.
How did Hardy rate Ramanujan?
According to Britannica, Hardy rated mathematicians on a scale from 0 to 100. He gave himself 25, David Hilbert 80 and Ramanujan 100.
Sources and Further Reading
- MacTutor History of Mathematics: Srinivasa Aiyangar Ramanujan
- Britannica: Interesting facts about Srinivasa Ramanujan
- Wikipedia: Srinivasa Ramanujan
- Technion: The Ramanujan Machine
- Scientific American: Mathematicians find one pi formula to rule them all
- Google DeepMind: Exploring the beauty of pure mathematics in novel ways
- arXiv: The Ramanujan Challenge For AI
- Science News: The Riemann hypothesis has apparently been solved with AI's help
Related to This Article
More math articles
- The Best Algebra 1 Book for Missouri Students
- Student Loan Repayment Calculator: RAP, Tiered Standard and 10-Year Plans
- DNA Replication Enzymes: Roles and Worked Examples
- Cubic Yard Calculator
- Pre-Algebra Practice Test Questions
- Free Grade 3 English Worksheets for Connecticut Students
- Adding Fractions with Like Denominators for 4th Grade
- Free Grade 5 English Worksheets for North Dakota Students
- RD Exam Calculations: Foodservice Yield and Cost per Portion (2027 Prep)
- Ratios, Concentrations, and Dilutions















What people say about "Ramanujan and AI: What Would He Have Done With It?"?
No one replied yet.