Problem 694 solved, 'The Collatz Sequence'