Collatz Calculate the length of the Collatz sequence for a given number Usage collatz(n) returns the length of the Collatz sequence for n.