Ramanujan’s formula for pi
Around , Ramanujan proved the following formula:
Theorem.
The following series converges and the sum equals :
Needless to say, the convergence is extremely fast. For example, if we only use the term we obtain the following approximation:
and the error is (in absolute value) equal to In , William Gosper used this formula to calculate the first 17 million digits of .
Another similar formula can be easily obtained from the power series of . Although the convergence is good, it is not as impressive as in Ramanujan’s formula: