WIPIVERSE All articles

Bailey–Borwein–Plouffe formula

The Bailey–Borwein–Plouffe (BBP) formula is a mathematical series that allows the extraction of the hexadecimal (base‑16) digits of π (pi) starting at an arbitrary position, without the need to compute preceding digits. It was discovered in 1995 by Simon Plouffe, who built on earlier work by David H. Bailey and Peter Borwein.

Formula

$$ \pi = \sum_{k=0}^{\infty} \frac{1}{16^{k}}\left(\frac{4}{8k+1}-\frac{2}{8k+4}-\frac{1}{8k+5}-\frac{1}{8k+6}\right) $$

Each term of the series contributes to a specific set of hexadecimal digits of π. Because the denominator contains powers of 16, the series can be evaluated modulo $16^{n}$ to obtain the $n$th hexadecimal digit directly.

Key properties

  • Digit‑extraction: The BBP formula is the first known example of a base‑$b$ digit‑extraction algorithm for a mathematical constant, enabling “spigot” computation of π’s digits in base 16 (and, with modification, base 2).
  • Rapid convergence: The series converges relatively quickly; each additional term yields about four hexadecimal digits of precision.
  • Generalizations: Similar BBP‑type formulas have been identified for other constants, such as log 2, ζ(3) (Apéry’s constant), and certain polylogarithmic values, often involving different bases.
  • Computational impact: The formula led to large‑scale distributed computations of π’s distant hexadecimal digits, confirming statistical properties of π’s digit distribution.

Historical context

  • 1995 discovery: The formula was reported in a paper titled “On the rapid computation of various polylogarithmic constants” (Bell Labs, 1995). The authors demonstrated that π could be expressed as a base‑16 BBP sum, a result that surprised the mathematical community because most known infinite series for π required calculation of all preceding terms.
  • Subsequent research: The BBP discovery stimulated interest in normality of π (whether each digit appears with equal frequency) and provoked investigations into the existence of similar formulas for other bases and constants.

Applications

  • Verification of computational results: By independently calculating distant digits of π using the BBP formula, researchers can cross‑check results obtained from other algorithms (e.g., Gauss‑Legendre or Chudnovsky algorithms).
  • Testing randomness: The ability to compute isolated digits enables statistical tests of digit distribution without generating entire large blocks of π.
  • Educational demonstrations: The BBP series serves as an illustrative example of series manipulation, modular arithmetic, and the concept of digit extraction in elementary number theory courses.

References

  • D. H. Bailey, P. Borwein, S. Plouffe, “On the rapid computation of various polylogarithmic constants,” Mathematics of Computation, vol. 66, no. 218, 1997, pp. 903–913.
  • S. Plouffe, “The BBP Algorithm for Pi,” Experimental Mathematics, vol. 9, no. 2, 2000, pp. 159–160.
  • J. Borwein, D. Bailey, “Pi and the AGM: A Study in Analytic Number Theory and Computational Complexity,” Wiley, 2005.
Browse

More topics to explore

    Browse all articles