News for hackers. Stuff that matters.
Re:A Million Digits of Pi in 9 Lines of JavaScript by joeyrideout on Thursday September 12, 2019 @04:50PM (#20956306)
Remove the leading 3 and the trailing term of 1/4 increasing in power.

You are left with this (in the 4th line):

1 3 5 1

- - - -

2 4 6 7

The pattern I see is that, starting from the top left and reading numerator, denominator, numerator, denominator and so on gives: 1 2 3 4 5 6 7 if you ignore the last numerator.

I may have it wrong, but that looks like the pattern.

Re:A Million Digits of Pi in 9 Lines of JavaScript by mef51 on Thursday September 12, 2019 @04:54PM (#20956340)
4th step is 1357/2468
Re:A Million Digits of Pi in 9 Lines of JavaScript by joeyrideout on Thursday September 12, 2019 @04:55PM (#20956353)
Is that simplified? I'm just going off of this image: http://ajennings.net/blog/images/formula.png
Re:A Million Digits of Pi in 9 Lines of JavaScript by mef51 on Thursday September 12, 2019 @04:58PM (#20956380)
me too, the pattern to me is odds on the numerator and evens in the denominator, and the second fraction goes 1/3, 1/5, 1/7, 1/9...

i think we're saying the same thing i misunderstood your comment. 1357/2468 is the first fraction of the NEXT line that isnt in the image

Re:A Million Digits of Pi in 9 Lines of JavaScript by joeyrideout on Thursday September 12, 2019 @05:04PM (#20956437)
Aha, yes, I edited my post now to say 4th line not 4th step. Leave it to HN to get an off-by-one error :)