Project Euler 461 - Almost Pi

Official link: https://projecteuler.net/problem=461

Note: Code runs in ~600 sec

Thought Process

Having done a similar problem the method of this one was quite obvious for me.

The generic name for this type of algorithm seems to be "Meet in the middle algorithm"

Interactive Code

Enter an Integer (yourinput)

Code will output g(yourinput)