3n + 1 is a rule where if a number is even you divide it by 2, and if it's odd, you multiply it by 3 and add one. If the number reaches 4, then following the rule will create a loop of 4 - 2 - 1. The Collatz Conjecture is that any positive, whole number will eventually reach this loop. Click the button to input any whole, positive number that Scratch can handle to test the theory. It will tell you how many times the number had to be manipulated before it reached the 4 - 2 - 1 loop, and the highest number it reached.
inspired by the veritasium video on the collatz conjecture