1. Put in a number 2. Run algorithm
The algorithm is if the number is odd you multiply by 3 and add one and if the number is even you divide by two. It will always (to my knowledge) end in a 1, 2, 4 loop so it ends at one (Some numbers will take a long time to calculate) Example: 3 = 3, 10, 5, 16, 8, 4, 2, 1