CurvG
Sign In

No. 10 · Number theory · Open problem

Halve it if even, triple it and add 1 if odd: why does every number end at 1?

The rule fits in one sentence and anyone can try it. 27 takes 111 steps and climbs to 9232 before falling to 1; no number checked has ever failed, yet nobody can prove it. Draw all the paths backwards and they grow into a coral.

Why?

The explanation

Each tripling is followed on average by two halvings, a net factor of about 3/4, so numbers "usually" shrink; but usually is not always. It has been checked up to 2⁶⁸, and in 2019 Terence Tao proved that "almost all" numbers fall very low, yet a full proof is still missing.

01One rule

For a positive whole number nn let

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

and repeat. The Collatz conjecture (also the 3n+1 problem, or the hailstone problem) says that whatever number you start from, you eventually reach 1 and then cycle through 4, 2, 1.

Lothar Collatz posed it in 1937. The paths jump up and down: 27 takes 111 steps and peaks at 9232; below 10,000 the longest is 6171, at 261 steps.

02A tree, drawn backwards

Each number has exactly one next step, so all the paths together form a tree rooted at 1. Walking back from nn, 2n2n always leads to nn; an extra branch appears only when n−1n-1 is a multiple of 3 and (n−1)/3(n-1)/3 is odd.

The stage starts at the root 1 and, for every step back, turns left 0.16 radians at an even number and right 0.29 radians at an odd one, each step the same length. The paths of 1 to 10,000 pass through 21,664 different numbers (some far above 10,000). Thicker lines are stretches more of those numbers pass through. The picture was popularised by Edmund Harriss; this one is computed from the rule.

03Why it "looks" true

An odd nn becomes even after 3n+13n+1, so it is halved at least once; half the time twice, a quarter of the time three times… On average each tripling is followed by two halvings. Think of the pair as "times 3, divided by 4":

3×14=34<13\times\tfrac14=\tfrac34<1

So on average the numbers shrink. But that is only an average: a particular number could be halved only once, time after time, and keep climbing. A proof must rule out both climbing for ever and falling into some other cycle, and today’s mathematics cannot yet do either.

04What is known

  • Checked: in 2020 David Barina verified by computer everything up to 268≈2.95×10202^{68}\approx2.95\times10^{20}; all reach 1.
  • Almost all: in 2019 Terence Tao proved that almost all starting points have orbits that fall to "almost bounded" values, one of the strongest results so far; but almost all is not all.
  • No small cycles: any other cycle, if one exists, is known to be extremely long.

Paul Erdős once said: "Mathematics may not be ready for such problems."

Questions

What about 3n − 1?

Other cycles appear. From 5: 5, 14, 7, 20, 10, 5, never reaching 1. So "always reaching 1" is not a general property of such rules; whether 3n+1 is special is exactly what is hard.

Does the shape of the tree mean anything?

The shape depends on the turning angles, so it is a picture, not a theorem. Some things do not change with the angles: every path leads to the root 1, and the long runs of doubling and the forks at odd numbers come from the rule itself.

Is there a prize for a proof?

Prizes have been offered, but the bigger reward is fame: it is one of the most famous open problems in number theory. Be wary, though: many "proofs" online are wrong, and mathematicians treat new claims with great caution.

The syllabus side

Sources: Collatz conjecture — Wikipedia · Tao, “Almost all orbits of the Collatz map attain almost bounded values” (2019) · Barina, “Convergence verification of the Collatz problem”, J. Supercomputing 77 (2021)