Press the Green Flag to start, Enter a number, any kind like 91, 36.26, 9999999999, 153, 0.0000001, 333. (Do not enter anything else but a number, decimals are okay. if you do enter anything else, you won't get a thing) Press the "Space" key on your keyboard to hide and show values/variables. If you don't want to read the long notes and credits, Click the "See inside" button to make some fun changes!
The Collatz sequence. It takes a natural number and if that number is even, divides it into half. If the number is odd, it multiplies the number by three and adds one to the result. Hence, it is also called a 3x+1 problem. And when this process occurs iteratively over the result, we are supposed to end up with the number 1. The Collatz sequence goes by two other names – The hailstone sequence and the 3x+1 conjecture, introduced by Lothar Collatz in 1937. It checks if a natural number can be transformed into the number 1, by following two operations. If it is even you divide the number by 2, if it is odd, you multiply the number by 3 and add 1. You keep on doing this until the number is one. This project is here to do that for you, enter as large of a number, and if it is a part of a list of numbers, you can see it in the graph in the project space. To learn more go to: https://www.askpython.com/python/examples/collatz-conjecture# Click the "See inside" button to make some fun changes!