the hailstone sequence is simple, start at 1-10. if its odd; multiply by 3 and add 1. if its even; divide by 2. it always ends up on a 4 - 2 - 1 repeat pattern.
Better explanation here: https://www.youtube.com/shorts/8fNFd2Xswjs cause for loop; 4/2=2, 2/2=1, 1*3+1=4. 4=even 2=even 1=odd similar to the step loop, 1= do 2: 2= do 3: 3= do 1: