Project Euler 752 - Powers of 1 + √7
Official link: https://projecteuler.net/problem=752
Note: My code takes ~230 seconds, 8 seconds with pypy. I have given details on why everything is true, I understand the more detailed explanations in the thread so I am happy with my understanding.
For a thorough understanding of this problem please read the thread