UVa 3n+1