this project calculates whether a number (n) will end in 4,2,1 if you apply these rules 1. if n is even, divide it by 2 2. if n is odd multiply n by 3 and add 1 this program can be used to check a specific number or check many numbers ranging from 1- infinity. there is no proof that all numbers end in 4,2,1 but from this program we can tell that all integers up to 45 million (so far) end in a cycle of 4,2,1!
based on a worksheet in math class scripting by me