The Bailey-Borwein-Plouffe formula is an amazing way to calculate individual digits of Pi, with out having to go through all the billions and billions of digits.

Life of Pi Series – Pi played by Pi, the Whale played by the Bailey-Borwein-Plouffe equation.