Script provides Collatz conjecture / 3n + 1 / Hillstone numbers graph for a given starting number.
Python 3.9.10
All required packages in requirements.txt file. To install all required packages, type:
pip install -r requirements.txt
in the terminal.
- Run the script.
- Enter a whole number not equal to 0.
- Script should generate graph of numbers and print number of steps and maximum number in the terminal.
Allows you to visualize the path of numbers for 3n + 1 problem.
Distributed under the MIT License. See LICENSE file for more information.