The Collatz conjecture is one of the most famous unsolved problems in mathematics. The conjecture asks whether repeating two simple arithmetic operations will eventually transform every positive integer into 1. It concerns sequences of integers in which each term is obtained from the previous term as follows: if a term is even, the next term is one half of it. If a term is odd, the next term is 3 times the previous term plus 1. The conjecture is that these sequences always reach 1, no matter which positive integer is chosen to start the sequence. The conjecture has been shown to hold for all positive integers up to 2.36×1021, but no general proof has been found. It is named after the mathematician Lothar Collatz, who introduced the idea in 1937, two years after receiving his doctorate. The sequence of numbers involved is sometimes referred to as the hailstone sequence, hailstone numbers or hailstone numerals (because the values are usually subject to multiple descents and ascents like hailstones in a cloud), or as wondrous numbers. Paul Erdős said about the Collatz conjecture: "Mathematics may not be ready for such problems." Jeffrey Lagarias stated in 2010 that the Collatz conjecture "is an extraordinarily difficult problem, completely out of reach of present day mathematics". However, though the Collatz conjecture itself remains open, efforts to solve the problem have led to new techniques and many partial results.
Statement of the problem
Consider the following operation on an arbitrary positive integer:
If the number is even, divide it by two. If the number is odd, triple it and add one. In modular arithmetic notation, define the function f as follows: f(n)={n/2if n≡0(mod2),3n+1if n≡1(mod2). Now form a sequence by performing this operation repeatedly, beginning with any positive integer, and taking the result at each step as the input at the next. In notation: ai={nfor i=0,f(ai−1)for i>0 (that is: ai is the value of f applied to n recursively i times; ai = f i(n)). The Collatz conjecture is: This process will eventually reach the number 1, regardless of which positive integer is chosen initially. That is, for each n, there is some i with ai=1. If the conjecture is false, it can only be because there is some starting number which gives rise to a sequence that does not contain 1. Such a sequence would either enter a repeating cycle that excludes 1, or increase without bound. No such sequence has been found. The smallest i such that ai < a0 (i.e., how many iterations to reach a number less than the starting number) is called the stopping time of n. Similarly, the smallest k such that ak = 1 (i.e., how many iterations to reach 1) is called the total stopping time of n. If one of the indexes i or k does not exist, we say that the stopping time or the total stopping time, respectively, is infinite. The Collatz conjecture asserts that the total stopping time of every n is finite. It is also equivalent to saying that every n ≥ 2 has a finite stopping time. Since 3n + 1 is even whenever n is odd, one may instead use the "shortcut" form of the Collatz function: f(n)={n2if n≡0(mod2),3n+12if n≡1(mod2). This definition yields smaller values for the stopping time and total stopping time without changing the overall dynamics of the process.
Empirical data For instance, starting with n = 12 and applying the function f without "shortcut", one gets the sequence 12, 6, 3, 10, 5, 16, 8, 4, 2, 1 . The number n = 19 takes longer to reach 1: 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 . The sequence for n = 27, listed and graphed below, takes 111 steps (41 steps through odd numbers, in bold), climbing as high as 9232 before descending to 1.
27, 82, 41, 124, 62, 31, 94, 47, 142, 71, 214, 107, 322, 161, 484, 242, 121, 364, 182, 91, 274, 137, 412, 206, 103, 310, 155, 466, 233, 700, 350, 175, 526, 263, 790, 395, 1186, 593, 1780, 890, 445, 1336, 668, 334, 167, 502, 251, 754, 377, 1132, 566, 283, 850, 425, 1276, 638, 319, 958, 479, 1438, 719, 2158, 1079, 3238, 1619, 4858, 2429, 7288, 3644, 1822, 911, 2734, 1367, 4102, 2051, 6154, 3077, 9232, 4616, 2308, 1154, 577, 1732, 866, 433, 1300, 650, 325, 976, 488, 244, 122, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4, 2, 1 (sequence A008884 in the OEIS)
Numbers with a total stopping time longer than that of any smaller starting value form a sequence beginning with:
1, 2, 3, 6, 7, 9, 18, 25, 27, 54, 73, 97, 129, 171, 231, 313, 327, 649, 703, 871, 1161, 2223, 2463, 2919, 3711, 6171, ... (sequence A006877 in the OEIS). The starting values whose maximum trajectory point is greater than that of any smaller starting value are as follows:
1, 2, 3, 7, 15, 27, 255, 447, 639, 703, 1819, 4255, 4591, 9663, 20895, 26623, 31911, 60975, 77671, 113383, 138367, 159487, 270271, 665215, 704511, ... (sequence A006884 in the OEIS) Number of steps for n to reach 1 are
0, 1, 7, 2, 5, 8, 16, 3, 19, 6, 14, 9, 9, 17, 17, 4, 12, 20, 20, 7, 7, 15, 15, 10, 23, 10, 111, 18, 18, 18, 106, 5, 26, 13, 13, 21, 21, 21, 34, 8, 109, 8, 29, 16, 16, 16, 104, 11, 24, 24, ... (sequence A006577 in the OEIS) The starting value having the largest total stopping time while being
less than 10 is 9, which has 19 steps, less than 100 is 97, which has 118 steps, less than 1000 is 871, which has 178 steps, less than 104 is 6171, which has 261 steps, less than 105 is 77031, which has 350 steps, less than 106 is 837799, which has 524 steps, less than 107 is 8400511, which has 685 steps, less than 108 is 63728127, which has 949 steps, less than 109 is 670617279, which has 986 steps, less than 1010 is 9780657630, which has 1132 steps, less than 1011 is 75128138247, which has 1228 steps, less than 1012 is 989345275647, which has 1348 steps. (sequence A284668 in the OEIS) These numbers are the lowest ones with the indicated step count, but not necessarily the only ones below the given limit. As an example, 9780657631 has 1132 steps, as does 9780657630. The starting values having the smallest total stopping time with respect to their number of digits (in base 2) are the powers of two, since 2n is halved n times to reach 1, and it is never increased.
Visualizations
Supporting arguments Although the conjecture has not been proven, most mathematicians who have looked into the problem think the conjecture is true because experimental evidence and heuristic arguments support it.
… excerpt ends here. Continue reading the full article.





