Ok so i saw this on youtube shorts. To start you take a random number and if it is odd multiply by 3 and add 1. else If it is even divide it by two and then you will end up at one at the end every time.
Example if you have 7: 7 x 3 + 1 = 22 22 / 2 = 11 11 x 3 + 1 = 34 34 / 2 = 17 17 x 3 + 1 = 52 52 / 2 = 26 26 / 2 = 13 13 x 3 +1 = 40 40 / 2 = 20 20 / 2 = 10 10 / 2 = 5 5 x 3 + 1 = 16 16 / 2 = 8 8 / 2 = 4 4 / 2 = 2 2 / 2 = 1 i hope you understand :)