Dynamics

Where the Collatz map is a coin

Extend the Collatz map from the whole numbers to the 2-adic integers — binary strings that run on for ever to the left — and it stops being mysterious. It becomes, after a change of coordinates, the simplest chaotic system there is: shifting a string of coin tosses one place. Everything about it is then known, and none of it says anything about the whole numbers, which is the most instructive failure in the whole story.

Worth reading first: Every pattern happens exactly once · The heuristic that cannot be a proof.

The Collatz map used throughout these essays is the shortcut version: halve an even number, and send an odd number nn to (3n+1)/2(3n + 1)/2. The essay on parity patterns found that the first kk odd-and-even steps of an orbit are decided exactly by the number’s last kk binary digits, and that every pattern of kk steps happens exactly once among the numbers below 2k2^k. It ended by naming a debt: the map extends to a much larger world, the 2-adic integers, where its behaviour is completely understood — and understanding it there says nothing about whether every whole number comes down to 1.

This essay pays that debt. It is worth paying because the way a complete understanding can coexist with total ignorance is itself the clearest statement of why the Collatz problem is hard.

The Collatz map on the 2-adic integers, before and after changing to parity coordinates. Two scatter plots of 2048 points: the Collatz map on 2-adic integers in binary-digit coordinates, a scattered cloud, and the same map in parity-vector coordinates, where every point lies on the two lines of the doubling map.
Fig. 1 The Collatz map, twice. Left, every 2-adic integer below 2112^{11} placed on the unit interval by reading its binary digits backwards, against the same reading of its image: a scattered cloud beside one clean line. Right, the same points placed by their parity strings instead: every one lands on the two lines of the doubling map.

Numbers that run on for ever to the left

A whole number in binary is a finite string of digits: 2727 is 1101111011. A 2-adic integer is a string that is allowed to continue for ever to the left, …0011011\ldots 0011011, with no leading end. Addition and multiplication work exactly as in school, digit by digit from the right with carries moving left, and the carries never need to finish because nothing is ever read from the left end.

In that system some familiar numbers have surprising strings. The string of all ones, …1111\ldots 1111, is −1-1: add 11 to it and every digit becomes 00 with a carry that moves off for ever to the left, leaving …0000\ldots 0000. That is the series that converges to minus one, 1+2+4+8+⋯1 + 2 + 4 + 8 + \cdots, written as a string of digits. Fractions with odd denominators have strings too, and they are exactly the strings that eventually repeat: 1/31/3, for instance, is a string whose digits settle into 0101 repeated, because multiplying that string by three produces the carry pattern of 11.

The Collatz map makes sense on all of these. Whether a 2-adic integer is odd is decided by its last digit. Halving an even one shifts its string one place to the right. And (3x+1)/2(3x + 1)/2 for an odd xx is computed digit by digit from the right, exactly as for a whole number, since 3x+13x + 1 is even. So TT is defined on every string, and whole numbers are the strings that end, on the left, in zeros for ever.

Parity coordinates, in which the map is a shift

Every 2-adic integer xx has a parity string: the sequence of 1s and 0s recording whether xx, T(x)T(x), T2(x),…T^2(x), \ldots are odd or even. Call it Q(x)Q(x). For whole numbers this is the sequence of odd and even steps of the orbit, which the pattern essay studied in its first kk entries.

The key fact, due to Jeffrey Lagarias in 1985, is that QQ is a bijection from the 2-adic integers to the set of all infinite binary sequences. Every sequence of odd and even steps is the parity string of exactly one 2-adic integer. The finite statement — every pattern of kk steps happens exactly once below 2k2^k — is this fact truncated, and the infinite one follows by letting kk grow, since each new step of the pattern decides exactly one new binary digit of xx.

Every parity pattern of length up to 12, and each occurring exactly once. A bar for each pattern length, showing the number of distinct parity patterns produced by all remainders of that power of two, which equals the number of remainders at every length.
Fig. 2 The finite shadow of the bijection: the numbers below 2k2^k against the parity patterns of their first kk steps, each pattern met exactly once. Letting k grow, each new step of a pattern fixes one more binary digit of the number that follows it, and in the limit every infinite pattern belongs to exactly one 2-adic integer.

The finite version is where the infinite one comes from, and the mechanism is worth stating because it is also the reason the bijection is so rigid. Suppose the first kk parities of a pattern have fixed the last kk binary digits of xx. The next parity depends on the digit in position kk. Changing that digit adds 2k2^k to xx, and after kk steps — aa of them odd, each multiplying by three, and kk halvings in all — that addition has become exactly 3a3^a added to Tk(x)T^k(x). Three to any power is odd, so the change flips the next parity. One of the two choices for the digit gives the pattern’s next entry, and only one. Digit by digit, the pattern builds its number, and no two patterns can build the same one.

Now look at what TT does to a parity string. The parity string of T(x)T(x) is the parity string of xx with its first entry removed. That is immediate — the orbit of T(x)T(x) is the orbit of xx minus its first term — and it is the whole content of the change of coordinates.

The orbit of 27 as parity strings, each the one above shifted by a place. 7 successive values of the Collatz orbit of 27 with their parity strings, each string the previous one shifted left by one digit.
Fig. 3 The orbit of 27, one number to a row, each followed by its parity string. Every row is the row above with its first digit removed: applying the map shifts the parity string one place to the left.

In parity coordinates, then, the Collatz map is the shift: delete the first symbol of a binary sequence. Read a binary sequence as a fraction between 0 and 1, and the shift becomes the doubling map y↦2y mod 1y \mapsto 2y \bmod 1 — which is exactly the pair of straight lines in the right-hand panel of the opening figure. The map is conjugate to the shift: after a relabelling of points that is a bijection, it is the same map.

The left-hand panel of that figure is worth a second look. Half of it is already a straight line: an even number is halved, which shifts its binary string one place, and in the backwards-reading coordinates a shift is a doubling. All the scatter comes from the odd branch, where (3x+1)/2(3x + 1)/2 mixes the digits. The change to parity coordinates straightens out that half as well.

Everything the shift does, the Collatz map does

The shift on binary sequences is the most thoroughly understood chaotic system in mathematics. Symbolic dynamics is largely the study of it and its relatives. Transferred to the 2-adic integers through QQ, every one of its properties becomes a property of the Collatz map.

It is a coin. Choose a 2-adic integer at random — every binary digit an independent fair coin — and the parity string of its orbit is itself a sequence of independent fair coins, because QQ preserves this natural measure. The odd and even steps of a random 2-adic orbit are exactly as random as tossing a coin, not approximately, and forever, not for a while. That is the coin-toss model of the heuristic that cannot be a proof, and on the 2-adic integers it is not a heuristic. It is a theorem.

It is as chaotic as a map can be. It is mixing, in the strongest sense: knowing the first kk digits of a 2-adic integer tells nothing about its orbit’s parities after step kk. Two 2-adic integers that agree in their last kk digits have orbits that agree for kk steps and are independent afterwards — sensitive dependence in its cleanest form.

Its periodic points are exactly known. Every periodic parity string is the string of exactly one 2-adic integer, and that integer is periodic under the map. Each is a fraction with odd denominator, which is the content of the rational cycles the pattern essay drew. There are 2k2^k of them with period dividing kk, just as for the doubling map.

Its fixed points are 00 and −1-1. Zero is even and halves to itself. Minus one is odd, and (3⋅(−1)+1)/2=−1(3 \cdot (-1) + 1)/2 = -1. Their parity strings are all zeros and all ones.

The integers that imitate minus one

The fixed point −1-1 has parity string all ones: every step odd, each multiplying by about 3/23/2. In the ordinary sense it is an orbit that climbs for ever — except that −1-1 is not a positive whole number, and as a 2-adic integer it simply stays where it is.

Whole numbers can imitate it for a while. A whole number that agrees with −1-1 in its last kk binary digits is one ending in kk ones — the simplest is 2k−12^k - 1 — and since the first kk parities depend only on the last kk digits, its orbit takes kk odd steps in a row, just as −1-1’s does.

Integers that imitate the 2-adic fixed point −1: a climb of exactly k steps, then a fall. Base-2 logarithms of the Collatz orbits of 2ᵏ − 1 for k = 10, 20, 30, 40, each rising steadily for k steps and then falling to 1.
Fig. 4 The orbits of 2k−12^k - 1 for k = 10, 20, 30 and 40, measured in binary digits. Each climbs in a straight line for exactly k odd steps, multiplying by about 3/2 each time — imitating the 2-adic number −1 for as long as it agrees with it — and then, its agreement used up, comes down to 1.

The straight climbs in the figure are exactly kk steps long. After them, 2k−12^k - 1 has been multiplied by about (3/2)k(3/2)^k and has become 3k−13^k - 1 — even, and with no remaining resemblance to −1-1. From there its orbit is as unpredictable as any other, and in each case it comes down. The number 240−12^{40} - 1 climbs from forty binary digits to about sixty-three and takes 343 steps in all to reach 1.

This is the 2-adic picture of a question the pattern essay left open: can a whole number follow a rising pattern for ever? Any rising pattern is followed for ever by some 2-adic integer. A whole number follows it only for as long as its binary digits agree with that 2-adic integer’s, and every whole number has only finitely many digits before the zeros begin. Whether its digits force the orbit to fall eventually is exactly what nobody can prove.

The density that decides up from down

What makes a parity pattern rising or falling is the fraction of its steps that are odd. An odd step multiplies by about 3/23/2, an even one by 1/21/2. So a pattern with a fraction dd of odd steps multiplies the size by about 3d/23^d/2 per step, and it grows exactly when 3d>23^d > 2, that is, when

d>log⁡2log⁡3≈0.631.d > \frac{\log 2}{\log 3} \approx 0.631.

Parity patterns of different densities, and the sizes they drive an orbit to. The change in size of the Collatz orbits of integers built to follow the repeating parity patterns 100, 10, 110, 1110 for 60 steps; patterns with more than 63% odd steps rise, the others fall.
Fig. 5 Four repeating parity patterns, each followed for sixty steps by the whole number between 2602^{60} and 2612^{61} that begins with it. Patterns with a third or a half of their steps odd fall, by 28 and 12 binary digits; patterns two thirds and three quarters odd climb, by 3 and 11.

The arithmetic can be tested on four patterns, and the result matches the prediction to within rounding: after sixty steps of the pattern 110110, with two thirds of its steps odd, the number has grown by about three binary digits, and the prediction from the density is 60×(23log⁡23−1)≈3.460 \times (\tfrac{2}{3}\log_2 3 - 1) \approx 3.4. The pattern 1010 is the one the trivial cycle 1→2→11 \to 2 \to 1 follows forever; any other whole number following it for sixty steps loses about twelve binary digits.

A random 2-adic integer has parity string with density of odd steps exactly 12\tfrac12 — a coin — and 12\tfrac12 is below the critical 0.6310.631. That is the heuristic for why orbits come down: on average they shrink by a factor of 3/2\sqrt 3/2 per step. For the random 2-adic integer this is a theorem; for whole numbers it is the unproved step.

The same coin for a map that climbs

The conjugacy is not special to 3x+13x + 1. The argument above used two facts: that the parity of xx decides the branch, and that changing the next binary digit of xx flips the next parity. Both hold for the map that sends even xx to x/2x/2 and odd xx to (5x+1)/2(5x + 1)/2, and for (7x+1)/2(7x + 1)/2, and for any odd multiplier. Every one of these maps is conjugate to the shift on the 2-adic integers, and every one is, in the same exact sense, a fair coin.

And yet they behave completely differently on whole numbers. With multiplier 55, an odd step multiplies by about 5/25/2 and an even step by 1/21/2, so a random pattern — half odd — multiplies by 5/2≈1.12\sqrt 5/2 \approx 1.12 per step, which is growth. The critical density is log⁡2/log⁡5≈0.43\log 2/\log 5 \approx 0.43, below one half, and the coin now favours climbing. Experiments agree: under the 5x+15x + 1 map most starting numbers appear to climb for ever, and small ones fall into a handful of cycles — 13→33→83→208→104→52→26→1313 \to 33 \to 83 \to 208 \to 104 \to 52 \to 26 \to 13 is one — while the question for 3x+13x + 1 is whether anything climbs at all.

So the 2-adic picture cannot tell the two maps apart. Both are the shift; both are coins. The difference between a map where everything seems to fall and a map where almost everything seems to rise is the single number log⁡2/log⁡3\log 2/\log 3 against log⁡2/log⁡5\log 2/\log 5, compared with the density one half — a statement about the sizes the steps multiply by, which the 2-adic world, measuring divisibility by two and nothing else, does not see. And proving that any particular whole number under 5x+15x + 1 climbs for ever is as far out of reach as proving that none does under 3x+13x + 1.

Why understanding the whole does not reach the part

Here is the situation laid out plainly. The Collatz map on the 2-adic integers is conjugate to the shift, measure-preserving, mixing, with every periodic point known. Nothing about it is mysterious. The whole numbers sit inside the 2-adic integers — as the strings ending in zeros to the left — and the Collatz conjecture is a statement about what happens to those particular points.

And they are a set of measure zero. A property that holds for a random 2-adic integer with probability one — that its parity string has density 12\tfrac12, say — can fail on every whole number without contradicting anything, because the whole numbers are too few to register. Worse, the conjugacy QQ scrambles them: the parity strings of whole numbers are not a set anyone can describe. Which parity strings the whole numbers have is not known in any form: whether they are all eventually periodic is the Collatz problem itself, restated.

So the 2-adic picture converts the Collatz problem into a question about where a small, explicitly described set of points goes under a map that is completely understood — and the answer depends entirely on the fine structure of that set, which the map’s good behaviour on average says nothing about. It is the same gap that the heuristic essay found between a probability model and a proof, now made exact: the model is literally true on a larger space, and the problem lives on a part of it the model cannot see.

What the pictures cannot show

Every figure truncates. A 2-adic integer is an infinite string, and the figures use its last few dozen digits, which determine the first few dozen steps of its orbit and nothing after. The opening figure’s clean lines are a statement about 2,048 strings of eleven digits, and the conjugacy is a statement about all infinite strings; the figure is the eleventh approximation to it, and each finer approximation looks the same. The bijection figure has the same character: it lists every pattern of a fixed length, and the claim about infinite strings is an argument, the digit-by-digit one above, that the finite lists cannot replace.

The climbing orbits are whole numbers, followed to the end, and they do come down — every one of them. That is evidence of the usual kind, which is to say it is worth nothing as proof: the numbers that would break the conjecture, if any exist, are far beyond anything that can be run. And no figure can show a 2-adic integer climbing for ever, because the only thing that climbs for ever with every step odd is −1-1, and in the 2-adic world it does not climb at all.

Still open: which strings the whole numbers have

The 2-adic dynamics are closed. What is open is the one question that matters. Lagarias’s periodicity conjecture says that a 2-adic integer has an eventually periodic parity string exactly when it is a rational number. One direction is proved — a periodic parity string belongs to a rational, as the cycle equation shows. The other says every rational number with odd denominator, and in particular every whole number, has an orbit that eventually repeats — so no whole number climbs for ever — and together with the belief that the only cycle among positive whole numbers is 1→2→11 \to 2 \to 1, it would give the Collatz conjecture. Nobody knows how to decide from a number’s binary digits what its parity string does in the long run, and the conjugacy offers no help, since it is defined by the orbit it is supposed to describe.

A second question is the one the climbing figure raises: whether any whole number has an orbit whose parity string has density of odd steps above log⁡2/log⁡3\log 2 / \log 3 forever, which would make the orbit grow without bound. Terence Tao showed in 2019 that almost all orbits, in the sense of logarithmic density, eventually fall below any function that tends to infinity, however slowly. That is the strongest statement known, and it still leaves room for a single divergent orbit.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

CollatzConjugacyMeasureP adic numbersParityShift mapSymbolic dynamics