Collatz Problem by uru

n=gets.to_i*2
p n=n&1>0?n*3+1:n/2while n>1

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top