This is a program that runs the Collatz conjecture on integers. Enter an integer in the box and watch it run the conjecture! (Press the green flag to reset). Collatz conjecture or 3n+1: - If a number is odd, multiple by three and add one; 7*3+1=22 - If a number is even, divide by two; 22/2=11 - Repeat; 11*3+1=34, 34/2=17... - Once a number reaches one, it goes into a loop, and the sequence ends; 8/2=4, 4/2=2, 2/2=1, 1*3+1=4... The conjecture states that every (positive) integer will eventually reach the loop. To prove the conjecture wrong, you will need to find a (positive) integer that either shoots off to infinity, or forms its own loop. NOTE: This is for testing numbers with the Collatz conjecture (although huge numbers may break the list maximum of 200,000 (and break the system generally), invalid values (not numbers, numbers with spaces, zero, etc.) won't work). Negative numbers work, although the unique negative loops break. So, although you may think you've proven the conjecture wrong by entering in a 100-digit number, it's probably just because it broke. v1.0 - Initial version. v1.01 - Added 'total_steps' (how many steps it took to reach one v1.1 - Added a thumbnail v1.11 - Added 'highest_step' (highest number reached in the process) v1.12 - Improved the game by limiting to one sprite v1.13 - Added a subtle biassed advertisement v1.14 - Tweaked and added new advertisement v1.15 - Removed advertisement?
Luther Collatz - Creating the Collatz conjecture