Collatz problem brute force method