****************************************************************************** Collatz Conjecture V. 1.0 ****************************************************************************** To adjust parameters: Press a to scale plot. Press n to show list of actual graphed values. Feel free to leave suggestions for improvement in the comments!
Take any natural number (for ex. 5). If the number is even, divide it by 2. If the number is odd, multiply it by 3 and add 1. Keep repeating this until you reach 1. You will always reach 1. This program repeats the above steps and plots its progress. Visit http://en.wikipedia.org/wiki/Collatz_conjecture for more information.