Skip to content

Script provides Collatz conjecture numbers graph for a given starting number

License

Notifications You must be signed in to change notification settings

norbert-acedanski/collatz-conjecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

colatz-conjecture

About The Project

Script provides Collatz conjecture / 3n + 1 / Hillstone numbers graph for a given starting number.

Built With

Python 3.9.10

Getting started

Requirements

All required packages in requirements.txt file. To install all required packages, type:

pip install -r requirements.txt

in the terminal.

Working with colatz-conjecture:

  1. Run the script.
  2. Enter a whole number not equal to 0.
  3. Script should generate graph of numbers and print number of steps and maximum number in the terminal.

Usage

Allows you to visualize the path of numbers for 3n + 1 problem.

Licence

Distributed under the MIT License. See LICENSE file for more information.