Continued Fractions for π

A continued fraction is a slightly strange series, or sequence, perhaps best described simply by example. Around 1660 the English mathematician William Brouncker found the following sequence which converges to π.

x1=4
x2=4/(1+1/2)=2.6667
x3=4/(1+1/(2+32/2))=3.4667
x4=4/(1+1/(2+32/(2+52/2)))=2.8952
x5=4/(1+1/(2+32/(2+52/(2+72/2))))= 3.3397
x6=4/(1+1/(2+32/(2+52/(2+72/(2+92/2)))))=2.9760
x7=4/(1+1/(2+32/(2+52/(2+72/(2+92/(2+112/2))))))=3.2837
x8=4/(1+1/(2+32/(2+52/(2+72/(2+92/(2+112/(2+132/2)))))))=3.0171

Slow to converge, and awkward to calculate, it is of little use. However, like some other converging formulae which produce approximations which alternate between too big and too small, one can improve the convergence by averaging the last two terms. The average of the last two terms above is 3.1504.

One can do slightly better using continued fractions, and in 1999 the American mathematician Prof LJ Lange published the following series

x1=3+1/6=3.1667
x2=3+1/(6+32/6)=3.1333
x3=3+1/(6+32/(6+52/6))=3.1452
x4=3+1/(6+32/(6+52/(6+72/6)))=3.13 97
x5=3+1/(6+32/(6+52/(6+72/(6+9 2/6))))=3.1427
x6=3+1/(6+32/(6+52/(6+72/(6+9 2/(6+112/6)))))=3.1409