It works as follows:
Then ak converges quartically against 1/π; that is, each iteration approximately quadruples the number of correct digits.
See also
... 1792, 1796, 1800, 1804, 1808, 1812, 1816 Source: U.S. Office of the Federal R ...