1
2
3
assert(collatz(1) == 0)
4
assert(collatz(6) == 8)
5
assert(collatz(9) == 19)
6
assert(collatz(9000) == 47)
7
8