Dynamics

Counting in a base that is not a whole number

Multiply by β and keep the fractional part, over and over, and the whole parts you throw away are the digits of the starting number in base β — even when β is the golden ratio. Which digit strings can ever appear is decided by one string alone: the way the number 1 is written in that base. In base φ it is .11, so 11 is the only thing forbidden; in base 1.8 it never ends, and no finite list of rules describes what is allowed.
17 min read 5 figures The same thing twiceSmall cases lie

Worth reading first: The orbit written as a word · A matrix that counts the returns.

The doubling map writes every number in binary: double it, and the whole part that falls off is the next binary digit. The same machine works with any multiplier. Multiply by β\beta, record the whole part ⌊βx⌋\lfloor \beta x \rfloor, keep the fractional part, and repeat; the recorded digits d1d2d3…d_1 d_2 d_3 \dots satisfy

x=d1β+d2β2+d3β3+⋯ ,x = \frac{d_1}{\beta} + \frac{d_2}{\beta^2} + \frac{d_3}{\beta^3} + \cdots,

which is xx written in base β\beta. Nothing requires β\beta to be a whole number. The expansions were introduced by Alfréd Rényi in 1957, and they turn out to be an unusually clean case of what symbolic dynamics is for: the map is simple, the digits are its itinerary, and the question of which digit strings can occur has an exact answer that fits in one line.

A machine that writes digits in base φ

Writing 0.3 in base φ. The graph of x ↦ βx mod 1 for the golden ratio φ, the diagonal, and the cobweb staircase of the orbit of 0.3, beside the 8 digits it writes.
Fig. 1 The map x ↦ φx mod 1, where φ is the golden ratio: two straight pieces of slope 1.618, the second cut short at height φ − 1. The staircase follows the orbit of 0.3 for eight steps, writing a 0 each time it lands on the left piece and a 1 on the right: 0 0 1 0 0 1 0 0. Those are the first eight digits of 0.3 in base φ, and no two 1s ever stand together.

With β=φ≈1.618\beta = \varphi \approx 1.618 the digits are 0 and 1, like binary. A point in the left part of the interval, below 1/φ1/\varphi, is multiplied into [0,1)[0, 1) and writes a 0; a point in the right part is multiplied past 1 and writes a 1, and the fractional part left over is at most φ−1=1/φ\varphi - 1 = 1/\varphi — which is back in the left part. So a 1 is always followed by a 0. In base φ\varphi, two consecutive 1s never occur in a greedy expansion.

The reason is the identity φ2=φ+1\varphi^2 = \varphi + 1, rewritten as 1/φ+1/φ2=11/\varphi + 1/\varphi^2 = 1. In base φ\varphi that says (0.11)φ=1(0.11)_\varphi = 1: a pair of 1s is exactly the next power up. The greedy algorithm, which always takes the largest digit it can, would have written the 1 at the earlier place instead, so a pair of 1s is simply never produced. The picture shows the same fact geometrically: the second piece of the graph stops short of the top, and everything it lands on is in the first piece’s domain.

That short second piece is the whole difference from binary. In base 2 the map has two full pieces, each carrying its half of the interval across the whole of it, so after any digit any other may follow and every string of 0s and 1s is some number’s expansion. In base φ\varphi the second piece covers only part of the interval, and the part it misses is exactly where a second 1 would have come from. Every constraint on digits in every base comes from a piece that falls short in this way.

One string decides everything

The golden case has one forbidden word, 1111. Other bases forbid other things, and a single string says what.

Write the number 1 itself in base β\beta by the same greedy rule — first digit ⌊β⌋\lfloor \beta \rfloor, then follow the fractional part.

The number 1 written in six bases. A table of six bases β with β to four places, the first greedy digits of 1 in that base, and whether the expansion ends.
Fig. 2 The greedy digits of 1 in six bases. In base φ, 1 = .11; for the plastic number, 1 = .10001; for the tribonacci constant, 1 = .111 — all three stop. In bases 3/2, 1.8 and 5/2 the expansion of 1 runs on without end, and only its first digits are shown.

The criterion is due to William Parry, in 1960. Take the expansion of 1 and, if it stops, make it periodic by lowering its last digit by one and repeating the block for ever — in base φ\varphi, .11.11 becomes .101010….101010\dots. Call this the quasi-greedy expansion of 1. Then:

A digit string is a greedy expansion in base β\beta exactly when every one of its tails is smaller, in dictionary order, than the quasi-greedy expansion of 1.

In base φ\varphi the quasi-greedy expansion is 1010…1010\dots, and a tail beginning 1111 is larger than it — the second digit already exceeds — while every tail that avoids 1111 is smaller. So the criterion reproduces the one rule. For the tribonacci constant, where 1=(.111)β1 = (.111)_\beta, the quasi-greedy expansion is 110110…110110\dots, and the forbidden pattern is three 1s in a row. For the plastic number, 1=(.10001)β1 = (.10001)_\beta, and what is forbidden is any 1 followed too soon by another: fewer than four 0s between them.

The three rules look like three different kinds of constraint — a pair forbidden, a triple forbidden, a spacing enforced — and they are one rule applied to three strings. That is typical of how symbolic dynamics simplifies: a family of systems that look unrelated turns out to be parametrised by a single object, here the digits of 1, and every property of a member can be read from its parameter.

The criterion is dictionary order and nothing else. There is no arithmetic in it beyond knowing one string, and it says precisely which infinite sequences of digits arise from numbers.

Why should dictionary order be the right test? Because the map preserves it. If one number is smaller than another and both lie on the same piece of the graph, their images keep the same order, since the piece is a straight line of positive slope; and the digit written first is larger for the larger number whenever they are on different pieces. So larger numbers have lexicographically larger digit strings, and a string is too large to be an expansion exactly when it is at least as large as the string of something that is not below 1. Every tail of an expansion is itself an expansion — of the point the orbit has reached — so every tail has to pass the same test. Parry’s theorem says that passing it is also enough.

The 2-state graph of base φ. A directed graph with 2 states whose walks are exactly the digit strings allowed in base the golden ratio φ, where 1 = .11.
Fig. 3 The two-state graph of base φ. A state records how much of 11, the expansion of 1, the last digits have copied: from the start a 0 stays and a 1 advances; after a 1 only a 0 is allowed, and it returns to the start. Its walks from the start number exactly the strings Parry’s test allows, and they multiply by φ at each step.

When the expansion of 1 stops, the test can be run by a machine with finitely many states. The state records how much of the expansion of 1 the recent digits have copied so far; a digit smaller than the next one in the expansion resets the machine, a digit equal to it advances, and a digit that would complete the whole expansion is refused. In base φ\varphi the machine has two states, and its only refusal is a second 1.

The rule checked against the machine

A criterion about all orbits can be tested against a large sample of them.

Allowed digit strings in three bases, up to length 12. Counts of admissible digit strings of length 1 to 12 in base φ, 1.8 and 2.5 on a logarithmic axis, each growing like βⁿ; base φ gives the Fibonacci numbers.
Fig. 4 The digit strings of each length that occur as greedy expansions in three bases, counted by Parry’s test and — up to length nine — by reading them off 400,000 evenly spaced starting points: the two counts agree exactly. In base φ they are the Fibonacci numbers 2, 3, 5, 8, 13, 21, …; in every base they grow by a factor of about β per extra digit, straight lines on this logarithmic axis.

The figure’s check runs in both directions. Every string the map actually writes, starting from 400,000 points spread across the interval, passes Parry’s test. And every string that passes the test is written by some starting point in the sample. Up to length nine, in all three bases, the two sets are identical.

In base φ\varphi the counts are the Fibonacci numbers, for the reason the returns matrix gave in another setting: a string of length nn with no two adjacent 1s either ends in 0, after any allowed string of length n−1n - 1, or ends in 01, after any allowed string of length n−2n - 2. In every base the counts grow like βn\beta^n, so the topological entropy of the system — the growth rate of the number of distinguishable strings, the quantity the folds of the logistic map measured — is exactly log⁡β\log \beta. The base is the entropy. That is the same statement as the slope of the map, and it had to be: a map of constant slope β\beta stretches everything by β\beta at each step, and the number of distinguishable pieces grows at exactly that rate.

Finite type, and the bases where it fails

The expansions of 1 in the six bases split into two kinds, and the split is the most important thing in the table.

When the expansion of 1 stops — golden ratio, plastic number, tribonacci — the forbidden patterns are finitely many, each at most as long as the expansion. The allowed strings are then exactly those avoiding a finite list of words, which makes the system a shift of finite type: the same kind of system as the returns matrix, described completely by a finite graph. In base φ\varphi the graph has two nodes, “last digit 0” and “last digit 1”, and the arrow from 1 to itself is missing.

The 5-state graph of base the plastic number. A directed graph with 5 states whose walks are exactly the digit strings allowed in base the plastic number, where 1 = .10001.
Fig. 5 The five-state graph of the plastic number, where 1 = .10001. After a 1 the machine must pass through three more states on 0s before it may write another 1; a 1 at the last state would complete 10001 and has no arrow. The walks from the start are exactly the allowed strings, and they multiply by 1.3247 per step — the smallest growth rate of any base in this family.

The plastic number’s graph is a chain: a 1 sends the machine off down a corridor of four states, each passable only by a 0, and only at the end of the corridor may another 1 be written. The growth rate of its walks is the plastic number itself, about 1.32471.3247, and that number has a small distinction: it is the smallest Pisot number there is. So this is, in a precise sense, the slowest-growing system of this kind that is built on a Pisot base — the one with the most constrained digits.

When the expansion of 1 never ends — 3/23/2, 1.81.8, 5/25/2 — no finite list will do. Parry’s criterion still describes the allowed strings exactly, but the description compares tails against an infinite string, and forbidding longer and longer patterns is needed at every length. The system is a shift, it has entropy log⁡β\log \beta, and it cannot be drawn as any finite graph.

So a question about a dynamical system — is it of finite type? — has become a question about one number’s digits: does 1 have a finite expansion in base β\beta? That depends on the arithmetic of β\beta. For integer bases it always does: 1=.(β−1)(β−1)…1 = .(\beta - 1)(\beta - 1)\dots in quasi-greedy form, and the system is the full shift. For β=3/2\beta = 3/2 it cannot. A finite expansion 1=∑i≤ndi(2/3)i1 = \sum_{i \le n} d_i (2/3)^i, multiplied through by 3n3^n, leaves every term divisible by 3 except the last, dn2nd_n 2^n, and the only digits available are 0 and 1 — so the last digit would have to be a multiple of 3 and nonzero at once. For special algebraic numbers — the golden ratio and its relatives — it does.

Which bases are tidy

The bases in the table where 1 has a finite expansion are all roots of polynomials with integer coefficients, and more: each is a Pisot number, an algebraic integer greater than 1 whose other conjugates all lie inside the unit circle. The golden ratio’s conjugate is −1/φ≈−0.618-1/\varphi \approx -0.618; the plastic number, the smallest Pisot number of all, has two complex conjugates of modulus about 0.870.87; the tribonacci constant’s conjugates have modulus about 0.740.74.

Klaus Schmidt and Anne Bertrand proved around 1980 that for a Pisot base, the expansion of 1 is always eventually periodic — the system is then sofic, described by a finite graph with labelled arrows even if not by a finite list of forbidden words. For the expansion to stop outright is rarer still, and which Pisot numbers have that property is characterised only in special cases. The same Pisot numbers appeared in the coin tosses whose sums collide: there the golden ratio’s conjugate being small is exactly what made two sign patterns land at almost the same point. Here the same smallness makes the digits of 1 settle into a pattern. Both are consequences of βn\beta^n being very close to a whole number for large nn — the defining property of a Pisot number.

Base φ as a way of writing whole numbers

There is a surprising footnote. In 1957, the same year as Rényi’s paper, a twelve-year-old named George Bergman published a numeral system in which whole numbers are written in base φ\varphi with digits 0 and 1 and no two adjacent 1s. Every positive integer has such a representation, and it is finite — it uses finitely many positive and negative powers of φ\varphi. For example 2=φ+φ−22 = \varphi + \varphi^{-2}, written 10.0110.01, and 3=φ2+φ−23 = \varphi^2 + \varphi^{-2}, written 100.01100.01.

That every whole number has a finite base-φ\varphi expansion is not obvious — the powers of an irrational number have no reason to add up to integers — and it follows from the same identity, φn+φ−n\varphi^n + \varphi^{-n} being a whole number when nn is even, that makes the golden ratio a Pisot number. Bergman’s system is the arithmetic side of the dynamics above: the dynamics says which infinite strings are allowed, and the arithmetic says that the integers sit among them with only finitely many nonzero digits.

Arithmetic in base φ\varphi is possible by hand and a little strange. Adding 1+11 + 1 gives a 2 in the units place, which is not an allowed digit; the identity 2=φ+φ−22 = \varphi + \varphi^{-2} turns it into 10.0110.01. Carrying therefore moves digits both left and right, and a sum may need several rounds of the rule 011→100011 \to 100 before it settles into a string with no adjacent 1s — the base-φ\varphi version of carrying, and the same rewriting the greedy algorithm performs automatically. The Fibonacci numbers appear on both sides — as the count of allowed strings, and, through Zeckendorf’s theorem that every integer is a sum of non-adjacent Fibonacci numbers, as the integer version of the same no-two-1s rule.

What the figures only sample

The agreement is checked to length nine, not proved. Parry’s criterion is a theorem for strings of every length; the figure confirms it on the lengths where 400,000 sample points are fine enough to land in every allowed cylinder of the interval. Beyond that, some cylinders are narrower than the spacing between samples and would be missed, so the check stops.

Digits of 1 are computed in floating point. Whether the expansion of 1 stops is decided in the figure by the remainder falling below 10−1010^{-10}, and the golden and tribonacci cases are additionally checked to give exactly .11.11 and .111.111. For the bases whose expansions never end, the figure shows fourteen digits and claims nothing about the rest beyond what the arithmetic argument in the text proves for 3/23/2.

The orbit is not the number. The cobweb follows 0.3 for eight steps and recovers it to within φ−8\varphi^{-8}, about 0.02; the remaining digits would make up the difference. An infinite expansion is a limit, and every figure shows a finite piece of one.

The graphs are drawn only for finite expansions. The base-1.8 system has no finite graph, and no figure pretends otherwise. What it has is an infinite graph — one state for every length of prefix of the expansion of 1 — and its walks count its allowed strings in the same way; the figures stop where the graph stops being finite.

Still open: which algebraic bases are tidy

For Pisot bases the expansion of 1 is eventually periodic; for Salem numbers — algebraic integers with conjugates on and inside the unit circle — it is conjectured to be eventually periodic too, and this has been proved only for Salem numbers of degree 4 and some of degree 6. For most algebraic numbers that are neither, nothing is known about whether the expansion of 1 ever repeats. And for transcendental bases, such as β=e\beta = e or β=π\beta = \pi, there is no known example of any interesting structure in the expansion of 1 at all; the expansion of 1 in base ee is expected to look random, and nobody can prove anything about it.

There is also an open question closer to the figures. Which bases β\beta give an expansion of 1 that stops — a finite-type system — is known to include every root of a polynomial of the form xm−xm−1−⋯−x−1x^m - x^{m-1} - \cdots - x - 1, the golden ratio and tribonacci constant among them, and several other families; a complete description of these “simple Parry numbers” in terms of their minimal polynomials is not known.

The measure-theoretic side is tidier. Parry found, for every base, the probability distribution on the interval that the map preserves — the long-run frequency with which orbits visit each part — and it is determined by the same expansion of 1. That distribution is the next question, and it turns the digits of 1 from a list of rules into a staircase.

One string as the whole rulebook

The machine that writes base-β\beta digits is as simple as a machine can be — multiply, take the whole part, repeat — and yet the set of strings it can write is intricate: finitely described for some bases and not for others, with the dividing line running through the arithmetic of β\beta. What makes it tractable is Parry’s discovery that the whole rulebook is one string. To know every digit sequence that base β\beta allows, it is enough to write down the number 1. Everything else — the forbidden patterns, the graph when there is one, the count of strings of each length, the entropy — follows from those digits by rules that a machine can apply. The expansion of 1 is to base β\beta what the list of forbidden words was to the systems drawn by a matrix: the complete specification, compressed into the one orbit that starts at the edge of the interval. Where the matrix listed its rules, the base-β\beta system grows them from a single seed, and whether the seed produces finitely many rules or infinitely many is a question about the number β\beta that no amount of staring at the map would answer.

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.

Fibonacci numbersGolden ratioItineraryShift mapSymbolic dynamicsTopological entropy