3x+1 is one of the hardest mathematical problem today, if the number if odd, you multiply by 3 and add 1, but if the number is even, you divide by 2. We check for the final loop of the problem, 4-2-1. Negative numbers also work, it checks for -5,-2 and -34.