This uses the formula 1+1/n+1/(n^2)+1/(n^3) and so on. It does as many terms as it can to reach an answer.