See [http://en.wikipedia.org/wiki/Collatz_conjecture|the obvious place] for background.