Skip to content

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

Raw
  • The rule takes only two lines. Given a natural number nn, replace it by n/2n/2 if it is even and by 3n+13n+1 if it is odd. Repeat, and you will always reach 11 — that is the Collatz conjecture, open since it was posed in the 1930s.
  • Small numbers drop to 11 almost at once. But starting from 2727 takes 111111 steps and the orbit climbs as high as 92329232 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 3/40.866\sqrt{3/4} \approx 0.866. That, however, is not a proof.
  • Changing 3n+13n+1 to 3n13n-1 produces a counterexample (5147201055 \to 14 \to 7 \to 20 \to 10 \to 5). A correct proof must therefore be delicate enough to distinguish "+1+1" from "1-1", 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.

  1. Pick a natural number.
  2. If it is even, divide it by 22. If it is odd, multiply by 33 and add 11.
  3. Return to step 2.

And here is the conjecture: whatever natural number we start from, we eventually reach 11.

A child can play this game. Let us start from 66.

631051684216 \to 3 \to 10 \to 5 \to 16 \to 8 \to 4 \to 2 \to 1

We land after 88 steps. Once at 11 the sequence cycles 14211 \to 4 \to 2 \to 1 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 3n+13n+1 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, N={1,2,3,}\mathbb{N} = \{1, 2, 3, \ldots\}, so 00 is excluded.

Definition 2.1The Collatz map

Define a map C:NNC : \mathbb{N} \to \mathbb{N} by

C(n)={n/2(n even)3n+1(n odd)C(n) = \begin{cases} n/2 & (n \text{ even}) \\ 3n+1 & (n \text{ odd}) \end{cases}

We call CC the Collatz map.

When nn is odd, 3n+13n+1 is necessarily even, so an odd number is always followed by an even one. It is therefore convenient to package “apply 3n+13n+1 and immediately halve” into a single step.

Definition 2.2The shortcut Collatz map

Define a map T:NNT : \mathbb{N} \to \mathbb{N} by

T(n)={n/2(n even)(3n+1)/2(n odd)T(n) = \begin{cases} n/2 & (n \text{ even}) \\ (3n+1)/2 & (n \text{ odd}) \end{cases}

We call TT the shortcut Collatz map.

Each step of TT is one or two steps of CC, so reaching 11 under CC and reaching 11 under TT are equivalent. In proofs we use whichever makes the computation shorter.

Definition 2.3Orbit, stopping time, cycle

For nNn \in \mathbb{N}, the sequence n,C(n),C2(n),n,\, C(n),\, C^2(n),\, \ldots is called the orbit of nn.

The quantity

σ(n)=min{k1:Ck(n)<n}\sigma(n) = \min\{\, k \ge 1 : C^k(n) < n \,\}

is called the stopping time of nn (if no such kk exists we set σ(n)=\sigma(n) = \infty).

Furthermore, if there is a k1k \ge 1 with Ck(m)=mC^k(m) = m, the finite set {m,C(m),,Ck1(m)}\{m, C(m), \ldots, C^{k-1}(m)\} containing mm 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 11 (the total stopping time), and as we shall see it already suffices to restate the conjecture.

flowchart LR
A["natural number n"] --> B&#123;"is n even?"&#125;
B -- "yes" --> C["replace by n / 2"]
B -- "no" --> D["replace by 3n + 1"]
C --> E&#123;"is n = 1?"&#125;
D --> E
E -- "no" --> A
E -- "yes" --> F["stop"]
One step of the Collatz map

Before theory, let us look at some numbers.

Example 3.1A report card for 1 through 12

For each nn we list the number of steps needed to reach 11 (the total stopping time) and the maximum value attained along the orbit.

nnstepsorbit maximum
101
212
3716
424
5516
6816
71652
838
91952
10616
111452
12916

For instance the orbit of 77 is

72211341752261340201051684217 \to 22 \to 11 \to 34 \to 17 \to 52 \to 26 \to 13 \to 40 \to 20 \to 10 \to 5 \to 16 \to 8 \to 4 \to 2 \to 1

which indeed takes 16 steps and peaks at 5252. Neighbouring values behave completely differently: 66 and 77 take 88 and 1616 steps, 88 and 99 take 33 and 1919. This irregularity is the essence of the problem.

Example 3.227, the troublemaker

Starting from 2727, the orbit sets off like this.

278241124623194471427121410727 \to 82 \to 41 \to 124 \to 62 \to 31 \to 94 \to 47 \to 142 \to 71 \to 214 \to 107 \to \cdots

It falls, then climbs again, over and over; it reaches a maximum of 92329232 and finally lands on 11 after 111111 steps. The starting point 2727 has two digits. It climbs to four.

Its neighbours are tame: 2626 finishes in 1010 steps, 2828 in 1818. Only 2727 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 837799837799, whose orbit takes 524524 steps. Is “at most 524524 steps among all numbers below one million” surprisingly small? Or is it ”524524 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.1Powers of two are well behaved

For every integer k0k \ge 0 we have Ck(2k)=1C^k(2^k) = 1; that is, 2k2^k reaches 11 in exactly kk steps.

Proof(Theorem 4.1)

We argue by induction on kk. For k=0k = 0 we have 20=12^0 = 1 and C0(1)=1C^0(1) = 1, so the claim holds.

Assume the claim for kk. Since 2k+12^{k+1} is even, Definition 2.1 gives C(2k+1)=2k+1/2=2kC(2^{k+1}) = 2^{k+1}/2 = 2^k. Hence

Ck+1(2k+1)=Ck(C(2k+1))=Ck(2k)=1C^{k+1}(2^{k+1}) = C^{k}\bigl(C(2^{k+1})\bigr) = C^k(2^k) = 1

where the last equality is the induction hypothesis. This proves the claim for k+1k+1.

So 2,4,8,16,32,2, 4, 8, 16, 32, \ldots drop in a straight line. Numbers as docile as these are not the source of the difficulty.

Proposition 4.2Numbers congruent to 1 mod 4 shrink within three steps

If nn is even then σ(n)=1\sigma(n) = 1. If n5n \ge 5 satisfies n1(mod4)n \equiv 1 \pmod 4 then σ(n)=3\sigma(n) = 3, and moreover

C3(n)=3n+14.C^3(n) = \frac{3n+1}{4} .

Consequently the proportion (in the sense of natural density) of natural numbers with σ(n)3\sigma(n) \le 3 is at least 3/43/4.

Proof(Proposition 4.2)

If nn is even then Definition 2.1 gives C(n)=n/2<nC(n) = n/2 < n, so σ(n)=1\sigma(n) = 1.

Next let n1(mod4)n \equiv 1 \pmod 4 with n5n \ge 5, and write n=4k+1n = 4k+1 with k1k \ge 1. Since nn is odd,

C(n)=3(4k+1)+1=12k+4.C(n) = 3(4k+1)+1 = 12k+4 .

This is even, so C2(n)=6k+2C^2(n) = 6k+2, which is again even, so C3(n)=3k+1C^3(n) = 3k+1. Now

3n+14=12k+3+14=3k+1\frac{3n+1}{4} = \frac{12k+3+1}{4} = 3k+1

which confirms the stated identity.

Let us check that σ(n)=3\sigma(n) = 3. First, C3(n)=3k+1<4k+1=nC^3(n) = 3k+1 < 4k+1 = n follows from k1k \ge 1. On the other hand no shrinkage occurs at the two intermediate steps: indeed C(n)=12k+4>4k+1=nC(n) = 12k+4 > 4k+1 = n (because 8k+3>08k+3 > 0) and C2(n)=6k+2>4k+1=nC^2(n) = 6k+2 > 4k+1 = n (because 2k+1>02k+1 > 0). Hence the first time we drop below nn is exactly 33.

Finally we count densities. Among the natural numbers from 11 to NN, roughly N/2N/2 are even and roughly N/4N/4 are congruent to 11 modulo 44, and the two families do not overlap. So at least about N/2+N/4=3N/4N/2 + N/4 = 3N/4 of them satisfy σ(n)3\sigma(n) \le 3, and letting NN \to \infty gives a proportion of at least 3/43/4.

This computation suggests a thought: if we work with finer residues, perhaps we can catch more values of nn. That is exactly what happens. For the congruence notation ab(modm)a \equiv b \pmod m, used here and below, see the definition of congruence(Definition 3.2)[Why Mathematics Is Hard].

Example 4.3Numbers congruent to 3 mod 16 also fall

Let n3(mod16)n \equiv 3 \pmod{16}, that is, n=16k+3n = 16k+3 with k0k \ge 0. Apply CC six times.

16k+348k+1024k+572k+1636k+818k+49k+216k+3 \to 48k+10 \to 24k+5 \to 72k+16 \to 36k+8 \to 18k+4 \to 9k+2

The final value 9k+29k+2 is smaller than 16k+316k+3 (the difference is 7k+1>07k+1 > 0), so σ(n)6\sigma(n) \le 6. The numbers with n3(mod16)n \equiv 3 \pmod{16} make up 1/161/16 of all natural numbers, and they overlap neither the even numbers nor the numbers 1mod41 \bmod 4 caught by Proposition 4.2 (a number that is 3mod163 \bmod 16 is an odd number that is 3mod43 \bmod 4). Together the proportion rises to at least 1/2+1/4+1/16=13/161/2 + 1/4 + 1/16 = 13/16.

Pushing this procedure through modulo 2k2^k for every kk yields the following theorem.

Remark 4.4

Terras (R. Terras, 1976) proved that the set of nn with σ(n)<\sigma(n) < \infty has natural density 11. 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 2k2^k and pushed to kk \to \infty. Note, however, that density 11 does not mean “finitely many exceptions”: an infinite set of exceptions can still have density 00.

That it suffices to control stopping times is justified by the following reformulation.

Theorem 4.5Reformulation via stopping time

The following two statements are equivalent.

(a) For every nNn \in \mathbb{N} the orbit of nn contains 11 (the Collatz conjecture).

(b) For every n2n \ge 2 we have σ(n)<\sigma(n) < \infty.

Proof(Theorem 4.5)

(a) \Rightarrow (b). Let n2n \ge 2. By (a) there is a k0k \ge 0 with Ck(n)=1C^k(n) = 1. Since n2>1n \ge 2 > 1 we must have k1k \ge 1, and Ck(n)=1<nC^k(n) = 1 < n. Thus at least one time at which the orbit drops below nn exists, and the least such time σ(n)\sigma(n) is finite.

(b) \Rightarrow (a). We prove “the orbit of nn contains 11” by strong induction on nn.

For n=1n = 1 the first term of the orbit is 11, so the claim holds.

Let n2n \ge 2 and assume the claim for every natural number smaller than nn. By (b) the number k=σ(n)k = \sigma(n) is finite; put m=Ck(n)m = C^k(n), so that m<nm < n and m1m \ge 1. By the induction hypothesis the orbit of mm contains 11, so Cj(m)=1C^j(m) = 1 for some j0j \ge 0. Then

Ck+j(n)=Cj(Ck(n))=Cj(m)=1C^{k+j}(n) = C^j\bigl(C^k(n)\bigr) = C^j(m) = 1

so the orbit of nn contains 11 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.

  1. The orbit of some nn enters a cycle not containing 11.
  2. The orbit of some nn 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.1Every cycle contains an odd number

Every cycle of CC contains at least one odd number.

Proof(Lemma 5.1)

Suppose a cycle {m,C(m),,Ck1(m)}\{m, C(m), \ldots, C^{k-1}(m)\} consists entirely of even numbers. Then by Definition 2.1 each term is half the previous one, so Ck(m)=m/2kC^k(m) = m/2^k. By the definition of a cycle, Ck(m)=mC^k(m) = m, whence m=m/2km = m/2^k, that is, m(2k1)=0m(2^k - 1) = 0. Since k1k \ge 1 we have 2k112^k - 1 \ge 1, so m=0m = 0, contradicting mNm \in \mathbb{N}.

List the odd numbers occurring in a cycle in order as n1,n2,,nrn_1, n_2, \ldots, n_r (pairwise distinct). If nin_i is odd then 3ni+13n_i + 1 is even, and we keep halving as long as the result is even until we arrive at the next odd number ni+1n_{i+1} (reading the index after rr as 11). Writing ai1a_i \ge 1 for the number of halvings, we obtain

3ni+1=2aini+1(i=1,,r).3 n_i + 1 = 2^{a_i} n_{i+1} \qquad (i = 1, \ldots, r) .

This relation is the starting point for the study of cycles.

Theorem 5.2Cycles with at most two odd numbers

The only cycle of CC containing exactly one or exactly two odd numbers is {1,4,2}\{1, 4, 2\}.

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 r=1r = 1 we read n2=n1=nn_2 = n_1 = n and get 3n+1=2an3n + 1 = 2^a n, that is,

n(2a3)=1.n (2^a - 3) = 1 .

Both nn and 2a32^a - 3 are integers with product 11, and n1n \ge 1, so n=1n = 1 and 2a3=12^a - 3 = 1, i.e. 2a=42^a = 4 and a=2a = 2. The cycle is then 14211 \to 4 \to 2 \to 1, which as a set is {1,4,2}\{1, 4, 2\}.

Case of two odd numbers. Suppose distinct odd numbers n1n2n_1 \ne n_2 satisfy

3n1+1=2a1n2,3n2+1=2a2n1.3n_1 + 1 = 2^{a_1} n_2, \qquad 3n_2 + 1 = 2^{a_2} n_1 .

Multiplying the two equations and setting A=a1+a22A = a_1 + a_2 \ge 2 gives

(3n1+1)(3n2+1)=2An1n2,(3n_1+1)(3n_2+1) = 2^{A} n_1 n_2 ,

and expanding the left-hand side,

9n1n2+3(n1+n2)+1=2An1n2,9 n_1 n_2 + 3(n_1 + n_2) + 1 = 2^A n_1 n_2 ,

that is,

(2A9)n1n2=3(n1+n2)+1.(2^A - 9)\, n_1 n_2 = 3(n_1 + n_2) + 1 .

The right-hand side is positive, hence so is the left, giving 2A>92^A > 9. The smallest power of 22 exceeding 99 is 1616, so 2A162^A \ge 16 and therefore 2A972^A - 9 \ge 7. Since n1n2>0n_1 n_2 > 0,

7n1n2(2A9)n1n2=3(n1+n2)+1.7 n_1 n_2 \le (2^A - 9)\, n_1 n_2 = 3(n_1 + n_2) + 1 .

Without loss of generality assume n1<n2n_1 < n_2 (they are distinct, so equality cannot occur).

If n1=1n_1 = 1, the inequality becomes 7n23+3n2+17 n_2 \le 3 + 3 n_2 + 1, that is, 4n244 n_2 \le 4 and so n21n_2 \le 1. This contradicts n2>n1=1n_2 > n_1 = 1.

If n13n_1 \ge 3 (the next odd number after 11 is 33), we bound the left-hand side from below by 7n1n221n2=3n2+18n27 n_1 n_2 \ge 21 n_2 = 3 n_2 + 18 n_2. On the other hand n2>n13n_2 > n_1 \ge 3 gives 18n2>18n13n1+118 n_2 > 18 n_1 \ge 3 n_1 + 1 (since 15n145>115 n_1 \ge 45 > 1). Therefore

7n1n23n2+18n2>3n2+3n1+1=3(n1+n2)+17 n_1 n_2 \ge 3 n_2 + 18 n_2 > 3 n_2 + 3 n_1 + 1 = 3(n_1+n_2) + 1

contradicting the inequality above.

Hence no cycle with two odd numbers exists, and the only cycle is {1,4,2}\{1,4,2\}.

The argument becomes drastically harder as the number rr of odd numbers grows, but research proceeds by sharpening the same relation. It is now known that any cycle not containing 11 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
Numbers flowing into 1 (arrows are single steps)

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, 1616 receives two inflows, from 3232 and from 55, and 4040 receives two, from 8080 and from 1313. Every even number mm receives 2m2m, and when m4(mod6)m \equiv 4 \pmod 6 it also receives the odd number (m1)/3(m-1)/3. 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.

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 nn gives (3n+1)/21.5n(3n+1)/2 \approx 1.5 n, while applying it to an even number gives 0.5n0.5 n. 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

1.5×0.5=0.750.866\sqrt{1.5 \times 0.5} = \sqrt{0.75} \approx 0.866

which is less than 11. 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 CC, each odd number is followed on average by two halvings (the probability that 3n+13n+1 is exactly divisible by 2j2^j is 2j2^{-j}, so the expected value is 22), so with kk odd numbers and 2k2k even ones the overall multiplier is 3k/22k=(3/4)k3^k / 2^{2k} = (3/4)^k. This equals 1/n1/n when k=lnn/ln(4/3)k = \ln n / \ln(4/3), so the total number of steps is predicted to be 3k10.4lnn3k \approx 10.4 \ln n. For nn around one million this gives 10.4×13.814410.4 \times 13.8 \approx 144 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 ff with f(n)f(n) \to \infty, the orbit of almost every nn attains a value below f(n)f(n). So we have reached “almost every nn does at some point become very small”. Between that and “every nn reaches 11” 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 +1+1 in the rule to 1-1.

Proposition 7.1The 3n−1 version has a nontrivial cycle

Define D:NND : \mathbb{N} \to \mathbb{N} by D(n)=n/2D(n) = n/2 if nn is even and D(n)=3n1D(n) = 3n - 1 if nn is odd. Then, besides {1,2}\{1, 2\}, the map DD has the cycle

514720105.5 \to 14 \to 7 \to 20 \to 10 \to 5 .
Proof(Proposition 7.1)

We compute step by step. Since 55 is odd, D(5)=351=14D(5) = 3 \cdot 5 - 1 = 14. Since 1414 is even, D(14)=7D(14) = 7. Since 77 is odd, D(7)=371=20D(7) = 3 \cdot 7 - 1 = 20. Since 2020 is even, D(20)=10D(20) = 10, and since 1010 is even, D(10)=5D(10) = 5. Hence D5(5)=5D^5(5) = 5, so {5,14,7,20,10}\{5, 14, 7, 20, 10\} is a cycle. It does not contain 11, so it differs from {1,2}\{1,2\}.

Note also that D(1)=2D(1) = 2 and D(2)=1D(2) = 1, so {1,2}\{1,2\} is a cycle too.

This is where the difficulty bites. The probabilistic estimate of Section 6 is completely unchanged if we replace +1+1 by 1-1 (since 3n13n3n-1 \approx 3n). In other words, the argument “it shrinks on average, hence it falls to 11reaches the same conclusion for a problem that has a counterexample. As it stands, therefore, this strategy can never constitute a proof.

Example 7.2Allowing negative numbers makes matters worse

The cycle above is not the only one for DD. The sequence

1750257437110551648241122611829127213668341717 \to 50 \to 25 \to 74 \to 37 \to 110 \to 55 \to 164 \to 82 \to 41 \to 122 \to 61 \to 182 \to 91 \to 272 \to 136 \to 68 \to 34 \to 17

is also a cycle (verify each step exactly as in Proposition 7.1).

Moreover, under the substitution nnn \mapsto -n the map DD becomes the original Collatz map CC. So if we extend CC to the negative integers, three cycles appear: 121-1 \to -2 \to -1, then 514720105-5 \to -14 \to -7 \to -20 \to -10 \to -5, and finally a cycle of length 1818 starting from 17-17. The formula defining CC 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 nn modulo mm, and showed that no general algorithm can decide whether a given starting point reaches 11 (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.3The state of computational verification

Computer verification has confirmed that every natural number up to 2682.95×10202^{68} \approx 2.95 \times 10^{20} reaches 11 (Barina, 2021). That is an enormous range, and yet it is nothing compared with infinity. Indeed, if the smallest counterexample were lurking somewhere around 1010010^{100}, 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 xx that reach 11 is at least x0.84x^{0.84} (Krasikov–Lagarias, 2003). Since x0.84x^{0.84} is far smaller than xx, this shows how difficult it is even to count “almost all” of them.

Exercise 8.1Easy

Let CC be the map of Definition 2.1. Write down the orbit of n=9n = 9, and find the number of steps needed to reach 11 together with the orbit maximum.

Solution

We compute in order.

9281472211341752261340201051684219 \to 28 \to 14 \to 7 \to 22 \to 11 \to 34 \to 17 \to 52 \to 26 \to 13 \to 40 \to 20 \to 10 \to 5 \to 16 \to 8 \to 4 \to 2 \to 1

Counting 99 as term number 00, the value 11 is term number 1919. Hence the number of steps is 1919. The maximum is 5252.

In the table of Example 3.1, 77 took 1616 steps, and the orbit above falls to 77 after three steps: 3+16=193 + 16 = 19, 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 nn be odd. Check that 4n+14n+1 is odd as well, and then prove

C3(4n+1)=C(n).C^3(4n+1) = C(n) .

What does this mean? Verify it in the case n=5n = 5.

Solution

If nn is odd then 4n4n is even, so 4n+14n+1 is odd. Hence

C(4n+1)=3(4n+1)+1=12n+4.C(4n+1) = 3(4n+1) + 1 = 12n + 4 .

This is even, so C2(4n+1)=6n+2C^2(4n+1) = 6n + 2, which is again even, so

C3(4n+1)=3n+1.C^3(4n+1) = 3n + 1 .

On the other hand nn is odd, so C(n)=3n+1C(n) = 3n+1. The two agree.

In other words, the orbit of 4n+14n+1 merges into the orbit of nn after three steps.

For n=5n = 5 we have 4n+1=214n+1 = 21. Indeed 2164321621 \to 64 \to 32 \to 16, and C(5)=16C(5) = 16, so the orbits do merge. This fact corresponds to the way 2121 flowed through 6464 into 1616 in the diagram after Theorem 5.2. Since for an odd nn the numbers n,4n+1,4(4n+1)+1=16n+5,n, 4n+1, 4(4n+1)+1 = 16n+5, \ldots all merge at the same place, the Collatz tree contains infinitely many “look-alike” branches.

Exercise 8.3Standard

Show that a number nn with n11(mod16)n \equiv 11 \pmod{16} does not become smaller than nn within the same six steps used in Example 4.3.

Solution

Put n=16k+11n = 16k + 11 with k0k \ge 0 and compute. Since nn is odd,

C(n)=48k+34.C(n) = 48k + 34 .

This is even, so C2(n)=24k+17C^2(n) = 24k + 17, which is odd, so C3(n)=72k+52C^3(n) = 72k + 52; this is even, so C4(n)=36k+26C^4(n) = 36k + 26, again even, so C5(n)=18k+13C^5(n) = 18k + 13, which is odd, so

C6(n)=54k+40.C^6(n) = 54k + 40 .

Since 54k+40>16k+1154k + 40 > 16k + 11 (the difference is 38k+29>038k + 29 > 0), no shrinkage has occurred in six steps. That all the intermediate values also exceed 16k+1116k+11 is checked in the same way one by one, for instance C5(n)=18k+13>16k+11C^5(n) = 18k+13 > 16k+11 (difference 2k+2>02k+2 > 0).

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 3232, modulo 6464, 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 00.

Exercise 8.4Hard

Let TT be the shortcut Collatz map of Definition 2.2. Prove by induction on kk that for k0k \ge 0 and m1m \ge 1,

Tk(2km1)=3km1.T^k(2^k m - 1) = 3^k m - 1 .

Use this to explain why numbers of the form n=2k1n = 2^k - 1 grow considerably at first.

Solution

Case k=0k = 0. The left-hand side is T0(m1)=m1T^0(m - 1) = m - 1 and the right-hand side is m1m - 1; they agree.

Assume the claim for kk and prove it for k+1k+1. Put N=2k+1m1N = 2^{k+1} m - 1. Since 2k+1m2^{k+1} m is even (because k+11k + 1 \ge 1), NN is odd. Hence by Definition 2.2,

T(N)=3(2k+1m1)+12=32k+1m22=32km1=2k(3m)1.T(N) = \frac{3(2^{k+1} m - 1) + 1}{2} = \frac{3 \cdot 2^{k+1} m - 2}{2} = 3 \cdot 2^{k} m - 1 = 2^k (3m) - 1 .

This has the form 2km12^k m' - 1 with m=3m1m' = 3m \ge 1, so the induction hypothesis applies and

Tk+1(N)=Tk(T(N))=Tk(2km1)=3km1=3k3m1=3k+1m1.T^{k+1}(N) = T^k\bigl(T(N)\bigr) = T^k(2^k m' - 1) = 3^k m' - 1 = 3^k \cdot 3m - 1 = 3^{k+1} m - 1 .

This completes the induction.

Interpretation. Taking m=1m = 1, the number n=2k1n = 2^k - 1 becomes 3k13^k - 1 after kk shortcut steps. The multiplier is roughly (3/2)k(3/2)^k, and the larger kk is, the more violent the growth. The probabilistic estimate of Section 6 gave “an average factor of 0.8660.866 per step”, but for numbers of this form the first kk steps are all odd steps, a drastic departure from the average.

For instance k=5k = 5 gives n=31n = 31, and

31477110716124231 \to 47 \to 71 \to 107 \to 161 \to 242

climbs to 242242 in five steps (indeed 351=2423^5 - 1 = 242). The rampage of 2727 in Example 3.2 has the same cause: the orbit of 2727 passes through 3131 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.

  • 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 11.
  • 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 xx that reach 11.
  • 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 2682^{68}.
  • J. H. Conway, “Unpredictable iterations”, Proceedings of the 1972 Number Theory Conference, University of Colorado, 1972. — Undecidability of generalized Collatz maps.

A warning for your own experiments. The code in Section 3 is a naive implementation and becomes slow somewhere past 10710^7. 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 nn (that is, to compute only the stopping time σ(n)\sigma(n) 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 9.2×10189.2 \times 10^{18}. Just as 2727 climbed to 92329232, Collatz orbits rise many digits above their starting point, so testing numbers around 101810^{18} 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 3n13n-1 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 +1+1 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 LLCPricingTermsLegal notice

© 2026 夢現技研合同会社 ・Feeding the text to an LLM is welcome. Code samples are MIT licensed.