Notebook
Lets break the above equation into three components, a constant A and a product of Bn and Cn that accumulate as a sum. The latter two may be written as generators, with n increasing by one each time they're fed to next(). An outermost generator ties them all together and takes the reciprocal to get an approximation for π itself.