for n=1,999 do x=n t=0 while 7%x>0 do x=(x%2*x*23+x+2)/4 x=x-x%1 t=t+1 end print((x>1 and"Infinity"or t)..", "..n)end