Start with a number n > 1. Find the number of steps it takes to reach one using the following process: If n is even, divide it by 2. If n is odd, multiply it by 3 and add 1.
Start with a number n > 1. Find the number of steps it takes to reach one using the following process: If n is even, divide it by 2. If n is odd, multiply it by 3 and add 1. The program is a static command line program that shows the user how this classical alghorithm works.
- NO DEPENDENCIES REQUIRED!!!
- No real install needed, just make sure you have the bash terminal updated
sudo apt update
sudo apt upgrade
sudo apt-get install node
- Run the program like any other common bash script.
node cconjecture.js
Common problems or issues are that you are not using an authorized user and need to switch to root.
sudo node cconjecture.js
Contributors names and contact info
Christopher Hyatt (me)
- 0.2
- Various bug fixes and optimizations
- See commit change or See release history
- 0.1
- Initial Release
This project is licensed under the [GNU Privacy v3] License - see the LICENSE.md file for details
Inspiration taken from a list of basic programs to make in any language that I have in a random text file of ideas.