
The answer is surprisingly poetic: the probability is effectively 100%. In fact, you aren’t just breathing one molecule that passed through Ramanujan’s lungs—you are likely breathing millions of them with every single gulp of air.
Here is the breakdown of how the math makes this possible.
First, we need to know how many molecules are in the entire atmosphere. The mass of the Earth’s atmosphere is approximately 5.15 x 10^18 kg. Since air is mostly nitrogen and oxygen, its average molar mass is about 29 g/mol.
Srinivasa Ramanujan lived for about 32 years. If we assume an average resting breathing rate of 15 breaths per minute and a tidal volume of 0.5 liters per breath:
Note: We assume for this calculation that every breath he took contained “fresh” molecules, which is largely true over a lifetime as the atmosphere mixes.
For this to work, the air Ramanujan exhaled in Kumbakonam or Cambridge has to be perfectly mixed across the entire globe.
Since Ramanujan passed away in 1920, his “shared” molecules have had over a century to spread uniformly. We can safely assume they are evenly distributed.
Now, we calculate the “concentration” of Ramanujan molecules in the atmosphere:
Concentration = Ramanujan Molecules / Total Molecules Concentration = (3.3 x 10^30) / (10^44) = 3.3 x 10^-14
This means that roughly 1 out of every 30 trillion molecules in the world was once inside Ramanujan. That sounds small, but remember how many molecules are in your next breath (1.3 x 10^22).
Molecules in your breath from Ramanujan: (1.3 x 10^22) * (3.3 x 10^-14) = approx. 430,000,000 molecules.
If you expect to find 430 million molecules in every breath, the probability of finding zero is statistically impossible (P = approx. e^-430,000,000).

So, as you read this, you are physically connected to the man who “knew infinity” by hundreds of millions of tiny nitrogen and oxygen messengers.
You can play around with an interactive simulation in this Google Colab notebook
or use this interactive webpage build in shiny