Instructions: start with a number. If the number is odd then multiply by 3 and add 1.
If the number if even the divide by 2.
Then start again with what ever the answer was.
For some reason you always seem to end up in a 4,2,1 loop
This page will help you work it out.