Method

The Chudnovsky Pi Recipe

Published by David and Gregory Chudnovsky in 1988. Still the workhorse behind serious digit hunts. Each term is expensive. Each term is also efficiently delicious.

The Chudnovsky formula: 1 over pi equals 12 times the sum from k equals 0 to infinity of negative one to the k times (6k) factorial times (545140134k plus 13591409), all over (3k) factorial times (k factorial) cubed times 640320 to the power 3k plus 3/2.

Key ingredients

Use in Computing π

The Chudnovsky algorithm is widely used in programs for computing millions or even trillions of digits of π/pi, leveraging its rapid convergence and ability to compute terms in parallel.

In the Kitchen

In practice the algorithm is implemented with optimizations for factorial computations and large integer arithmetic to handle the immense size of the numbers involved in calculations.

Enjoy a Sample

Your Slice is the tasting spoon — a browser bake, once the house calculations are dropped in. For a bound copy, see the books.