Press Space to pick any positive integer. When you do this, the program performs the 3x+1 equation- If the number is odd, it multiplies by 3 and adds 1. If the number is even, it divides by two. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Some good starting numbers to try: - 47 with 0.1 exaggeration - 7 with full exaggeration I would suggest to keep the movement speed at ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ According to this, every single positive integer, given enough time, will fall into the 4-2-1 loop: when it lands at 4, it divides by two. That lands it at 2. Again, it divides by 2. 1 is the result. 1 multiplied by 3 +1 =4 and the whole thing repeats. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I've carried this over from an old project which I left incomplete around two years ago. I've added the graph and made the calculations more optimised.
I pretty much made this just for the graph. Veritasium on YouTube for the topic, as far as I remember.