The Alignment Limit for All Primes
Cite this paper
A. S. Petty, The Alignment Limit for All Primes, DOI: 10.5281/zenodo.21844294.
Abstract
Adding factors supported on the base can change the limiting alignment of a prime-denominator family. In base ten, the prime gives two distinct subsequential limits, and . Let , let be prime, and let be supported on the prime factors of . We prove the exact formula Here , the reference tail follows the coset with and , and records the digit-bin sizes encountered by that coset. The formula is exact at every finite and uses one synchronized division depth for all fractions.
Different cosets can give different subsequential limits. If all cosets have the same normalized bin sum, as they do when is a primitive root modulo , the limit is , where counts the nonzero remainders emitting digit and .
For every prime with , every coset, and every -supported , we prove the sharp bound , where . The constant is the optimal uniform supremum. Among primes not dividing the base, is the only one that can cross the golden threshold. Denominators supported entirely on the base terminate and have alignment one by definition.
One Prime, Two Limits
At in base ten, synchronized alignment does not settle to one value. An exhaustive enumeration of its four multiplicative cosets gives for two cosets and for the other two. The gap is small but exact. A single prime therefore carries two subsequential limits.
Splitting becomes possible when the digit function stops being injective. The base-supported part creates a finite prefix, then chooses the multiplicative coset followed by the periodic reference tail. Once two remainder states can emit the same digit, different cosets can pass through digit bins of different sizes. The prime alone no longer determines the limit.
Hamming agreement between a reciprocal digit sequence and its cyclic shifts already appears in the communications literature [1]. There is also a mature arithmetic theory for digit values along a single multiplicative orbit. Girstmair relates full-period digit variance to Dedekind sums [3]. His work on class number factors studies sums over selected positions of a full period [2]. Murty and Thangadurai treat digit means when the base need not be a primitive root [4], and Girstmair develops mean and variance formulas for further proper orders [5]. The statistic here averages a digit-equality indicator over the complete denominator ensemble and isolates the remaining coset dependence in . A primitive root gives one orbit containing every nonzero remainder, so no choice of coset remains. The contribution proved below is the exact coset formula together with the sharp uniform bound across all orders and all cosets.
For digit-partitioning primes , characterized by , Digit-Partitioning Primes and the Alignment Formula [7] proves Singleton digit bins make every coset indistinguishable in that range. Above the boundary, the same expression remains a lower bound, and the missing contribution depends on the coset selected by .
The exact correction is carried by the coset bin sum It records where multiplication by the base meets the interval partition made by the floor function. The resulting formula covers every order and every coset. It also gives the sharp uniform bound for every prime that does not divide the base, placing the entire range strictly below the golden threshold.
Synchronized Alignment
Definition 1 (Base-supported integers). An integer is -supported if every prime factor of divides . Equivalently, divides a power of .
Definition 2 (Synchronized repetend alignment). Let be prime, let be -supported, and put . If , every fraction with denominator terminates, and we set . If , choose one depth with , and let . Beginning immediately after the first base- digits, compare the next digits of every with the corresponding digits of . A terminating fraction receives score one; otherwise its score is its proportion of matching positions. The mean of these scores over is the synchronized repetend alignment .
In the first branch, is itself -supported. In the periodic branch, the definition is independent of the clearing depth. Increasing advances both periodic tails by the same power of , rotating both length- words together without changing their match proportion. We never restart the individual fractions at separate canonical phases.
The Digit Function and Its Bins
Definition 3 (Digit function and bins). For a prime not dividing , the digit function is for . The bin of digit is , and its size is .
Lemma 4 (Digit-bin distribution). Write with . Exactly digit bins have size , and the remaining bins have size . Therefore the sum of squared bin sizes is
Proof. The condition places the integer in the half-open interval Since is prime and , we have and . Each interval has length , so each interior bin contains either or integers. The first bin contains exactly the integers , and reflection gives the same count for the last bin. Thus every bin has size or . There are remainders altogether, so exactly bins have the larger size. Hence ◻
Corollary 5 (Singleton-bin square sum). When , all bins have size at most , so .
The Coset and Its Bin Sum
For with a -supported integer, choose with and set . The coset is independent of the choice of . If is another clearing depth, then , which lies in the same coset of . The reverse ordering follows by swapping the two depths. After the common prefix, every nonterminating row is governed by the nonzero residue . In particular, the reference tail follows , not necessarily the subgroup itself.
Definition 6 (Coset bin sum). For a coset of in , the coset bin sum is where is the size of the -th bin.
Different -supported values of can yield different cosets and therefore different bin sums.
Remark 7. The coset has equidistributed bin sum if If every coset has this value, the alignment has one limit even when the selected coset changes with . The stronger condition for every forces the displayed identity. When is a primitive root modulo , there is only one coset and the identity is automatic.
The Alignment Limit
Theorem 8 (Exact coset alignment formula). For any prime and any -supported , the synchronized repetend alignment of is where and is determined by with .
Proof. The nonzero multiples of below terminate and each contributes score one. The remaining numerators are nonterminating. After the common prefix, their starting states are .
At synchronized position , let be the reference state. The state for is As ranges through the nonzero residue classes modulo , the map is a permutation. Each residue class is represented by exactly numerators below . Therefore the total match score at position is . Summing over one period and dividing by , the nonterminating fractions contribute Adding the terminating contribution gives ◻
Corollary 9 (The correction term). For every admissible , Equality holds exactly when every state in lies in a singleton digit bin.
Proof. Every state belongs to a bin of size at least one, so . The identity follows by subtracting the two formulas. Equality means for every . ◻
Remark 10. Along any sequence of -supported values with for which the selected coset is fixed at , the alignment tends to . Different cosets can give different limits, so the unrestricted limit need not exist.
Remark 11. An exhaustive enumeration of all four cosets performed with nfield [9] for , , and gives two pairs with distinct bin sums. The subgroup and one other coset have ; the cosets and have . The two values give two subsequential limits, and . For , , and the coset cycles with .
Corollary 12 (Limit under equidistribution). Suppose every coset of has equidistributed bin sum in the sense of Remark 7. Then, as through -supported integers, the alignment limit exists and equals where, by Lemma 4, with and . In particular, this holds whenever is a primitive root modulo .
Proof. For every coset, substitution gives The value is independent of the coset, so it remains the limit even when changes. If , the unique coset contains every nonzero residue and , so the hypothesis is automatic. ◻
Corollary 13 (Digit-partitioning recovery). For every digit-partitioning prime with and every -supported , Consequently, and .
Proof. The digit function is injective, so every occupied bin is a singleton. Thus for every coset. Theorem 8 gives the finite formula, and its limit is . Corollary 5 gives . ◻
The prime two is completely degenerate. If the base is even it belongs to the terminating case, while in an odd base the corollary gives . Thus it has alignment one in every base.
The one-digit orbit
When , the order and is trivial. Every coset is a singleton, , and for each singleton lies in its own bin with . The exact theorem then gives recovering the union-count profile in Why the Golden Ratio Selects the Prime Three [6]. This is the one-position specialization of Corollary 13.
Enumeration in Base Ten
Corollary 12 gives the unique limit whenever all cosets have equidistributed bin sum.
For every displayed prime, nfield [9] exhausts every multiplicative coset and evaluates the values in Table 1.
| Equidist. | Subgroup limit | Decimal | |||
|---|---|---|---|---|---|
| 3 | 1 | 2 | |||
| 7 | 6 | 6 | |||
| 11 | 2 | 10 | |||
| 13 | 6 | 16 | |||
| 17 | 16 | 28 | |||
| 19 | 18 | 34 | |||
| 23 | 22 | 50 | |||
| 29 | 28 | 80 | |||
| 31 | 15 | 90 | |||
| 37 | 3 | 132 | |||
| 41 | 5 | 160 | |||
| 43 | 21 | 178 | |||
| 47 | 46 | 214 | |||
| 53 | 13 | 272 | |||
| 59 | 58 | 338 | |||
| 61 | 60 | 360 |
The Golden Ratio Bound
Theorem 14 (Sharp uniform bound). For every prime with , every base , and every -supported , Every subsequential alignment limit is at most and therefore remains strictly below .
Proof. Put . Every bin has size at most , so for every coset. The exact formula gives The strict step follows because the difference between its right and left sides is Indeed, and odd give . Finally, because , equivalently . ◻
Proposition 15 (Sharpness). The constant is the optimal uniform supremum.
Proof. Take and . The base has order four modulo five, and both digit bins have size two. Hence , so for , Theorem 14 shows that no finite admissible value reaches or exceeds . ◻
Together, Theorem 14 and Proposition 15 give the best uniform bound. Thus among primes that do not divide the base, only can produce alignment above . The result needs no equidistribution hypothesis and does not depend on the coset.
Coset Splitting and the Composite Boundary
The bin-sum formula
The quantity counts ordered pairs of nonzero remainders that emit the same digit. Therefore is the expected size of the bin containing a uniformly chosen remainder, while is the collision probability for two independent uniform remainders.
The role of equidistribution
An exhaustive nfield [9] enumeration of every coset for every prime below that does not divide ten shows that all cosets have equidistributed bin sum except at , , , and . At these four primes, different cosets meet digit bins with different total sizes. A structural characterization of the pairs for which every coset is equidistributed remains open. Character-sum methods provide the natural wider setting for that question [8].
Beyond the prime case
For denominators with supported on the base and prime, the exact formula accounts for every partial digit agreement. The example at shows why the reference coset must be retained even as grows. The sharp bound has a different source. No coset can encounter a bin larger than the floor partition allows, so every prime stays below .
Thus collisions can split the limiting alignment without allowing another prime to cross the golden threshold. A denominator whose part outside the base is composite requires a further argument; the prime formula does not classify that case.
References
[1]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.
[2]K. Girstmair, The digits of in connection with class number factors, Acta Arith. 67 (1994), no. 4, 381–386. https://doi.org/10.4064/aa-67-4-381-386.
[3]K. Girstmair, Digit variance and Dedekind sums, J. Number Theory 65 (1997), no. 2, 197–205. https://doi.org/10.1006/jnth.1997.2149.
[4]M. R. Murty and R. Thangadurai, The class number of and digits of , Proc. Amer. Math. Soc. 139 (2011), no. 4, 1277–1289. https://doi.org/10.1090/S0002-9939-2010-10560-9.
[5]K. Girstmair, Mean values and variances of the digits of , 2026. https://arxiv.org/abs/2606.29930.
[6]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.
[7]A. S. Petty, Digit-Partitioning Primes and the Alignment Formula, research note, April 2020 (revised September 2026), DOI: https://doi.org/10.5281/zenodo.21844074.
[8]H. Iwaniec and E. Kowalski, Analytic Number Theory, Amer. Math. Soc., 2004.
[9]A. S. Petty, nfield, software repository. https://github.com/alexspetty/nfield