mznet's 3n+1 code