Collatz Problem by xsd

let rec l n=Printf.printf"%d
"n;l[|n/2;n*3+n/(n-1)|].(n mod 2);;l(read_int())

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

download

return to the top page