norbert-acedanski / collatz-conjecture

Script provides Collatz conjecture numbers graph for a given starting number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Script provides Collatz conjecture numbers graph for a given starting number

License:MIT License


Languages

Language:Python 100.0%