for(;m=readline(j=i=1);print(j-i))for(;m-1;j<<=++i>j)m=m%2?3*m+1:m/2
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page