This project is meant to be a visualizer of the Collatz conjecture, or 3x+1, which is an unsolved math problem. The rules are If the number is odd: Multiply by 3 and add 1 If the number is even: Divide by two The conjecture is that every number will eventually end up in a loop of 4-2-1. For simplicity, this simulation terminates after it reaches one and then plots a graph of all the points reached. You can scroll through the history to see all the values. There are some interesting patterns in here. If you like math, have fun! Update: Now works with negatives! Press up arrow to show variables Press down arrow to hide variables
Thanks to math for the original concept Thanks to @YoshiLover08 for helping me with some code