Skip to content

The Collatz conjecture is a conjecture in mathematics that concerns sequences defined as follows: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half of the previous term. If the previous term is odd, the next term is 3 times the previous term pl…

Notifications You must be signed in to change notification settings

AD-2409/CollatzConjecture

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

CollatzConjecture

The Collatz conjecture is a conjecture in mathematics that concerns sequences defined as follows:

  1. Start with any positive integer n.

  2. Then each term is obtained from the previous term as follows: a. If the previous term is even, the next term is one half of the previous term. b. If the previous term is odd, the next term is 3 times the previous term plus 1. c. The conjecture is that no matter what value of n, the sequence will always reach 1.

About

The Collatz conjecture is a conjecture in mathematics that concerns sequences defined as follows: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half of the previous term. If the previous term is odd, the next term is 3 times the previous term pl…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%