Mathematical Appendix

From the pendulum to Ramanujan's series, in five links
Every identity below is classical and cited. The numerical checks illustrate the identities; they do not prove them.
Companion to Can You Build a Genius's Formula? — Davide Lugli — November 2026

A. The target

1/π = (2√2/9801) · Σn≥0 (4n)! (1103 + 26390 n) / ((n!)4 3964n)

One of seventeen series published by Ramanujan in 1914 [1], without complete proofs. All seventeen were proved by J. M. and P. B. Borwein in 1987 [2]. Each term adds about eight correct decimals [5]: one, two and three terms give 6, 15 and 23 correct decimals of π.

B. The chain

#LinkIdentitySourceCheck
1PendulumT = 4√(L/g)·K(k), k = sin(θ0/2);
K = (π/2)·2F1(½,½;1;k2)
classicalintegrated motion = formula to 15 digits (10°, 45°, 90°, 120°)
2Change of variable2F1(½,½;1;k2) = 2F1(¼,¼;1;w)
= (1−w)−1/42F1(¼,¾;1;w/(w−1)),
w = 4k2(1−k2)
Gauss (quadratic), Pfaffvalid on the branch k2 ≤ ½ (θ0 ≤ 90°); for k2 > ½ swap k and k′. Residual ≤ 10−40 at k2 = 0.09, 0.49; off branch, k2 = 0.8, it fails (1.43698 vs 1.05655). Ramanujan's point (x ≈ 2.6·10−9) is inside the branch
3Square2F1(¼,¾;1;x)2 = 3F2(¼,½,¾;1,1;4x(1−x));
its kernel is (4n)!/(n!)4
Clausen, 1828residual 10−51 or below
4Pendulum + ellipse → πE K′ + E′ K − K K′ = π/2Legendre, 1811 [3]π/2 to the working precision for θ = 20°, 45°, 60°, 90°, 135°, 160°
5Special pointF(1−x)/F(x) = √29 ⇒ 4x(1−x) = 256/3964 = 1/994;
junctions 1103, 26390
Borwein & Borwein 1987, ch. 5 [2]; Guillera [6]: level 2, modular equation of degree 293964 to 50 digits; integer relation recovered with PSLQ. The degree 29 of the literature matches the √29 found numerically

C. Link 5, step by step

Guillera [6], case of level 2 and degree 29, gives

Σ (¼)n(½)n(¾)n/(n!)3 · (a + b n) · z0n = 1/π,   z0 = 1/994, a = 2206√2/9801, b = 52780√2/9801

1. Pochhammer symbols: (¼)n(½)n(¾)n/(n!)3 = (4n)!/((n!)4·256n). Exact; for n = 3 both sides equal 0.022029876708984375.

2. Hence z0n/256n = 1/(256·994)n = 1/3964n, because 256·994 = (4·99)4 = 3964. Also 9801 = 992.

3. Finally a + b n = (√2/9801)(2206 + 52780 n) = (2√2/9801)(1103 + 26390 n): Ramanujan's series, term by term.

The derivation of a and b from the modular equation of degree 29 is in Guillera's work and, earlier, in Borwein & Borwein. We cite it; we do not reproduce it. Steps 1–3 are elementary algebra, checked by the script.

D. The two operations of the page

Substitute · Gauss's mean

T = 2π√(L/g) / M(1, cos(θ0/2)), with M the arithmetic–geometric mean [7]. Checked to working precision. The same mean drives the Brent–Salamin iteration for π: 2, 7, 18 and 40 correct decimals after one, two, three and four steps.

Cut · the peg

Release from 3° on a string of length L = 1 (g = 1); a peg leaves a free length l = 0.25 on the other side, where the amplitude becomes 6.00°. Exact period, sum of the two half-periods: 4.71401. Small-amplitude formula π(√L + √l): 4.71239.

E. Numbers shown on the page

QuantityValue
1/π0.318309886184…
Archimedes3 10/71 = 3.1408451… < π < 3 1/7 = 3.1428571…
Ramanujan, 1 term3.14159273001…  (error 7.6·10−8)
Ramanujan, 2 terms3.14159265358979387799…  (error 6.4·10−16)
Ramanujan, 3 terms3.14159265358979323846264906…  (error 5.7·10−24)
log φ (C18, symbolic entropy of N1, N2, N3)0.48121183…

All of these, and the checks of links 2–4 and of section D, are regenerated by verify_numbers.py (Python, mpmath, 60 digits). The integrated-motion check of link 1 and the PSLQ recovery of link 5 were run in the working session and are not part of the script. The interactive cursor computes K and E with the arithmetic–geometric mean in double precision; against a 50-digit computation its error is within 10−14 on the result and within 10−12 on each term.

F. 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: A Study in Analytic Number Theory and Computational Complexity, Wiley, New York, 1987.
  3. A.-M. Legendre, Exercices de calcul intégral sur divers ordres de transcendantes et sur les quadratures, vol. I, Paris, 1811.
  4. T. Clausen, Journal für die reine und angewandte Mathematik 3 (1828).
  5. J. Guillera, arXiv:0807.0872 (the seventeen series of 1914; about eight digits per term for this series).
  6. J. Guillera, arXiv:1911.03968 (level 2, degree 29: z0 = 1/994, a, b).
  7. M. B. Villarino, “The AGM Simple Pendulum”, arXiv:1202.2782.
  8. T. Pang Ern, D. W. Wangsa, “A Proof of Ramanujan's Classic π Formula”, arXiv:2411.15803.
  9. D. Lugli, “Same Entropy, Different Borders: A Certified Study of the Period-Tripling Quadratic Cascade” (C18), Zenodo, 2026. doi:10.5281/zenodo.23978167

← Back to the page  ·  dailui.com