Verify the Collatz conjecture described in the preamble to Exercise for all integers n not exceeding 10,000.
Exercise
Let n be a positive integer. We define
We then form the sequence obtained by iterating T: n. T(n), T(T(n), T(T(T(n))). … For instance, starting with n = 7, we have 7, 11, 17, 26, 13, 20, 10, 5, 8, 4, 2, 1, 2, 1, 2, 1, …. A well-known conjecture, sometimes called the Collar conjecture, asserts that the sequence obtained by iterating T always reaches the integer 1 no matter which positive integer n begins the sequence.
Find the sequence obtained by iterating T starting with n = 39.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.