Start with an even number.
Let's start with 10 (10 is even)
Divide it by 2 until you reach an odd number or 1
10/2 = 5 (5 is odd)
If it is an odd number different than 1, multiply it by 3 and add 1
Yes 5 is odd and different than 1
5*3 + 1 = 15 + 1 = 16
Start the process of dividing by 2
16/2 = 8
8/2 = 4
4/2 = 2
2/2 = 1
So we ended up with 1
This problem seems to be a Collatz conjecture.