6 To Be Fair, It Must Be Biased
The return probability has the form
where p(n, ε) is the probability of return to the origin after 2n steps; this can be written in terms of binomial coefficients as
. The sum can be estimated by using a partial sum or, for more digits, using an extrapolation technique to estimate the tail. Then standard root-finding techniques tell when the expression is 2. The answer is
0.06191395447399094284817521647321217699963877499836207606146725885993101029759615845907105645752087861.
There is also a closed form for this sum in terms of elliptic functions. Several people observed this. Here is how to use the elliptic function.
And there is a well-known connection between this elliptic function and the very-fast-to-compute arithmetic-geometric mean. Thus, as observed by Bornemann, it is faster and more elegant to use the following, which gives the same result, and gives 500 digits in under a second.
Created by Mathematica (June 27, 2004)