collatz sequence solution