The rules of the numbers are simple: Odd: Multiply by 3, add 1 Even: Divide by 2 No matter what you put, the number will always and eventually fall to 1, then loop (1, 4, 2)