Yeah. A bug in conversion to English digits, I think. (Unfortunately it was throwaway code in a now-closed window so I can’t check exactly what stupid thing I did.)
Funnily enough, I didn’t even write any code. Just figured out that I need a 100-digit numerator of a continued fraction convergent of pi, then found it on OEIS.
Ha! I can never remember which sorts of best approximation are guaranteed to be actual c.f. convergents and which might be “intermediate” ones that come from iterating the mediant construction. So I used PARI’s “bestappr” function. My bug was in code that had nothing to do with the actual mathematics.
… which agrees with cousin_it’s answer; I promise I didn’t cheat :-).
I think you have one extra digit at the end.
Yeah. A bug in conversion to English digits, I think. (Unfortunately it was throwaway code in a now-closed window so I can’t check exactly what stupid thing I did.)
Funnily enough, I didn’t even write any code. Just figured out that I need a 100-digit numerator of a continued fraction convergent of pi, then found it on OEIS.
Ha! I can never remember which sorts of best approximation are guaranteed to be actual c.f. convergents and which might be “intermediate” ones that come from iterating the mediant construction. So I used PARI’s “bestappr” function. My bug was in code that had nothing to do with the actual mathematics.
Congratulations to you, too!