How 3x+1 is that if the number is odd you multiply it by 3 and add 1 to it. If the number is even you divide it by 2. For example, 5 will multiply to 16 then divide into 8, 4, 2, and then 1 the go back up to 4, then 2, then 1 into an infinite loop. This applies to all number that have been tested so far…
I watched a YouTube video about this equation and I found the problem fascinating so I just decided to make a simple program to run this equation.