User blog:Ynought/R function

R(n) is the amount of times you need to iterate the Recamân sequence untill you at some reached al the numbers 0 to n