Input a number after pressing the flag. This simulates the 3x+1 problem. It simulates these parameters with your number: 1: if the number is even, it divides it by 2. 2: If the number is odd, it multiplies it by 3 and adds 1. That's all! Currently, there is no known number that does not end up in the loop of: 4-2-1-4-2-1- and so on. See if you can get a number that works! PS. Try negative numbers! changing the speed slider changes how fast iterations go by. Don't be afraid to watch it and see how it grows and shrinks!
I made this all by myself, but Veritasium (on youtube) inspired me to make this when I watched his video about this problem: https://www.youtube.com/watch?v=094y1Z2wpJg