Here is one again a very intricate problem from Project Euler. It has no solution sheet as oppose to the other problems at the site. Therefore there is no consensus on the best solution.

Below is the problem: (I really suggest you to observe some of the example sequences. It has really interesting behaviours. π )

The following iterative sequence is defined for the set of positive integers:

nn/2 (nis even)

n3n+ 1 (nis odd)Using the rule above and starting with 13, we generate the following sequence: Continue Reading