Series that converge to $\pi$ quickly

35.8k Views Asked by At

I know the series, $4-{4\over3}+{4\over5}-{4\over7}...$ converges to $\pi$ but I have heard many people say that while this is a classic example, there are series that converge much faster. Does anyone know of any?

8

There are 8 best solutions below

5
On BEST ANSWER

The BBP formula is another nice one: $$ \pi = \sum_{k=0}^\infty \left[ \frac{1}{16^k} \! \left( \frac{4}{8k+1} - \frac{2}{8k+4} - \frac{1}{8k+5} - \frac{1}{8k+6} \right) \right] $$ It can be used to compute the $n$th hexadecimal digit of $\pi$ without computing the preceding $n{-}1$ digits.

2
On

The series $$ \sum_{n=0}^{\infty} \frac{(2n)!!}{(2n+1)!!} \left(\frac{1}{2}\right)^n = \frac{\pi}{2}$$ converges quickly. Here $!!$ is the double factorial defined by $0!! = 1!! = 1$ and $n!! = n (n-2)!!$

This is series is not too hard to derive. Start by defining $$f(t) = \sum _{n=0}^{\infty } \frac{(-1)^n}{(2n+1)}t^n.$$ Note that $f(1) = \pi/4$ is the series you referenced. Now we take what is called the Euler Transform of the series which gives us $$ \left(\frac{1}{1-t}\right)f\left(\frac{t}{1-t}\right) = \sum _{n=0}^{\infty } \left(\sum _{k=0}^n {n \choose k}\frac{(-1)^k}{(2k+1)}\right)t^n.$$

Now $$\sum _{k=0}^n {n \choose k}\frac{(-1)^k}{(2k+1)} = \frac{(2n)!!}{(2n+1)!!}$$ for hints on how to prove this identity see Proving a binomial sum identity $\sum _{k=0}^n \binom nk \frac{(-1)^k}{2k+1} = \frac{(2n)!!}{(2n+1)!!}$. Now put $t = 1/2$ and the identity follows. Showing the error term for the nth partial sum is less than $(1/2)^n$ is not too difficult.

3
On

Here is a really nice one due to Simon Plouffe. There are many similar examples in his linked paper.

$$\pi = 72\sum_{n=1}^\infty \frac{1}{n(e^{n\pi} - 1)} - 96\sum_{n=1}^\infty \frac{1}{n(e^{2n\pi} - 1)} + 24\sum_{n=1}^\infty \frac{1}{n(e^{4n\pi} - 1)} .$$

What I like about it is that I can see at a glance that the series converge rapidly without having to make some mental estimate of the size of factorials.

9
On

The convergence can be arbitrary fast unless you don't specify what kind of series you are looking. Let $k$ be a positive integer, $a_n=\pi/k$ if $n\leq k$ and zero elsewhere. Then $\sum_{n=1}^\infty a_n$ converges to $\pi$ after $k$ summands.

2
On

I think you may find interesting to browse the webpage of Jon Borwein, which I would call the standard reference for your question. In particular, take a look at the latest version of his talk on "The life of pi" (and its references!), which includes many of the fast converging algorithms and series used in practice for high precision computations of $\pi$, such as the one from this Summer.

0
On

Just to give people an idea on convergence rates, here is a plot of $-\log_{10}\left|\frac{S_n-\pi}{\pi}\right|$ versus $n$ , where $S_n$ is the nth partial sum of the series in question, for three of the series featured in the answers to this question (note the vertical scale):

partial sum plots

The three series are, from top to bottom, $\arctan(1)$ (the series mentioned by the OP), $2\arcsin\left(\sqrt{\frac12}\right)$ (the series mentioned by yjj in his answer), and the series by Ramanujan I mentioned in the comments (I didn't include the series by the Chudnovsky brothers, since that converges even faster than the Ramanujan series, and that makes for boring plots).

0
On

You should take a look at the paper: Some New Formulas for π by Gert Almkvist, Christian Krattenthaler, and Joakim Petersson, Experiment. Math. Volume 12, Number 4 (2003), 441-456.

0
On

This one is possibly the fastest converging formula with rational terms $a,b,r$ of the form $\pi=c\sum^{\infty}_{n=0}(a+bn)r^n$ , which adds a little over 2 digits per term, or more exactly $\log (324)$:

$\frac{\sqrt{3}}{60}\displaystyle\sum^{\infty}_{n=0} \frac{(-1)^n(2n)!(130n+109)}{(7/6)_{n}(11/6)_{n}6^{4n}}$

testing it

[2] source: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3919892