Hubbry Logo
Chudnovsky algorithmChudnovsky algorithmMain
Open search
Chudnovsky algorithm
Community hub
Chudnovsky algorithm
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Contribute something
Chudnovsky algorithm
Chudnovsky algorithm
from Wikipedia

The Chudnovsky algorithm is a fast method for calculating the digits of π, based on Ramanujan's π formulae. Published by the Chudnovsky brothers in 1988,[1] it was used to calculate π to a billion decimal places.[2]

It was used in the world record calculations of 2.7 trillion digits of π in December 2009,[3] 10 trillion digits in October 2011,[4][5] 22.4 trillion digits in November 2016,[6] 31.4 trillion digits in September 2018–January 2019,[7] 50 trillion digits on January 29, 2020,[8] 62.8 trillion digits on August 14, 2021,[9] 100 trillion digits on March 21, 2022,[10] 105 trillion digits on March 14, 2024,[11] and 202 trillion digits on June 28, 2024.[12] Recently, the record was broken yet again on November 23rd, 2025 with 314 trillion digits of pi.[13][14] This was done through the usage of the algorithm on y-cruncher.

Algorithm

[edit]

The algorithm is based on the negated Heegner number , the j-function , and on the following rapidly convergent generalized hypergeometric series:[15]

This identity is similar to some of Ramanujan's formulas involving π,[15] and is an example of a Ramanujan–Sato series.

The time complexity of the algorithm is , where n is the number of digits desired.[16]

Optimizations

[edit]

The optimization technique used for the world record computations is called binary splitting.[17]

See also

[edit]

References

[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
The Chudnovsky algorithm is a rapidly converging infinite series formula for computing the π to high precision, developed by American mathematicians and Gregory Chudnovsky and published in 1988. It derives from modular equations and elliptic integrals inspired by the work of , providing approximately 14 decimal digits of accuracy per term in the summation, which makes it one of the fastest known methods for such calculations. The core formula is given by 1π=12n=0(1)n(6n)!(13591409+545140134n)(3n)!(n!)36403203n+3/2,\frac{1}{\pi} = 12 \sum_{n=0}^{\infty} \frac{(-1)^n (6n)! (13591409 + 545140134 n)}{(3n)! (n!)^3 640320^{3n + 3/2}}, where the series is evaluated using techniques like binary splitting to handle large integers efficiently and minimize computational overhead from divisions. This expression stems from the Chudnovskys' exploration of complex multiplication on elliptic curves and Ramanujan's class invariants, yielding a convergence rate superior to earlier series like those based on arctangents. Since its introduction, the algorithm has been pivotal in breaking world records for π digit computations, including the current record of 300 trillion digits as of April 2025, due to its balance of rapid convergence and implementability on modern hardware with libraries. It remains a standard in both academic research and hobbyist projects for high-precision π evaluation, often optimized with parallel processing and specialized division algorithms to handle the intensive operations involved.

History and Development

Origins in Ramanujan's Work

The foundations of the Chudnovsky algorithm trace back to the groundbreaking work of in the early 20th century, particularly his explorations of modular forms and for approximating π. In , Ramanujan published a seminal paper detailing how modular equations of various degrees could yield highly efficient series expansions for 1/π, derived from the complete of the first kind and transformations under the . These approximations leveraged the interplay between elliptic functions and hypergeometric series, providing convergence rates far superior to contemporary methods like those based on arctangents. Central to Ramanujan's approach were class invariants, algebraic numbers constructed from theta functions associated with singular moduli, which served as precursors to fast-converging π series. For imaginary quadratic fields with d, particularly Heegner numbers such as d = -163—where the class number is 1—these invariants enable extraordinarily accurate approximations, as the at the corresponding point yields values extremely close to integers when exponentiated with π. Ramanujan's insights into these structures, drawn from his notebooks and the paper, highlighted how such numbers amplify the precision of evaluations for π, foreshadowing later algorithmic accelerations. Ramanujan also developed specific formulae for 1/π incorporating s and functions, such as those linking the Rogers-Ramanujan continued fraction to modular functions and yielding hypergeometric representations. These expressions, often involving products of series, allowed for compact, rapidly convergent sums that approximated π to many decimal places with few terms—for instance, one such series converges at a rate of about 8 decimal digits per term. His work in the , though initially unpublished in full detail, laid the theoretical groundwork for these techniques. Ramanujan's π series remained largely unproven until their rediscovery and rigorous validation in the 1980s by mathematicians including Jonathan and Peter Borwein, who provided analytic proofs using elliptic function theory and modular forms. This revival in the late 1980s spurred adaptations, such as those by the , who built upon these foundations to engineer practical computational algorithms.

Chudnovsky Brothers' Formulation

David Volfovich Chudnovsky (born January 22, 1947) and Gregory Volfovich Chudnovsky (born April 17, 1952) are Soviet-born American mathematicians who emigrated to the in the 1970s and established their careers at as research associates in the Department of Mathematics. Both brothers specialized in and , with Gregory receiving a MacArthur Fellowship in 1981 for his contributions to these fields, often in collaboration with David. In 1988, the published their formulation of an efficient series for computing π, derived from Srinivasa Ramanujan's foundational ideas on modular forms, incorporating the and principles of complex multiplication. This work appeared in the proceedings of the Ramanujan Centenary Conference, emphasizing approximations rooted in elliptic integrals and class invariants to achieve rapid convergence. Motivated by the computational challenges of the , where supercomputers like Japan's series were pushing records to hundreds of millions of digits, the brothers sought a more efficient algorithm to surpass these limits without relying on institutional resources. Their approach addressed the era's hardware constraints by prioritizing series that maximized digits per computational step, enabling personal-scale high-precision calculations. The brothers' initial application of their formulation came in 1989, when they computed π to 1,011,196,691 decimal places—over a billion digits—using the and supercomputers at IBM's , funded through grants including from the . This achievement marked a at the time and demonstrated the practical power of their algorithm amid the decade's competitive race for π precision.

Mathematical Foundation

Hypergeometric Series Basis

The generalized hypergeometric series provides a foundational framework for many special functions in mathematics, extending the binomial series to more parameters. It is defined as pFq(a1,,apb1,,bq;z)=k=0(a1)k(ap)k(b1)k(bq)kzkk!,{}_p F_q \left( \begin{matrix} a_1, \dots, a_p \\ b_1, \dots, b_q \end{matrix} ; z \right) = \sum_{k=0}^{\infty} \frac{(a_1)_k \cdots (a_p)_k}{(b_1)_k \cdots (b_q)_k} \frac{z^k}{k!}, where the Pochhammer symbol, or rising factorial, is given by (a)k=a(a+1)(a+k1)(a)_k = a(a+1) \cdots (a+k-1) for positive integer kk, with (a)0=1(a)_0 = 1. This series converges absolutely for z<1|z| < 1 and can be analytically continued elsewhere, making it versatile for representing solutions to differential equations and integrals. In computations involving π\pi, hypergeometric series arise through connections to modular forms and elliptic integrals, where the complete elliptic integral of the first kind K(k)=π22F1(12,12;1;k2)K(k) = \frac{\pi}{2} {}_2F_1\left(\frac{1}{2}, \frac{1}{2}; 1; k^2\right) links the series directly to periods of elliptic curves, which are encoded by modular forms. These relations stem from the transformation properties of modular functions, such as the elliptic modulus λ(τ)\lambda(\tau), which parameterize families of hypergeometric evaluations yielding π\pi. Heegner numbers, which are square-free positive integers dd such that the class number of the imaginary quadratic field Q(d)\mathbb{Q}(\sqrt{-d})
Add your contribution
Related Hubs
Contribute something
User Avatar
No comments yet.