BBP formula

The Bailey–Borwein–Plouffe formula (BBP formula) provides a spigot algorithm
for the computation of the nth binary digit of π. This summation formula was
discovered in 1995 by Simon Plouffe. The formula is named after the authors
of the paper in which the formula was first published, David H. Bailey,
Peter Borwein, and Plouffe.[1][2]

The discovery of this formula came as a surprise. For centuries it had been
assumed that there was no way to compute the nth digit of π without
calculating all of the preceding n − 1 digits.