Click flag, change step speed with arrows. R - New number. Pick any number. Negative, positive, whole or decimal. If it's even, divide it by two. If it's odd, multiply by 3 and add one. It is said, all positive integers will end in a 4, 2, 1 loop, as 1 times 3 is 3, add one, 4. Negative numbers also have loops: 3 different ones this time. -1, -2 -5, -14, -7, -20, -10 and -17, -50, -25, -74, -37, -110, -55, -64, -82, -41, -22, -61, -182, -91, -272, -136, -68, -34. Phew. Are these loops true for all numbers? Mathematicians still don't know...
Huge thanks to YouTube channel Veritasium for inspiring me to make this, the video link below: https://www.youtube.com/watch?v=094y1Z2wpJg