Skip to content

A Python Script to generate number sequences using the Collatz conjecture as its basis.

Notifications You must be signed in to change notification settings

strdst1/Generalized-Collatz-Conjecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Generalized-Collatz-Conjecture

A Python Script to generate number sequences using the Collatz conjecture as its basis. The Algorithm is as follows: Given a positive integer x, perform a * x + b where a, b are also positive odd integers, perform x/2 if x is even. Do this for every new a*x+b generated until a number gets repeated. The Program also plots these hailstone numbers on a graph using Matplotlib. Different graphs for different branches seem to show that each sequence returns a finite cycle and a finite numbe of cycles.

About

A Python Script to generate number sequences using the Collatz conjecture as its basis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages