Computation and Programming2024Project – Playing with Hailstone NumbersThe project has two parts:
- Building a program that allows the user to explore some features of the number sequencesrelated to the Collatz Conjecture.
- The implementation of a simple game related to the Collatz conjecture.The Collatz ConjectureThe Collatz Conjecture (named after Lothar Collatz, who introduced it in 1937), also known as the 3x+1 problem, states that, starting with any positive integer, x,andapplying two simple operations (if thenumber is even, divide it by 2; if the number is odd, multiply it by 3 and add 1), number 1 will eventuallybe reached.In a more rigorous way, we can define the Collatz function, C, as: