100. The 3n + 1 Problem – Solution http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=36 View the code on Gist.