Digit-Partitioning Primes and the Alignment Formula
Cite this paper
A. S. Petty, Digit-Partitioning Primes and the Alignment Formula, DOI: 10.5281/zenodo.21844074.
Abstract
A repeating digit records a remainder state, but it need not identify that state. For a prime not dividing a positional base , we prove that the digit map is injective on the nonzero remainders exactly when . In this range, two synchronized periodic tails either agree at every position or disagree at every position, even when the remainders belong to several cycles.
Let , where every prime factor of divides . Compare all proper fractions with after one common depth that clears , giving each terminating fraction score one. For every digit-partitioning prime, the mean alignment is The cycle lengths and the number of cycles disappear from this count. In base ten, the same formula covers the fixed repetends at , the full cycle at , and the complement pairs at . The boundary identifies exactly when digit agreement recovers equality of remainder states and the alignment reduces to counting complete matches.
The Boundary of Digit Separation
In base ten, the ten proper fractions use every decimal digit exactly once at each position of their repetends. The twelve proper fractions cannot do this. Their leading digits repeat and , since twelve nonzero remainder states must enter ten digit bins. At , observing a digit identifies its remainder. At , a shared digit can come from two different states.
This change determines how the fraction table can be counted. Long division advances remainders by a permutation. If different states write different digits at one position, they remain separate at every position. Synchronized periodic tails therefore give complete agreement or none. Once distinct states can write the same digit, partial agreement becomes possible.
For every prime , the exact boundary is . Let with supported on the prime factors of , and compare every proper fraction with after a common division depth that clears . In the injective range, the terminating rows receive score one, exactly nonterminating rows match throughout, and every other row disagrees throughout. Thus The decimal cases , , and have fixed states, one cycle of six, and five complement pairs respectively. Their repeating patterns differ, but the alignment requires the same count. The lengths and arrangement of the cycles are unnecessary once the digit map distinguishes their states.
Coordinatewise agreement under cyclic shift is classical Hamming correlation [1]. Kak and Chatterjee study this observable for full-period reciprocal digit sequences, including complement structure and Hamming-distance and autocorrelation bounds [2]. Repetend multiplication, varying bases, and Midy-type complement phenomena are also established [3, 4]. The sharp digit boundary and the resulting count concern the complete denominator table. They do not require the base to generate the unit group modulo .
The one-digit alignment at prime [5] is one case of this common mechanism. The limit selects as the only prime in the digit-partitioning class that can cross the reciprocal golden threshold. The case is available whenever . The injectivity boundary establishes how far the same count applies before distinct remainder states can contribute partial matches.
Setting
Let be a positional base and a prime not dividing . The multiplicative order is the length of the repetend of in base [8]. The group has order , and the cyclic subgroup has order , partitioning into cosets. Within each coset, the repetends of are cyclic permutations of a common string.
Definition 1 (Base-supported integers). A positive integer is -supported if every prime factor of divides . Equivalently, divides some power of .
Definition 2 (Synchronized repetend alignment). For with a -supported integer, the repetend alignment is defined at a common division depth. Choose with . Beginning immediately after the first base- digits, compare the next digits of with the corresponding digits of . For a terminating fraction, set . Otherwise, let be the fraction of the synchronized positions at which the two digits agree. Then is the mean of these scores over .
After depth , every nonterminating tail has reduced denominator and period . The definition does not depend on the choice of . Replacing by a larger clearing depth advances both nonterminating tails by the same power of , so it rotates both length- words together and leaves their position-wise match proportion unchanged.
Remark 3 (Common division depth). We compare every fraction at the same long-division depth. We do not restart each fraction when its own shortest prefix ends. That phase reset defines a different statistic. The common-depth convention reads every floor evaluation at the same position. For example, in base , Resetting the repeating blocks makes match . Reading all three fractions after one common digit makes match instead.
The Digit Function
One step of long division turns a remainder into a digit and a new remainder. The next function records the digit.
Definition 4 (Digit function). For a prime not dividing , the digit function is The floor function partitions into contiguous bins of nearly equal size [6].
Lemma 5 (Digit-function injectivity). If , then is injective on .
Proof. Two cases.
Case . For , since for . The map is a bijection from to .
Case . For distinct with , we have . Coprimality rules out , so actually gives . Therefore The two quantities before flooring are separated by more than one, so their floors are strictly ordered. ◻
Remark 6. When , the function maps distinct remainders into digit values. By the pigeonhole principle [7], cannot be injective.
The Digit-Partitioning Property
Definition 7 (Digit-partitioning primes). A prime is digit-partitioning in base if, for every pair of distinct numerators , the base- expansions of and have different digits at every common position. Positions are phase-aligned from the radix point. A nontrivial cyclic rotation is therefore a different repetend phase, not an identical repetend.
Theorem 8 (Digit-partitioning characterization). A prime not dividing is digit-partitioning in base if and only if .
Proof. At position of the repetend of , the digit is . For distinct fractions and with , the arguments and are distinct modulo , since is invertible.
If , Lemma 5 makes injective on , so distinct arguments produce distinct digits at every position. Hence is digit-partitioning.
If , then maps remainders into values, and the pigeonhole principle yields distinct with . The first repetend digits of and agree. Thus is not digit-partitioning. ◻
The Alignment Formula
Proposition 9 (Multiplicative cycle partition). Let with a -supported integer and . The non-terminating fractions in partition into families of fractions each, where . Every synchronized repetend has length . Within each family the repetends are cyclic shifts of one another; repetends from different families are not cyclic shifts.
Proof. The nonzero multiples of are . Their reduced denominators divide , so they terminate. If , the reduced denominator still has the factor and the expansion does not terminate. Thus there are terminating fractions and nonterminating ones.
Choose with and write , where since is -supported and . Then After the common clearing depth , the periodic tail is generated by the nonzero residue . Multiplication by permutes the nonzero residues. Each nonzero residue class modulo has exactly representatives in . Thus each fixed starting phase occurs exactly times; a full orbit of phases occurs times.
Starting from any nonzero residue , the remainder returns to after digits exactly when . Since is invertible, this is equivalent to . A repeating block of length represents a rational whose reduced denominator divides . Since the tail has reduced denominator , a shorter block would force , and hence an earlier return. Every nonterminating tail therefore has least period .
The residues partition into cosets of in . Residues in the same coset produce cyclic shifts of a single repetend; residues in different cosets produce distinct repetends, since their orbits under multiplication by are disjoint. A coset has residues, and every residue occurs times. Hence each family has fractions. ◻
Theorem 10 (Exact alignment formula). If is prime, , and is -supported, then
Proof. Choose with and put . At synchronized position , the reference tail has remainder while the tail of has remainder . The remainder is nonzero. Therefore the two remainders agree if and only if .
If , every synchronized digit agrees with the reference. If , the two remainders are distinct at every synchronized position. Lemma 5 makes the digit function injective, so none of their digits agree, whether the two phases lie in different cosets or in the same one.
The count now splits into three cases.
The terminating fractions (multiples of ). Each contributes alignment .
The numerators , all congruent to modulo . Each contributes alignment .
The remaining non-terminating fractions. Each contributes alignment .
Thus exactly of the fractions are aligned. ◻
Corollary 11 (Alignment limit). For fixed digit-partitioning , the alignment as through -supported integers.
Enumeration
The digit-partitioning primes in base are precisely the primes that do not divide .
| Base | Digit-part. primes | Alignment limits |
|---|---|---|
The class of digit-partitioning primes depends on . The alignment formula is uniform. It makes no reference to the base, to the order , or to any of the mechanism-specific structure described below.
In base , the three digit-partitioning primes arise in structurally distinct ways. For , , so repetends are single digits. For , , so is a primitive root and the repetend is a cyclic number with all distinct digits. For , with , so repetends form nines-complement pairs.
These three mechanisms are unified by the single condition and the injectivity of .
The Golden Threshold in the Digit-Partitioning Class
Write for the golden ratio. Corollary 11 gives the alignment limit for every digit-partitioning prime. The golden threshold therefore selects, within this class, precisely those primes for which , i.e. . Among primes , only satisfies this. It belongs to the class whenever ; if , no admissible prime crosses the threshold. The prime is the familiar degenerate exception when the base is odd.
Why the Golden Ratio Selects the Prime Three [5] studies the golden threshold in the one-digit regime. The digit boundary places that regime inside a larger collision-free class. The same boundary is present in every base.
The Digit Boundary
At , every possible digit is used and still identifies one nonzero remainder. This is the last prime size at which the digit map can do so. Since , the remainder cycles are complement pairs. In decimal, the five pairs at occupy all ten digit values without sharing a position.
The same count applies to the six-cycle at and the fixed repetends at . A matching digit identifies a matching remainder, and division carries that equality through the whole period. Different states cannot acquire an isolated match. Cycle shape is visible in the digits, but the alignment can be counted without reconstructing it.
At , the distinction is visible in two fractions, Their digits agree in the third and sixth positions, giving score , although their remainder states remain different throughout. A shared digit no longer forces a shared trajectory. The exact formula has reached its natural boundary because it counts complete matches and cannot include this partial agreement.
The threshold specifies how much of the remainder dynamics a single digit reveals. Within it, that digit distinguishes all nonzero states. Beyond it, agreement can be temporary, and the repeating block carries information that no single digit can supply.
References
[1]A. Lempel and H. Greenberger, Families of sequences with optimal Hamming-correlation properties, IEEE Trans. Inform. Theory 20 (1974), no. 1, 90–94. https://doi.org/10.1109/TIT.1974.1055169.
[2]S. C. Kak and A. Chatterjee, On decimal sequences, IEEE Trans. Inform. Theory 27 (1981), no. 5, 647–652. https://doi.org/10.1109/TIT.1981.1056394.
[3]N. J. Armstrong and R. J. Armstrong, Some properties of repetends, Math. Gaz. 87 (2003), no. 510, 437–443. https://doi.org/10.1017/S0025557200173619.
[4]J. Lewittes, Midy's theorem for periodic decimals, Integers 7 (2007), Paper A02, 11 pp. https://eudml.org/doc/127778.
[5]A. S. Petty, Why the Golden Ratio Selects the Prime Three, research note, January 2020 (revised September 2026). DOI: https://doi.org/10.5281/zenodo.20399951.
[6]A. S. Fraenkel, The bracket function and complementary sets of integers, Canad. J. Math. 21 (1969), 6–27.
[7]R. P. Stanley, Enumerative Combinatorics, vol. 1, 2nd ed., Cambridge University Press, 2012.
[8]G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008.