Working collatz for UVa