题目挺简单的,记一个结论。对一个数做如下变换,if (x为奇数) x = 3*x+1; else x /= 2。一定会最终变为1。
Project Euler 14(结论)
原文:http://www.cnblogs.com/plumrain/p/project_euler_14.html