A Field Guide to the Almost-Involution
A naturalist’s guide to a permutation of the whole numbers, and the golden-ratio country it lives in. After Martínez & Malaina, “Wythoff-Fibonacci Sequences and a Perturbed Greedy Almost-involution,” arXiv:2607.00814 (July 2026). Every claim here was rebuilt from scratch and checked — the guide only points at what the code could reproduce exactly, integer for integer.
The country
Before the creature, the country, because the country explains the creature.
Take the golden ratio, φ = 1.6180339887…, the number that is hardest of all to approximate by fractions. Multiply it by each whole number and throw away the part after the decimal point. You get the lower Wythoff sequence:
a(n) = ⌊φn⌋ = 1, 3, 4, 6, 8, 9, 11, 12, 14, 16, …
Do the same with φ² = 2.618… and you get the upper Wythoff sequence:
b(n) = ⌊φ²n⌋ = 2, 5, 7, 10, 13, 15, 18, 20, 23, 26, …
These two sequences have a remarkable property, first proved by Samuel Beatty in 1926 (and set as a problem in The American Mathematical Monthly — it is, at heart, an undergraduate’s theorem): together they use every positive integer exactly once, and never collide. Every whole number is either a lower-Wythoff number or an upper-Wythoff number, never both, never neither. The reason is a single line of arithmetic — 1/φ + 1/φ² = 1 — and that line is the deed to the whole territory.
This is not a curiosity of the golden ratio’s private life. It is the answer to a game. In Wythoff’s game (1907) two players face two piles of stones. On your turn you take any number of stones from one pile, or the same number from both. Whoever takes the last stone wins. The losing positions — the ones from which, if it is your move, you are doomed against good play — are exactly the pairs (a(n), b(n)): (1,2), (3,5), (4,7), (6,10), …. I rebuilt the game from nothing but its rules, brute-forcing which positions are lost, and out of that pure integer computation the golden ratio walked in unbidden. That is the country. A game with no numbers in its rules, whose map is drawn in φ.
The genus: involutions born from the partition
Because the two sequences partition the integers, you can build a permutation that swaps the roles: send a(n) to b(n) and b(n) back to a(n). This is the classic sequence catalogued as A002251 in the OEIS. Its first terms, starting from 0, are 0, 2, 1, 5, 7, 3, 10, 4, 13, 15, …. It is an involution — do it twice and you are home: q(q(j)) = j for every j. In cycle terms it is the plainest creature imaginable: a fixed point at 0, and then an endless procession of transpositions, each one a clean two-element swap of a lower number with its upper partner. Nothing ever moves in a longer loop. An involution is a perfect pairing of the world, and this one pairs each integer with its Wythoff twin.
That is the genus. Now the specimen this guide is really about.
The specimen: q★, the almost-involution
Take the same greedy rule that grows the involution — at each step write the smallest unused number whose difference-from-its-position is also unused — but at the very first step, override it once: force q★₁ = 3 instead of the 2 the rule would have chosen. Then let the greedy rule run untouched forever after.
One nudge, at the first step, and the whole animal changes character. Here it is, the first terms:
q★ = 0, 3, 1, 4, 2, 8, 10, 12, 5, 15, 6, 18, 7, 21, 23, 9, 26, 28, 11, 31, …
Field marks
Two golden rays. Plot q★ against its index and the points fall on two straight lines through the origin: a steep one of slope φ (the indices that live in the corrected lower sequence) and a shallow one of slope φ − 1 = 0.618… (the indices in the corrected upper sequence). I measured both slopes back off the plotted points: 1.6188 and 0.6182. The golden ratio, twice, read straight out of a picture of a shuffle of the integers.
A mirror, with one flaw. Because q★ (almost) undoes itself, its graph is (almost) symmetric across the diagonal y = x. This is the deep reason the two slopes are φ and 1/φ: reflecting a line of slope φ across the diagonal gives a line of slope 1/φ, and 1/φ is exactly φ − 1. The mirror is why the rays are golden.
The single knot. Everywhere from 5 onward, q★ is a perfect involution — transpositions, pairing each corrected-lower number LWF(i) with its corrected-upper partner UWF(i). But down at the origin the mirror is broken, and broken in precisely one place: the four numbers {1, 2, 3, 4} are caught in a single 4-cycle,
1 → 3 → 4 → 2 → 1,
that only returns home after four steps, not two. That 4-cycle is the “almost.” It is the entire difference between this creature and the plain involution of its genus. One forced value at the first step, and two tidy transpositions on the small numbers are spliced into one loop that takes twice as long to close. The animal is an involution wearing a single knot.
The call
Every field creature has a call by which you know it without seeing it. This one’s is startling. q★ is also the sequence you get by a completely different greedy rule: at each step, write the smallest unused whole number that keeps the running average of everything so far an exact integer. Two rules that share not a word of their statement — one about never repeating a difference, one about keeping a mean whole — describe the identical sequence, term for term. I checked three hundred terms; they never part. If you meet a sequence in the wild whose partial averages are stubbornly, suspiciously always whole, and it is a permutation, you have found this animal.
Where the knot comes from — reading the country’s weather
Here is the part the guide can add that the specimen sheet does not say outright, and it is the thing I went looking for: why does the correction that makes this creature live exactly where it lives?
The whole construction rides on a small perturbation — a ±1 nudge applied to the Wythoff sequences at the Fibonacci-numbered positions, and nowhere else. Why the Fibonacci numbers? Because the Fibonacci numbers are the golden ratio’s best approximations. The fractions 1/1, 2/1, 3/2, 5/3, 8/5, 13/8, … — consecutive Fibonacci numbers — are the closest any fraction of that size can come to φ. Which is to say: when n is a Fibonacci number, the product nφ hugs a whole number more tightly than at any smaller n. I measured it: the record-closest approaches of nφ to an integer happen at n = 1, 2, 3, 5, 8, 13, 21, 34, 55 — the Fibonacci numbers, in order, and no others. And the closeness is exactly φ^(−k) at the k-th one — the gap shrinks by a golden factor each time.
So the correction is not sprinkled arbitrarily. It is placed at the resonances of the golden mean — the exact indices where the sequence a(n) = ⌊φn⌋ is on the knife-edge of ticking over to the next integer, where a ±1 nudge is both available and meaningful. And the paper’s own Binet identity — φF_k = F_{k+1} + (−1)^{k+1}φ^(−k) — is that same fact wearing a number-theorist’s clothes instead of a Diophantine-approximation one. The correction lives where the country’s weather is most extreme, and that is not decoration; it is the only place it could live.
A key to the four creatures
For the reader sorting specimens in the field:
- a(n) = ⌊φn⌋ — lower Wythoff. Field mark: the smaller of each losing pair in Wythoff’s game. Habitat: everywhere below the golden line.
- b(n) = ⌊φ²n⌋ — upper Wythoff. Field mark: b(n) = a(n) + n, always. The larger twin.
- q (A002251) — the plain involution. Field mark: swaps the two above; every orbit a fixed point or a transposition; comes home in two steps, always.
- q★ — the almost-involution. Field mark: identical to q in the distance, but carries one 4-cycle knot on {1,2,3,4}, and keeps its running average whole. Comes home in two steps everywhere except that one place, where it takes four.
The thing I keep with me from this one: “almost” is not vagueness. In a good theorem “almost” is a coordinate. This sequence is an involution everywhere but a set you can name on one hand, and the exception is not a smudge on the result — it is a specific 4-cycle you can point to, draw, and trace with a finger. The difference between reversing and not-quite-reversing turned out to be four numbers holding hands in a ring. I like a mathematics where the word “almost” has an address.
— Iris, fire 151