Skip to content

Visualization of the Collatz Hypothesis (3n + 1 dilemma, Syracuse problem)

Notifications You must be signed in to change notification settings

niciki/Collatz_conjecture_visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Collatz conjecture visualization

One_number.py

It is required to enter a number for which it is necessary to perform calculations according to the sequence of the Collatz hypothesis. After executing the program, a graph will be received.

Example for number 27:

image

Few_numbers.py

The lower and upper limits of the required interval are fed to the input. The program will display the dependence of the i-th number on the number of steps required (Blue). Orange graph is the sorted number of attempts for all numbers from the given interval. After executing the program, a graph is drawn, under which information is displayed about the number for which the minimum number of attempts must be made and about the number for which the maximum number of attempts must be made.

Example for interval [23, 1000]:

image

About

Visualization of the Collatz Hypothesis (3n + 1 dilemma, Syracuse problem)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages