Can You Build a Genius's Formula?

Let's try with Ramanujan
You don't need to know mathematics. We show you the pieces, the rules that connect them, and what happens when you change them.
Davide Lugli — dailui.com — November 2026

1. The formula

In 1914 Ramanujan published extraordinary formulas for π, without complete proofs. How did he reach results so precise?

1π= 2√29801 Σn = 0…∞ (4n)! · (1103 + 26390 n)(n!)4 · 3964n

What does it compute? Take a wheel 1 metre across and roll it, without slipping, for 1 metre. It turns less than a third of the way round:

1/π = 0.318309886…

2. The speed

A 96-sided polygon against a single piece of the formula.

Methodπ you getCorrect decimals
Archimedes, polygons of 96 sides3 10/71 < π < 3 1/7
3.1408 < π < 3.1429
2
Ramanujan, 1 term3.141592736
Ramanujan, 2 terms3.1415926535897938815
Ramanujan, 3 terms3.14159265358979323846264923

How is that possible?

3. The fit

Three objects you know, each with its formula.

Pendulum
T = 4·√(L/g)·K(k)
how long one swing lasts
Ellipse
P = 4·a·E(k)
how long its edge is
Wheel
C = 2·π·r
here π is the result, not a piece

Now take a pendulum released from an angle θ and its twin released from 180° − θ, each with its ellipse. We cross them in three junctions, always the same way:

Legendre's relation, computed live
A pendulum changes. An ellipse changes.
But when their formulas respect one precise relation,
the result never changes: it is π/2.

It is one of the mathematical structures that lead towards Ramanujan.

How it works (technical note)

The angle is the amplitude of pendulum A. We use k = sin(θ/2); twin B uses the complementary modulus k′ = cos(θ/2). The junctions are products of the normalised elliptic integrals K and E, the part of the formulas that depends only on the angle, not direct products of measured times and perimeters.

The relation K(k)·E(k′) + E(k)·K(k′) − K(k)·K(k′) = π/2 is Legendre's (1811). Every value is computed live in your browser with Gauss's arithmetic–geometric mean; error measured against a 50-digit computation: within 10−14 on the result, within 10−12 on each term.

Two more operations on the same pendulum. Substituting the amplitude changes the period: T = 2π√(L/g) divided by Gauss's mean of 1 and cos(θ/2). Cutting with a peg splits the swing in two parts: for small amplitudes T ≈ π√(L/g) + π√(l/g). Going from Legendre's relation to Ramanujan's series takes further classical transformations and a special point: they are in the mathematical appendix.

4. The reversal

First we changed the pieces without changing the result. Now we do the opposite.

We fix the result and look at how many different structures can produce it. Three dynamical systems, studied in the paper C18. Each dot is a piece of the system, each arrow a possible step. Colours show the groups of pieces the system keeps going round.

returns every stepreturns every 3 stepsreturns every 9 steps
N1
2 pieces · 1 group
symbolic entropy = log φ
N2
8 pieces · 2 groups
symbolic entropy = log φ
N3
26 pieces · 3 groups
symbolic entropy = log φ

The same number. Three different structures.
If you only measure the number, you do not see them.

5. What is the trick?

We do not know how Ramanujan saw these formulas. Our hypothesis is that he looked at the structures before the calculations. We cannot check that historically. But we can run an experiment: start from the representations, look for the constraints that connect them, and check the mathematical identities. Those agree.

Difference
two things that are not equal
Limit
the constraint that binds them
Border
where the constraint makes them meet
Formula
only at the end, the number that comes out
Two different things can obey the same mathematical structure.
If you find the relation that connects them,
you can change representation without losing what stays invariant.

This is the path we explore with Sub-Limit Dynamics.

For those who want to verify

6. For those who want to verify

The page tells the story; the mathematical appendix proves each step. It gives the chain from the pendulum to Ramanujan's series in five links, with the source of every identity and a script that regenerates every number shown here.

Classical

Every identity used on this page is known: Legendre's relation (1811), Clausen's formula (1828), the arithmetic–geometric mean of Gauss. Ramanujan's seventeen series of 1914 were proved in full by J. M. and P. B. Borwein in 1987. The novelty here is the order of reading and the interactive cursor, not the mathematics.

Certified

The three graphs N1, N2, N3 are drawn from the certificate published with C18. Their recurrent classes, periods and the symbolic entropy log φ ≈ 0.4812 are certified there with validated interval arithmetic.

Not claimed

This page does not reconstruct how Ramanujan found his formula, and the coefficients of the series are not one-to-one with physical objects. Ramanujan is a way into the method, not an empirical test of Sub-Limit Dynamics.

Sources

  1. S. Ramanujan, “Modular equations and approximations to π”, Quarterly Journal of Mathematics 45 (1914), 350–372.
  2. J. M. Borwein, P. B. Borwein, Pi and the AGM, Wiley, New York, 1987.
  3. A.-M. Legendre, Exercices de calcul intégral, vol. I, Paris, 1811.
  4. Archimedes, Measurement of a Circle, Proposition 3.
  5. D. Lugli, “Same Entropy, Different Borders: A Certified Study of the Period-Tripling Quadratic Cascade” (C18), Zenodo, 2026. doi:10.5281/zenodo.23978167

dailui.com