Welcome to the forums. Use some simple print line debugging to print out the values of i and see when the exception is being thrown. Then run the collatz function with just this value and print out...