Greetings, Scratcher I unfortunately don't have time to explain this sequence right now, but Numberphile has made a brilliant video on it and here's the wikipedia article for more information: https://en.wikipedia.org/wiki/Recam%C3%A1n%27s_sequence Press [spacebar] to show the sequence!
All code by me, @CasTur