The following iterative sequence is defined for the set of positive integers:
-
$n \to n/2$ ($n$ is even) -
$n \to 3n + 1$ ($n$ is odd)
Using the rule above and starting with
It can be seen that this sequence (starting at
Which starting number, under one million, produces the longest chain?
NOTE: Once the chain starts the terms are allowed to go above one million.
Published: | Friday, 5th April 2002, 12:00 pm |
Difficulty rating: | 5% |
Overview (PDF): | problem 14 |
Forum problem: | problem 14 |