SattikBhaumik / Collatz-Conjecture

Input a number.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collatz-Conjecture

Input a number. The code will divide the number in case it's even or use the 3n+1 where 'n' is the number. It will continue until the number reaches 1 when the iteration will stop, returning a plot the output value (the number) vs. input value (iterations).

About

Input a number.

License:MIT License


Languages

Language:Jupyter Notebook 96.5%Language:Python 3.5%