Mobile friendly! Adjust the slider to adjust the wait time. All other instructions in project. If you find a number that doesn't go down to one, comment below and I will follow you. It can't be done! If you liked this, please heart or star this project, all the code except the stamping was done by me, and I'd appreciate it.
Finally, an educational project! The hailstone sequence is a math formula that states all numbers will go down to one. What's the formula? It's easy enough that a 4th grader could do it: Pick any number. Repeat until n=1 (n is the number) If n=even then n/2. If n=odd then n*3+.1 As an example, let's say we start with the number 5. 5=odd, so we multiply 5 by 3 and add one. The new number is: 16 16=even, so we divide it by 2. The new number is: 8 8=even. 8/2=4 4=even. 4/2=2 2=even. 2/2=1 Now technacilly, we should multiply by 3 and add 1, but that would put us in a loop.