User blog comment:Mh314159/Help me understand a natural number recursion/@comment-39541634-20191016190652

There seems to be a problem with the function given.

I tried to calculate f(512,x) and got:

f(512,x)=4x+1

For example:

f(512,5) = f(2682(4A+2),6) = f(2170(4B+2),7) = f(242(4C+2),8) = f(210(4D+2),9) = f(22(4E+2),10) = f(699050,11) = f(174762,12) = f(43690,13) = f(10922,14) = f(2730,15) = f(682,16) = f(170,17) = f(42,18) = f(10,19) = f(2,20) = 21 = 4*5+1.

(where A,B,C,D and E are integers)