Hi! this project is made to demonstrate the math problem 3x+1. How it works is simple: if a number is odd, you multiply by 3 and add 1. If a number is even, you divide by 2. This repeats infinitely. However, once a number reaches 1, it loops between 1, 2, and 4. This project is designed to show how this problem works. Controls When you start the project, it will ask you to put in a number 1 to 500. Then, it will show you a graph of what happens to that number until it reaches 1. Press "Space" to try another number.
Thanks to Vsauce2 on YouTube for making a video about this and inspiring me to make this.