Bin Derangements and the Gate Width Theorem
Cite this paper
A. S. Petty, Bin Derangements and the Gate Width Theorem, DOI: 10.5281/zenodo.21850917.
Abstract
Let be prime and let be an integer with . The leading-digit map partitions the nonzero residues modulo into bins. A multiplier is called bin deranging when it moves every residue out of its original bin. The bin-deranging multipliers are exactly There are therefore exactly of them for every prime . The count depends only on the base and requires no primitive-root hypothesis. The proof uses the permutation , which turns the interval bins of the digit map into ordinary residue classes modulo .
When is a primitive root modulo , the same set gives exactly the zero lags in the cyclic digit-match autocorrelation of . For , an independent double count gives the exact mean collision count over the nonidentity, nonderanging multipliers. Writing with , that mean is It equals throughout the full range . The base fixes the width of the zero gate. The prime determines what happens beyond it.
Nine Zeros at Prime Thirteen
Take in base . The twelve nonzero residues split into the ten digit bins Multiplication by leaves two residues in their original bins, as does multiplication by . Every other nonidentity multiplier moves every residue into a different bin. There are nine such multipliers. The same count is obtained for every prime greater than .
Cyclic coordinate agreement is the complement of cyclic Hamming distance. Lempel and Greenberger place this observable in the general theory of periodic-sequence correlation [1]. Kak and Chatterjee study Hamming distance between prime-reciprocal digit sequences and their cyclic shifts. They also bound numerical autocorrelation in a symmetric digit encoding and give a sufficient condition for zero numerical cross-correlation between two maximum-length sequences [2]. Those product-based correlations differ from the digit-match count considered here.
Phase-Filtered Ramanujan Sums and the Spectral Gate [3] expresses digit collisions through a spectral selector. The zero set also admits a direct description from the digit bins, without Fourier coordinates.
The result below works on the complete multiplier group without requiring the base to be a primitive root. It identifies every zero multiplier for every prime and then evaluates the mean collision mass outside the zero set. The prime changes the sizes and contents of the bins, yet the number of zero multipliers remains fixed at .
For the rest, fix a prime and an integer with . Let denote the least positive residue of a nonzero class modulo . For , define and The sets are consecutive intervals. Their exact sizes are where the last term removes the excluded endpoint from the last bin. Equivalently, if then exactly bins have size and the other bins have size .
Indeed, is the intersection of with the half-open interval . Counting those integers gives (1). Each count is or , and the counts sum to , which gives the stated distribution.
For , define its collision count by
Definition 1. A multiplier is bin deranging when . Thus no residue remains in its original bin under multiplication by . This is the partition form of the usual derangement condition [5].
The identity multiplier is never deranging, since . The question concerns the remaining multipliers.
Intervals become residue classes
The bins are awkward to move multiplicatively because they are intervals. One change of variables removes that difficulty.
Lemma 2 (Conjugation). For , put . Then For any , The permutation therefore sends the digit bins to the residue classes modulo inside .
Proof. The first identity is Euclidean division. Reducing it modulo gives Since is prime, is invertible modulo . The values of lie in , so two such values are equal exactly when their corresponding values of are congruent modulo . ◻
Lemma 3 (Collision congruence). For every ,
Proof. Multiplication by permutes the nonzero residues modulo . Apply Lemma 2 to and , then replace by . The second transformed residue is . ◻
The interval problem has now become a congruence problem. Its entire zero set is controlled by one residue.
The gate width theorem
For , define The value cannot occur. Indeed, it would imply and hence .
Lemma 4 (The zero side). If , then .
Proof. Suppose a collision exists. Lemma 3 gives residues and in with for some integer . The defining congruence gives
If , then If , write with . Then In either case a positive integer strictly smaller than is divisible by , which is impossible. No collision exists. ◻
Lemma 5 (The positive side). If , then .
Proof. Set The assumption places both and in , and . Also so . Thus gives a collision. ◻
The two lemmas cover every nonidentity multiplier because is nonzero and cannot equal .
The set of deranging multipliers is the zero gate. Its cardinality is the gate width.
Theorem 6 (Gate width). Let be prime and let be an integer with . The bin-deranging multipliers are exactly There are exactly of them.
Proof. The map is a bijection from onto . Its inverse is . The exclusions on each side make both maps well defined. Lemmas 4 and 5 show that exactly when Solving gives . Put to obtain (5).
These multipliers are distinct. Equality of the expressions for and implies . Since and , this forces . ◻
The theorem does more than count the zero set. It writes down every element in it. The prime changes their locations modulo , while the base fixes their number.
Corollary 7 (Inverse pairing). The deranging multipliers are closed under inversion. The parameters and give inverse elements. If is even, the middle parameter gives the self-inverse multiplier .
Proof. The two expressions have product . When , either expression is . ◻
For subsets , write
Corollary 8 (Ratio set). The union of the within-bin ratio sets has size
Proof. A multiplier belongs to exactly when some satisfies . The union therefore contains precisely the nonderanging multipliers. Theorem 6 removes elements from the nonzero residues, leaving . ◻
Example 9 (The base-ten gate at thirteen). For and , formula (5) gives The only nonidentity multipliers outside the zero set are and . Each has collision count . These statements follow directly from the bins displayed in Section 1.
Repetend lags
The multiplier theorem does not need a primitive root. Its interpretation as a complete lag theorem does.
Assume that is a primitive root modulo . The standard link between multiplicative order and recurring expansions [4] shows that the base- repetend of has length . Its digit at position is For a nonzero lag modulo , define the cyclic digit-match autocorrelation where the subscript is read modulo .
Proposition 10 (Zero lags). If is a primitive root modulo , then Exactly nonzero lags have autocorrelation zero. They are the lags for which for some .
Proof. As runs from to , the residue runs once through . Replacing by turns the condition into This proves the identity. The map from nonzero lags to nonidentity multipliers is bijective, so Theorem 6 gives the count and the displayed characterization. ◻
Remark 11. If is not a primitive root, its powers visit only the subgroup generated by . Every full-group derangement that lies in this subgroup gives a zero lag on the shorter orbit. The converse need not hold, since a multiplier may avoid collisions on the subgroup while having collisions elsewhere in . Theorem 6 therefore remains a full-group statement outside the primitive-root case. An exact count on a shorter repetend requires the collision function restricted to its orbit.
The sum rule
Let . The first moment of the collision counts follows from one exact double count.
Proposition 12 (Sum rule).
Proof. Count ordered pairs of nonzero residues that lie in the same bin. The right side counts them one bin at a time. For each pair there is exactly one multiplier with , so the left side counts the same pairs one multiplier at a time. ◻
Equation (2) and the bin-size distribution following (1) give
Call a multiplier constructive when it is not the identity and has positive collision count. If , the number of such multipliers is At the boundary , every bin is a singleton and every nonidentity multiplier is deranging. The constructive set is empty, so its mean is undefined.
Theorem 13 (Mean constructive collision count). Let . The mean of over the constructive multipliers is If is a primitive root modulo , the same expression is the mean of over the nonzero lags for which .
Proof. The deranging multipliers contribute zero, while . Subtracting the identity term from the sum rule and using (6) gives Division by (7) proves (8). Under the primitive-root hypothesis, Proposition 10 identifies nonzero lags with nonidentity multipliers. ◻
Corollary 14 (Exact special ranges). Under the hypotheses of Theorem 13, the following statements hold.
If , then .
The equality holds exactly when .
As tends to infinity with fixed, and tends to .
Proof. The first statement follows by setting in (8). For the second, subtract after clearing the positive denominator. The equality becomes Thus either with , which gives , or and , which gives . These cases combine into the stated range.
Finally, rewrite (8) as Since , the second term remains bounded when is fixed. ◻
Gate Width and Collision Mass
The conjugation turns interval geometry into congruence classes. It exposes every zero multiplier at once. The sum rule then gathers the remaining collisions through the exact bin sizes. These are separate pieces of the same finite partition. One locates the zero set, and the other weighs its complement.
When the base is primitive modulo the prime, the result reads as a complete statement about the zero lags of one reciprocal digit word. Without that hypothesis, it still classifies the full multiplier group. The zero gate keeps its width. Only the mass beyond it moves.
References
[1]A. Lempel and H. Greenberger, Families of sequences with optimal Hamming-correlation properties, IEEE Transactions on Information Theory 20 (1974), 90–94. doi:10.1109/TIT.1974.1055169.
[2]S. C. Kak and A. Chatterjee, On decimal sequences, IEEE Transactions on Information Theory 27 (1981), 647–652. doi:10.1109/TIT.1981.1056394.
[3]A. S. Petty, Phase-Filtered Ramanujan Sums and the Spectral Gate, April 2022. doi:10.5281/zenodo.21850675.
[4]G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008.
[5]R. P. Stanley, Enumerative Combinatorics, vol. 1, 2nd ed., Cambridge University Press, 2012.