
Multiply every nonzero remainder modulo thirteen by the same number and ask whether any of them keeps its first decimal digit. For nine of the eleven multipliers other than one, none does. At twenty-nine the count is nine again, at eighty-three it is nine, and at a thousand and nine, with over a thousand multipliers to choose from, it is still exactly nine.
Counts like this usually grow with the problem. The oldest version is the matching problem Montmort solved in 1708, usually told today as a cloakroom handing back hats at random, where the number of ways for nobody to get their own hat grows so quickly that its share of all the ways settles near . Here the prime can grow without limit and the count does not move. In base there are always exactly of these multipliers, and they can be written down as fixed fractions before the prime is even chosen. Phase-Filtered Ramanujan Sums and the Spectral Gate found these zeros as a cancellation in a spectrum. Here they come straight from the digit bins.
Thirteen’s bins are small enough to hold in your head. Two of its fractions begin with three,
4/13 = 0.307692...
5/13 = 0.384615...
two more, and , begin with six, and every other first digit belongs to just one fraction. Grouping the numerators by first digit gives ten bins, eight holding one number and two holding two.
Multiply every numerator by six and take the remainder after division by thirteen. Five becomes four, since leaves remainder four, and both fractions begin with three. Eight becomes nine, and both begin with six. No other numerator keeps its first digit, so if counts the collisions for multiplier , we have .
Now try every multiplier from two through twelve. One is left out, since it leaves all twelve rows alone.
| Multiplier | Collisions |
|---|---|
| 2 | 0 |
| 3 | 0 |
| 4 | 0 |
| 5 | 0 |
| 6 | 2 |
| 7 | 0 |
| 8 | 0 |
| 9 | 0 |
| 10 | 0 |
| 11 | 2 |
| 12 | 0 |
Each of the nine multipliers with a zero moves every numerator out of its original digit bin, and I call such a multiplier bin deranging, after the hats.
At thirteen only two nonidentity multipliers lie outside the zero set, and at a thousand and nine there are 998, yet the number with no collisions is nine both times. In base seven the count is six for every prime greater than seven, and in base three it is two. For every integer base and every prime there are exactly bin-deranging multipliers, and that is the gate width theorem.
In base ten the entire zero set comes from nine fixed fractions, running from to with in the middle.
These are fractions in modular arithmetic. The fraction modulo thirteen means the number that gives when multiplied by nine, which is ten, since is one less than a multiple of thirteen. At twenty-nine the same fraction gives sixteen, since is one less than a multiple of twenty-nine. The fraction stays fixed while its residue changes with the prime.
For a general base, run from one through . The list is
Every denominator is smaller than , so every division is defined, the resulting multipliers are distinct, and these are all the zeros.
Read the list from opposite ends and the first and last fractions multiply to one, as do the second and second-last. In the formula, and give inverse multipliers, so undoing a bin derangement is another bin derangement.
For an even base the middle fraction is , which sends digit to , and no digit is its own complement in an even base. Decimal pairs zero with nine, one with eight, and so on. In an odd base the middle digit is its own complement, so this argument does not give a derangement.
The bins are intervals of numerators, and multiplication modulo a prime scatters them, but a change of labels makes them easier to follow. Replace each numerator by the remainder of divided by thirteen. The pair four and five becomes one and eleven, and the pair eight and nine becomes two and twelve.
A shared first digit has become a shared last digit. The digit itself need not stay the same, but which numbers belong together does.
To see why, use base and write . The brackets mean take the remainder between one and . If is the first digit of , long division says
The prime is coprime to the base, so multiplication by permutes the digit classes modulo , and two first digits agree exactly when their transformed remainders have the same last digit.
Multiplication by also survives the relabeling, since the transformed image of is . A collision is now exactly
Multiply, reduce modulo the prime, then compare modulo the base. What we are looking for now is numbers separated by whole multiples of .
Give each nonidentity multiplier a label between one and by solving
The label is excluded because it would give , and every other label occurs exactly once. The reverse rule is .
Labels below the base give no collisions and labels above the base always give one, and both statements can be proved without examining a table.
Suppose a collision exists and put . Since and agree modulo , we can write for an integer , and they are distinct because . Multiplying the relation by gives
Now suppose . Stepping by takes us only part of the way that stepping by does, so the number lies strictly between and , whether is positive or negative.
Both endpoints lie in the open interval , which contains no multiple of , so the required divisibility is impossible. That settles every label below the base.
Above the base, write down a match. For , take
Both lie between one and and agree modulo , and the defining equation gives , so .
At thirteen, multiplier six has label eleven, and the construction gives and . Undo the substitution and they become eight and nine, the collision from the beginning.
Every nonidentity multiplier is on one side or the other, and the zero labels are exactly . Substitute into and we recover , so the count and the list come from the same argument.
The left-hand tables order multipliers numerically and the right-hand tables order them by . The columns stay fixed, and no comparison is added or removed.
Columns are transformed remainders , and a colored cell means that and share a last decimal digit, with the color naming that digit rather than the original leading digit. The identity multiplier is left out of both orders.
Gold marks the nine empty rows, which on the right become the bottom band at labels one through nine. Label ten is left out because it would give multiplier zero, and every row above the band contains a match.
The largest table has cells, shown in both orders and all kept in the full-size plate. The colors show the arrangement beyond the gate changing from prime to prime while the empty band stays the same width.
The proof uses every nonzero remainder. It does not require the base to visit them all in one cycle.
If is a primitive root modulo , its powers visit all remainders. Multiplication by then compares a complete repetend with its shift by . Nonzero shifts and nonidentity multipliers correspond one to one, so exactly nonzero shifts have no digit matches.
On a shorter cycle, a shift can miss every digit there while producing collisions elsewhere. The full multiplier classification does not give the exact zero count on that shorter word.
Bin Derangements and the Gate Width Theorem gives the formal statements and their relation to earlier work on sequence correlation.
Thirteen’s two crowded bins allow four moves in all. Inside the digit-three bin we can go from four to five or from five to four, and inside the digit-six bin from eight to nine or from nine to eight. Each of those four ordered pairs belongs to exactly one multiplier, the destination divided by the starting residue modulo thirteen.
A bin containing residues has ordered pairs with distinct entries, and adding over bins counts every collision outside the identity. The zero multipliers contribute nothing and the remaining multipliers share the total, so their mean is
At thirteen, four matches divided between two multipliers gives a mean of two. At the boundary prime eleven every bin is a singleton, all nonidentity multipliers are deranging, and there is nothing left to average, so the mean requires .
At twenty-nine, eight bins hold three residues and two hold two, supplying matches. Eighteen nonidentity multipliers lie outside the zero set, giving a mean of .
Write , with , so there are bins of size and of size . Their ordered pairs total
There are multipliers to share those pairs. Thus
The mean equals two throughout . In this range the bins have one or two members, apart from the endpoint where all have two, so the only nonzero within-bin contributions are two per double bin, and their total is twice the number of nonidentity multipliers outside the gate.
When and the mean is defined, all bins have the same size and the formula reduces to .
The sum does not say how each individual multiplier behaves, only exactly how many matches they have to share.
These wider plates place the four prime fields side by side, join the change of coordinates to its parameter line, and collect the ordered pairs inside the two crowded bins.
At thirteen the two crowded bins leave only four matches to share out. Once the prime passes twice the base every bin is crowded and more multipliers keep a digit somewhere in the table, but nine still keep none, and they are the same nine fractions, through , reduced modulo whatever prime we choose.
Discussion
Sign in to join the discussion.