The Collatz Conjecture: A Problem You Can State in Three Lines and Nobody Can Solve
Prerequisite:Why You Cannot Divide by Zero: Granting 0 a Reciprocal Collapses the Number System to a Point
0. Key points
Section titled “0. Key points”- The rule takes only two lines. Given a natural number , replace it by if it is even and by if it is odd. Repeat, and you will always reach — that is the Collatz conjecture, open since it was posed in the 1930s.
- Small numbers drop to almost at once. But starting from takes steps and the orbit climbs as high as along the way. This single example teaches us that “simple” is not the same as “easy”.
- It is not true that nothing is known. Statements such as “no cycle containing exactly one or exactly two odd numbers exists apart from the trivial one” and “at least three quarters of all natural numbers fall below their starting value within three steps” are proved in full in this article.
- The reason the conjecture is believed to be true is a probabilistic estimate: on average each step shrinks the number by a factor of . That, however, is not a proof.
- Changing to produces a counterexample (). A correct proof must therefore be delicate enough to distinguish "" from "", and that is the central obstacle.
1. Motivation: an open problem whose rules fit in three lines
Section titled “1. Motivation: an open problem whose rules fit in three lines”With most open problems in mathematics, merely understanding the statement is already work. To explain the Riemann hypothesis to someone, we must begin with complex numbers and the zeta function.
The Collatz conjecture is not like that. Here is the entire rule.
- Pick a natural number.
- If it is even, divide it by . If it is odd, multiply by and add .
- Return to step 2.
And here is the conjecture: whatever natural number we start from, we eventually reach .
A child can play this game. Let us start from .
We land after steps. Once at the sequence cycles forever, so we stop there.
The problem is attributed to the German mathematician Lothar Collatz, who is said to have posed it around 1937. Since then it has acquired many names — the Kakutani problem after Shizuo Kakutani, and associations with Ulam, Hasse and Thwaites — and it is also called the Syracuse problem or the problem. A profusion of names means a profusion of people independently obsessed with it.
Paul Erdős is reported to have offered a prize of 500 dollars for the problem while remarking, in effect, that mathematics is not yet ripe for questions of this kind. In 2021 a Japanese company made news by offering a prize of 120 million yen. It is still unsolved.
2. Preliminaries: the Collatz map, orbits, stopping time
Section titled “2. Preliminaries: the Collatz map, orbits, stopping time”To turn the game into mathematics we fix some vocabulary. Throughout, , so is excluded.
Definition 2.1(The Collatz map)
Define a map by
We call the Collatz map.
When is odd, is necessarily even, so an odd number is always followed by an even one. It is therefore convenient to package “apply and immediately halve” into a single step.
Definition 2.2(The shortcut Collatz map)
Define a map by
We call the shortcut Collatz map.
Each step of is one or two steps of , so reaching under and reaching under are equivalent. In proofs we use whichever makes the computation shorter.
Definition 2.3(Orbit, stopping time, cycle)
For , the sequence is called the orbit of .
The quantity
is called the stopping time of (if no such exists we set ).
Furthermore, if there is a with , the finite set containing is called a cycle.
The stopping time answers “how many steps until we fall below the starting value?”. It is easier to handle than the number of steps needed to reach (the total stopping time), and as we shall see it already suffices to restate the conjecture.
flowchart LR A["natural number n"] --> B{"is n even?"} B -- "yes" --> C["replace by n / 2"] B -- "no" --> D["replace by 3n + 1"] C --> E{"is n = 1?"} D --> E E -- "no" --> A E -- "yes" --> F["stop"]
3. Getting our hands dirty first
Section titled “3. Getting our hands dirty first”Before theory, let us look at some numbers.
Example 3.1(A report card for 1 through 12)
For each we list the number of steps needed to reach (the total stopping time) and the maximum value attained along the orbit.
| steps | orbit maximum | |
|---|---|---|
| 1 | 0 | 1 |
| 2 | 1 | 2 |
| 3 | 7 | 16 |
| 4 | 2 | 4 |
| 5 | 5 | 16 |
| 6 | 8 | 16 |
| 7 | 16 | 52 |
| 8 | 3 | 8 |
| 9 | 19 | 52 |
| 10 | 6 | 16 |
| 11 | 14 | 52 |
| 12 | 9 | 16 |
For instance the orbit of is
which indeed takes 16 steps and peaks at . Neighbouring values behave completely differently: and take and steps, and take and . This irregularity is the essence of the problem.
Example 3.2(27, the troublemaker)
Starting from , the orbit sets off like this.
It falls, then climbs again, over and over; it reaches a maximum of and finally lands on after steps. The starting point has two digits. It climbs to four.
Its neighbours are tame: finishes in steps, in . Only stands out, and the intuition that “a small number should take few steps” is destroyed here once and for all.
Tracing orbits by hand is laborious, so let us hand the work to a program. The following code uses only the standard library.
def total_stopping_time(n): """Return the number of steps for n to reach 1 and the orbit maximum.""" steps, peak = 0, n while n != 1: n = n // 2 if n % 2 == 0 else 3 * n + 1 peak = max(peak, n) steps += 1 return steps, peak
print(total_stopping_time(27)) # (111, 9232)print(max(range(1, 10**6), key=lambda n: total_stopping_time(n)[0]))# 837799 (the number below one million with the most steps: 524)The last line returns , whose orbit takes steps. Is “at most steps among all numbers below one million” surprisingly small? Or is it ” steps of wandering with no guarantee of ever landing”? Both reactions are correct, and that is part of what makes this problem delightful.
4. What can be proved straight from the definition
Section titled “4. What can be proved straight from the definition”It is not the case that nothing is known. Here are three facts we can prove with pencil and paper.
Theorem 4.1(Powers of two are well behaved)
For every integer we have ; that is, reaches in exactly steps.
Proof(Theorem 4.1)
We argue by induction on . For we have and , so the claim holds.
Assume the claim for . Since is even, Definition 2.1 gives . Hence
where the last equality is the induction hypothesis. This proves the claim for .
So drop in a straight line. Numbers as docile as these are not the source of the difficulty.
Proposition 4.2(Numbers congruent to 1 mod 4 shrink within three steps)
If is even then . If satisfies then , and moreover
Consequently the proportion (in the sense of natural density) of natural numbers with is at least .
Proof(Proposition 4.2)
If is even then Definition 2.1 gives , so .
Next let with , and write with . Since is odd,
This is even, so , which is again even, so . Now
which confirms the stated identity.
Let us check that . First, follows from . On the other hand no shrinkage occurs at the two intermediate steps: indeed (because ) and (because ). Hence the first time we drop below is exactly .
Finally we count densities. Among the natural numbers from to , roughly are even and roughly are congruent to modulo , and the two families do not overlap. So at least about of them satisfy , and letting gives a proportion of at least .
This computation suggests a thought: if we work with finer residues, perhaps we can catch more values of . That is exactly what happens. For the congruence notation , used here and below, see the definition of congruence(Definition 3.2)[Why Mathematics Is Hard].
Example 4.3(Numbers congruent to 3 mod 16 also fall)
Let , that is, with . Apply six times.
The final value is smaller than (the difference is ), so . The numbers with make up of all natural numbers, and they overlap neither the even numbers nor the numbers caught by Proposition 4.2 (a number that is is an odd number that is ). Together the proportion rises to at least .
Pushing this procedure through modulo for every yields the following theorem.
Terras (R. Terras, 1976) proved that the set of with has natural density . In other words, “almost every natural number does eventually fall below itself” is known. This is the argument of Proposition 4.2 and Example 4.3 carried out modulo and pushed to . Note, however, that density does not mean “finitely many exceptions”: an infinite set of exceptions can still have density .
That it suffices to control stopping times is justified by the following reformulation.
Theorem 4.5(Reformulation via stopping time)
The following two statements are equivalent.
(a) For every the orbit of contains (the Collatz conjecture).
(b) For every we have .
Proof(Theorem 4.5)
(a) (b). Let . By (a) there is a with . Since we must have , and . Thus at least one time at which the orbit drops below exists, and the least such time is finite.
(b) (a). We prove “the orbit of contains ” by strong induction on .
For the first term of the orbit is , so the claim holds.
Let and assume the claim for every natural number smaller than . By (b) the number is finite; put , so that and . By the induction hypothesis the orbit of contains , so for some . Then
so the orbit of contains as well.
5. The danger of going round in circles: do cycles exist?
Section titled “5. The danger of going round in circles: do cycles exist?”If the conjecture fails, it can fail in only two ways.
- The orbit of some enters a cycle not containing .
- The orbit of some grows without bound (diverges to positive infinity(Definition 5.2)[Why You Cannot Divide by Zero]).
About the first possibility, a good deal can be proved.
Lemma 5.1(Every cycle contains an odd number)
Every cycle of contains at least one odd number.
Proof(Lemma 5.1)
Suppose a cycle consists entirely of even numbers. Then by Definition 2.1 each term is half the previous one, so . By the definition of a cycle, , whence , that is, . Since we have , so , contradicting .
List the odd numbers occurring in a cycle in order as (pairwise distinct). If is odd then is even, and we keep halving as long as the result is even until we arrive at the next odd number (reading the index after as ). Writing for the number of halvings, we obtain
This relation is the starting point for the study of cycles.
Theorem 5.2(Cycles with at most two odd numbers)
The only cycle of containing exactly one or exactly two odd numbers is .
Proof(Theorem 5.2)
By Lemma 5.1 there is at least one odd number. We use the relation derived above.
Case of one odd number. If we read and get , that is,
Both and are integers with product , and , so and , i.e. and . The cycle is then , which as a set is .
Case of two odd numbers. Suppose distinct odd numbers satisfy
Multiplying the two equations and setting gives
and expanding the left-hand side,
that is,
The right-hand side is positive, hence so is the left, giving . The smallest power of exceeding is , so and therefore . Since ,
Without loss of generality assume (they are distinct, so equality cannot occur).
If , the inequality becomes , that is, and so . This contradicts .
If (the next odd number after is ), we bound the left-hand side from below by . On the other hand gives (since ). Therefore
contradicting the inequality above.
Hence no cycle with two odd numbers exists, and the only cycle is .
The argument becomes drastically harder as the number of odd numbers grows, but research proceeds by sharpening the same relation. It is now known that any cycle not containing would have to be far longer than a billion steps.
flowchart LR n12["12"] --> n6["6"] --> n3["3"] --> n10["10"] --> n5["5"] --> n16["16"] --> n8["8"] --> n4["4"] --> n2["2"] --> n1["1"] n80["80"] --> n40["40"] --> n20["20"] --> n10 n13["13"] --> n40 n21["21"] --> n64["64"] --> n32["32"] --> n16 n128["128"] --> n64
If we extend the branches of this picture indefinitely, does every natural number appear in this single tree? That is the Collatz conjecture. Looking at the diagram, receives two inflows, from and from , and receives two, from and from . Every even number receives , and when it also receives the odd number . The tree spreads upward exponentially (for a vivid illustration of how fast exponential growth is, see the story of folding paper 42 times(Example 6.1)[Why Mathematics Is Hard]), so checking whether it exhausts everything is far harder than the picture makes it look.
6. Why is it believed to be true?
Section titled “6. Why is it believed to be true?”There is no proof, yet most mathematicians believe the Collatz conjecture. The reason is the following estimate.
Applying the shortcut map Definition 2.2 to an odd number gives , while applying it to an even number gives . Suppose we assume that “the parities of the numbers appearing along an orbit are as random as coin flips”. Then the geometric mean of the multiplier per step is
which is less than . So a typical orbit, rising and falling, should on average shrink by about 13% per step. If it keeps shrinking it must eventually land on a small number, and once it does, the induction of Theorem 4.5 takes over.
The estimate even predicts the number of steps. Working with , each odd number is followed on average by two halvings (the probability that is exactly divisible by is , so the expected value is ), so with odd numbers and even ones the overall multiplier is . This equals when , so the total number of steps is predicted to be . For around one million this gives steps, and the measured values do cluster near there. Not a bad prediction.
The best results that have been proved lie in the direction of making this probabilistic intuition rigorous. In 2019 Terence Tao showed that for any function with , the orbit of almost every attains a value below . So we have reached “almost every does at some point become very small”. Between that and “every reaches ” a deep gulf remains.
7. Why it is hard: the cruel counterexample 3n−1
Section titled “7. Why it is hard: the cruel counterexample 3n−1”Here is the sharpest illustration of why naive strategies fail. Change the in the rule to .
Proposition 7.1(The 3n−1 version has a nontrivial cycle)
Define by if is even and if is odd. Then, besides , the map has the cycle
Proof(Proposition 7.1)
We compute step by step. Since is odd, . Since is even, . Since is odd, . Since is even, , and since is even, . Hence , so is a cycle. It does not contain , so it differs from .
Note also that and , so is a cycle too.
This is where the difficulty bites. The probabilistic estimate of Section 6 is completely unchanged if we replace by (since ). In other words, the argument “it shrinks on average, hence it falls to ” reaches the same conclusion for a problem that has a counterexample. As it stands, therefore, this strategy can never constitute a proof.
Example 7.2(Allowing negative numbers makes matters worse)
The cycle above is not the only one for . The sequence
is also a cycle (verify each step exactly as in Proposition 7.1).
Moreover, under the substitution the map becomes the original Collatz map . So if we extend to the negative integers, three cycles appear: , then , and finally a cycle of length starting from . The formula defining is the same on both sides of zero, and yet on the positive side there is (conjecturally) only one cycle. No one has found an explanation for this asymmetry.
There is one more warning, from a deeper source. In 1972 John Conway considered a family of maps generalizing the Collatz map, in which a separate linear expression is applied according to the residue of modulo , and showed that no general algorithm can decide whether a given starting point reaches (the question is algorithmically undecidable). This does not say that the Collatz conjecture itself is undecidable, but the fact that “there is no universal method for problems of this kind” has been proved is a weighty one.
Remark 7.3(The state of computational verification)
Computer verification has confirmed that every natural number up to reaches (Barina, 2021). That is an enormous range, and yet it is nothing compared with infinity. Indeed, if the smallest counterexample were lurking somewhere around , the present verification would exclude it not at all. That no amount of finite checking amounts to a proof is shown bluntly by the formula that works 40 times and fails on the 41st(Example 4.2)[Why Mathematics Is Hard].
On the theoretical side, it has been shown, for example, that the number of natural numbers up to that reach is at least (Krasikov–Lagarias, 2003). Since is far smaller than , this shows how difficult it is even to count “almost all” of them.
8. Exercises
Section titled “8. Exercises”Exercise 8.1Easy
Let be the map of Definition 2.1. Write down the orbit of , and find the number of steps needed to reach together with the orbit maximum.
Solution
We compute in order.
Counting as term number , the value is term number . Hence the number of steps is . The maximum is .
In the table of Example 3.1, took steps, and the orbit above falls to after three steps: , in agreement. This “once you merge into a number you have already computed, there is no need to recompute” is the basic technique for evaluating Collatz sequences quickly.
Exercise 8.2Standard
Let be odd. Check that is odd as well, and then prove
What does this mean? Verify it in the case .
Solution
If is odd then is even, so is odd. Hence
This is even, so , which is again even, so
On the other hand is odd, so . The two agree.
In other words, the orbit of merges into the orbit of after three steps.
For we have . Indeed , and , so the orbits do merge. This fact corresponds to the way flowed through into in the diagram after Theorem 5.2. Since for an odd the numbers all merge at the same place, the Collatz tree contains infinitely many “look-alike” branches.
Exercise 8.3Standard
Show that a number with does not become smaller than within the same six steps used in Example 4.3.
Solution
Put with and compute. Since is odd,
This is even, so , which is odd, so ; this is even, so , again even, so , which is odd, so
Since (the difference is ), no shrinkage has occurred in six steps. That all the intermediate values also exceed is checked in the same way one by one, for instance (difference ).
Thus the procedure of Example 4.3 succeeds for some residue classes and fails for others, and the failures must be re-examined by splitting further, modulo , modulo , and so on. Terras’s theorem in Remark 4.4 asserts that if this refinement is continued indefinitely, the proportion of the ones left behind tends to .
Exercise 8.4Hard
Let be the shortcut Collatz map of Definition 2.2. Prove by induction on that for and ,
Use this to explain why numbers of the form grow considerably at first.
Solution
Case . The left-hand side is and the right-hand side is ; they agree.
Assume the claim for and prove it for . Put . Since is even (because ), is odd. Hence by Definition 2.2,
This has the form with , so the induction hypothesis applies and
This completes the induction.
Interpretation. Taking , the number becomes after shortcut steps. The multiplier is roughly , and the larger is, the more violent the growth. The probabilistic estimate of Section 6 gave “an average factor of per step”, but for numbers of this form the first steps are all odd steps, a drastic departure from the average.
For instance gives , and
climbs to in five steps (indeed ). The rampage of in Example 3.2 has the same cause: the orbit of passes through along the way. Since we can manufacture as many “numbers whose orbits happen to have consecutive odd steps” as we like, we see here another reason why probabilistic arguments alone cannot prove the conjecture.
References
Section titled “References”- J. C. Lagarias, “The 3x+1 problem and its generalizations”, American Mathematical Monthly 92 (1985), 3–23. — The standard introductory survey, covering the history and the main results.
- J. C. Lagarias (ed.), The Ultimate Challenge: The 3x+1 Problem, American Mathematical Society, 2010. — A collection including the survey above. The first place to look for the current state of the art.
- R. Terras, “A stopping time problem on the positive integers”, Acta Arithmetica 30 (1976), 241–252. — The original paper proving that the set of natural numbers with finite stopping time has density .
- I. Krasikov and J. C. Lagarias, “Bounds for the 3x+1 problem using difference inequalities”, Acta Arithmetica 109 (2003). — A lower bound for the count of numbers up to that reach .
- T. Tao, “Almost all orbits of the Collatz map attain almost bounded values”, arXiv:1909.03562 (2019). — The strongest result currently known, making the probabilistic intuition rigorous.
- D. Barina, “Convergence verification of the Collatz problem”, The Journal of Supercomputing 77 (2021). — Machine verification up to .
- J. H. Conway, “Unpredictable iterations”, Proceedings of the 1972 Number Theory Conference, University of Colorado, 1972. — Undecidability of generalized Collatz maps.
Appendix: Hints for Doing It Yourself
Section titled “Appendix: Hints for Doing It Yourself”A warning for your own experiments. The code in Section 3 is a naive implementation and becomes slow somewhere past . The standard way to speed it up is memoization — storing the step count of each number already computed in a dictionary — as mentioned in the solution to Exercise 8.1. The dictionary grows huge, however, so it is more memory-efficient to stop as soon as the orbit falls below (that is, to compute only the stopping time and rely on Theorem 4.5).
Do not celebrate too soon. If you think you have found a counterexample, suspect integer overflow first. The 64-bit integers of C and Java overflow around . Just as climbed to , Collatz orbits rise many digits above their starting point, so testing numbers around will overflow along the way with ease. Python’s integers are automatically arbitrary-precision, so on this point you are safe.
For those who still want to try. As we have seen in this article, the naive probabilistic argument cannot exclude the version (Proposition 7.1), and arguments by residue classes cannot get past the barrier of Remark 4.4. A new proof will have to capture the special role that the term plays in the world of the positive integers. What that role is, nobody yet knows. On why mathematical problems become hard, see also Why mathematics is hard. For a contrasting example of a problem settled with heavy reliance on computation, see The four colour theorem (Theorem 5.1[The Four Color Theorem]), where the decisive point was the reduction to finitely many cases (unavoidable sets and reducible configurations(Definition 5.3)[The Four Color Theorem]). For the Collatz conjecture, no such means of finitization has yet been found.
Report an error in this article ・Operated by: Mugen Giken LLC ・Pricing ・Terms ・Legal notice
© 2026 夢現技研合同会社 ・Feeding the text to an LLM is welcome. Code samples are MIT licensed.