Petty's Notebook
ArticlesPapersnfieldAbout
Get notified when new posts are published. No spam, just math.
Alexander S. Petty  |  ©2009-2026
← Back
Alignment

The Alignment Limit for All Primes

July 7, 202016 min read
Companion paper: The Alignment Limit for All Primes →
Recurrent paths settle towards two close but separate horizons. The paper finds that different remainder cycles can lead to genuinely different alignment limits.
Recurrent paths settle towards two close but separate horizons. The paper finds that different remainder cycles can lead to genuinely different alignment limits.

Anyone who has taken a limit learns early that the first few terms don’t matter. Change the opening of a sequence however you like and where it ends up stays the same. Repeating decimals seem to follow the same rule, because a factor of 2 or 5 in the denominator only adds a few digits at the front before the repetition starts. At 53 that rule fails. Keep doubling the denominator, 53, 106, 212, 424 and on, and the alignment never settles on one value. It alternates between two limits that differ by exactly 2/6892/6892/689, and which one it heads for is decided by the few digits in front.

That matters for the question Three and the Golden Ratio started. Digit-Partitioning Primes and the Alignment Formula showed that among primes up to b+1b+1b+1, only three can score above one over the golden ratio, about 0.618, but it relied on every remainder writing its own digit, which stops being true past that boundary. Partial matches then earn credit the old count never saw, and a large prime might collect enough of it to climb over the line. It never does, because the bins never get large enough, and from five on no prime reaches three fifths, in any base, whatever track the reference takes.

A sixth shows the harmless version of the choice. Most of us meet it in school as 0.1666…, a third cut in half. The repeating 3 turns into a repeating 6 with a 1 parked in front. Halving moves the division onto a different remainder, which writes a different digit, and since each remainder at three has a digit to itself, the alignment count can’t tell the difference.

Now do the same at 53.

 1/53 = 0.|0188679245283|
1/106 = 0.0|0943396226415|

The bars enclose the shortest repeating blocks. Both have thirteen digits, and no rotation of the first gives the second. Halving has put the tail on a different track through the remainders, and this time the track matters.

The thirteen-digit blocks of 1/53 and 1/106 are 0188679245283 and 0943396226415. The latter follows a one-digit zero prefix and is the period of 5/53. The thirteen-digit blocks of 1/53 and 1/106 are 0188679245283 and 0943396226415. The latter follows a one-digit zero prefix and is the period of 5/53.
The repeating blocks of 1/53 and 1/106. Gold marks the 3s and 6s, one of each in the first block and two of each in the second, and that small difference is where the story starts.

In Digit-Partitioning Primes and the Alignment Formula, tracks like this could be ignored. Every remainder wrote its own digit, and the alignment of every denominator pmpmpm came out to (2m−1)/(pm−1)(2m-1)/(pm-1)(2m−1)/(pm−1) whichever way the reference went around. Fifty-three is far past that boundary. Its fifty-two remainders share ten digits, so rows can agree partway, and how much they agree depends on which digits the reference writes along its track.

Four cycles through 53

Long division advances by multiplying the remainder by ten and keeping the new remainder after division. At 7, starting from 1 gives

1 → 3 → 2 → 6 → 4 → 5 → 1

Every nonzero remainder appears before the cycle closes. Starting elsewhere changes the entry point into the same loop.

At 53, the loop beginning at 1 contains thirteen remainders. The other thirty-nine form three more loops of thirteen. Multiplication by ten stays within the loop it enters. These four groups are the cosets of the subgroup generated by ten modulo 53. Their common length, thirteen, is the multiplicative order of ten.

Halving chooses a different group. After the first decimal place of 1/1061/1061/106, the remaining tail is 5/535/535/53. After the first two places of 1/2121/2121/212, it is 25/5325/5325/53. More generally, clearing the first aaa places of 1/(53⋅2a)1/(53\cdot2^a)1/(53⋅2a) leaves the starting remainder 5a5^a5a modulo 53. Successive doublings visit all four cosets, then repeat that order.

The factors we can clear this way are supported on the base. In decimal, they contain only twos and fives. Long division removes those factors from the tail denominator while leaving a particular starting remainder behind.

Follow the four remainder cycles

Each row below closes back onto its first entry. Together they contain every nonzero remainder modulo 53 exactly once.

 1 → 10 → 47 → 46 → 36 → 42 → 49
   → 13 → 24 → 28 → 15 → 44 → 16 → 1

52 → 43 →  6 →  7 → 17 → 11 →  4
   → 40 → 29 → 25 → 38 →  9 → 37 → 52

 2 → 20 → 41 → 39 → 19 → 31 → 45
   → 26 → 48 →  3 → 30 → 35 → 32 → 2

51 → 33 → 12 → 14 → 34 → 22 →  8
   → 27 →  5 → 50 → 23 → 18 → 21 → 51

The cycle containing 5 is the last row. Enter there to obtain the repeating digits of 1/1061/1061/106 after its prefix.

Two extra visits

A digit bin contains all the remainders that write a given next digit. At 53, fifty-two nonzero remainders must fit into ten bins. Eight bins contain five remainders each. The bins for digits 3 and 6 contain six each.

The block for 1/531/531/53 contains one 3 and one 6. It visits a bin of size six twice, and a bin of size five eleven times. Add the bin sizes encountered over the period and the total is

T=11⋅5+2⋅6=67.T=11\cdot5+2\cdot6=67.T=11⋅5+2⋅6=67.

The block for 1/1061/1061/106 contains two 3s and two 6s. Its total is

T=9⋅5+4⋅6=69.T=9\cdot5+4\cdot6=69.T=9⋅5+4⋅6=69.

The second block makes two more visits to the larger bins than the first, and that is the whole source of the split.

All ten decimal digit-bin sizes at 53, followed by one period from each of its four remainder cycles. The complement pair 1/53 and 52/53 has bin total 67. The pair 2/53 and 51/53 has total 69. All ten decimal digit-bin sizes at 53, followed by one period from each of its four remainder cycles. The complement pair 1/53 and 52/53 has bin total 67. The pair 2/53 and 51/53 has total 69.
The four cycles at 53, one row each. Gold cells are the digits 3 and 6, whose bins hold six remainders instead of five. The top two rows have two gold cells and total 67; the bottom two have four and total 69.

The four cycles come in complementary pairs. The fractions 1/531/531/53 and 52/5352/5352/53 add to one, and their periodic digits add to nine in every column. A 3 becomes a 6 and a 6 becomes a 3. The two crowded bins exchange places, so the total stays at 67. The pair 2/532/532/53 and 51/5351/5351/53 works the same way, with total 69.

The picture gives four cycles but only two totals. The block of 1/1061/1061/106 is a rotation of the row for 51/5351/5351/53.

Count the 106ths

To measure alignment, write all 105 proper fractions with denominator 106. Compare each row with 1/1061/1061/106, starting after the first decimal place and continuing for thirteen positions. Each repeating row receives the fraction of positions in which it agrees with the reference. The terminating row, 53/106=1/253/106=1/253/106=1/2, receives score one by the definition of alignment.

Every row uses the same division clock. We do not rotate individual blocks to improve their scores.

Now read down a column. After the prefix clears, each nonzero remainder modulo 53 is represented by two rows. If the reference writes an ordinary digit, its bin of five remainders supplies ten matching rows. Add the one credited terminating row and the column contributes eleven.

If the reference writes 3 or 6, the bin has six remainders. Twelve repeating rows match, and the terminating row brings the column total to thirteen.

At denominator 106, nine positions contribute eleven credits each and four positions contribute thirteen. Their sum is 151, giving mean alignment 151/1365. At denominator 106, nine positions contribute eleven credits each and four positions contribute thirteen. Their sum is 151, giving mean alignment 151/1365.
One column of the 106ths, two ways. Where the reference writes an ordinary digit, ten repeating rows match it, and where it writes 3 or 6, twelve do. The terminating row adds one either way.

The reference period has nine ordinary positions and four crowded ones. The total credit across the table is therefore

9⋅11+4⋅13=151.9\cdot11+4\cdot13=151.9⋅11+4⋅13=151.

There are 105 rows and thirteen positions. Dividing gives the exact mean alignment

α10(106)=151105⋅13=1511365≈0.1106.\alpha_{10}(106)=\frac{151}{105\cdot13} =\frac{151}{1365}\approx0.1106.α10​(106)=105⋅13151​=1365151​≈0.1106.

Inspect all 105 rows and their scores

This is the complete calculation. The three panels continue the numerator count from 1 through 105. Columns show decimal places 2 through 14, after the common prefix. Gold marks agreement with the reference digit. The teal row terminates and receives thirteen credits by convention, even where its zero digits differ from the reference.

The final column counts credited positions out of thirteen. Open the image and zoom to read individual rows.

The complete table of 105 proper fractions with denominator 106, showing decimal positions 2 through 14. Gold cells agree with the reference. Terminating row 53 is teal and receives thirteen credits. The score columns sum to 151. The complete table of 105 proper fractions with denominator 106, showing decimal positions 2 through 14. Gold cells agree with the reference. Terminating row 53 is teal and receives thirteen credits. The score columns sum to 151.
Every row of the 106ths against the reference. Gold cells match, the teal row 53/106 terminates and takes full credit, and the credit column adds up to 151.

The formula behind the count

Replace 53 by a prime ppp that does not divide the base, and 2 by a supported factor mmm. After clearing the common prefix, each nonzero remainder is represented by mmm rows. There are also m−1m-1m−1 terminating rows.

Let LLL be the period length and TTT the sum of bin sizes along the reference cycle. Repeating rows contribute mTmTmT credits over the period. Terminating rows contribute L(m−1)L(m-1)L(m−1). Divide by the number of rows and positions to obtain

αb(pm)=L(m−1)+mTL(pm−1).\alpha_b(pm)=\frac{L(m-1)+mT}{L(pm-1)}.αb​(pm)=L(pm−1)L(m−1)+mT​.

The formula carries the reference cycle with it through TTT. As mmm grows through values selecting a fixed cycle, the limit is

L+TpL.\frac{L+T}{pL}.pLL+T​.

At 53, the two possibilities are

13+6753⋅13=80689,13+6953⋅13=82689.\frac{13+67}{53\cdot13}=\frac{80}{689}, \qquad \frac{13+69}{53\cdot13}=\frac{82}{689}.53⋅1313+67​=68980​,53⋅1313+69​=68982​.

Mean decimal alignment of 53 times m for m equal to successive powers of two from 1 to 4096. Teal points with bin total 67 approach 80/689. Gold points with bin total 69 approach 82/689. Mean decimal alignment of 53 times m for m equal to successive powers of two from 1 to 4096. Teal points with bin total 67 approach 80/689. Gold points with bin total 69 approach 82/689.
Mean alignment at 53 times m, for m from 1 up to 4096. Teal points follow a reference cycle with T = 67 and gold points one with T = 69. They trade places at every doubling, and each color climbs toward its own dashed line.

Their difference is exactly 2/6892/6892/689, and no amount of doubling closes it. Each cycle the reference can follow has its own limit, and the doubling family visits two of them forever.

For a digit-partitioning prime, every occupied bin contains one remainder. Then T=LT=LT=L, and the formula reduces to the singleton-bin count

2m−1pm−1.\frac{2m-1}{pm-1}.pm−12m−1​.

Beyond that case, subtracting the singleton-bin expression leaves

m(T−L)L(pm−1)≥0.\frac{m(T-L)}{L(pm-1)}\ge0.L(pm−1)m(T−L)​≥0.

Every bin the reference visits contains at least the reference remainder itself, and each additional remainder in it adds a match. The correction counts exactly the agreement the singleton-bin calculation couldn’t see.

The whole table and the chosen cycle

There is another useful count hiding in the bins. A bin containing five remainders gives 52=255^2=2552=25 ordered pairs of remainders that write the same digit. A bin containing six gives 36. This includes pairing a remainder with itself.

Across all ten bins at 53, the total is

S=8⋅25+2⋅36=272.S=8\cdot25+2\cdot36=272.S=8⋅25+2⋅36=272.

The same number appears if we add the four cycle totals

67+67+69+69=272.67+67+69+69=272.67+67+69+69=272.

The bins count every matching pair at once. The cycle totals divide that count according to the route taken by the reference. Averaging across the four routes gives 68, halfway between 67 and 69, and an average of their limiting alignments equal to 81/68981/68981/689.

That middle value is a fair average over the four cycles, but the doubling sequence never goes near it. It keeps alternating between its two limits.

Pairs of remainders that write the same digit are collisions, and SSS counts every one of them across the whole remainder set. A cycle total counts only the collisions a particular reference runs into. The bins fix SSS once and for all, while the route decides how it is shared out.

Multiple cycles do not always split the limit. At 13 in decimal, the two cycles both have T=8T=8T=8 and give the same limit, 7/397/397/39. At 7 there is only one cycle, so no choice remains. In the decimal enumeration, 53 is the first prime whose cycle totals differ. Below 100 the others are 73, 79 and 89, and I don’t have a rule yet that picks them out.

Digits of 1/p in the literature

The digits of 1/p1/p1/p along a single multiplicative orbit have a well-developed theory. Girstmair related the variance of the digits over a full period to Dedekind sums and tied sums over selected positions to class number factors. Murty and Thangadurai handled digit means when the base is not a primitive root, and Kak and Chatterjee studied Hamming agreement between the digits of a reciprocal and their shifts. The Alignment Limit for All Primes averages a digit-equality count over every fraction with the same denominator instead, which is why the coset appears as a separate term. When the base is a primitive root there is only one coset, and the question of which one disappears.

Three fifths

The exact alignment depends on which bins the cycle visits. An upper bound needs only the size of the largest bin.

For a prime p≥5p\ge5p≥5 that does not divide the base, every digit bin contains at most (p−1)/2(p-1)/2(p−1)/2 remainders. Even if the reference spent its entire period in bins that large, the formula would give

αb(pm)<p+12p≤35.\alpha_b(pm)<\frac{p+1}{2p}\le\frac35.αb​(pm)<2pp+1​≤53​.

This holds at every finite supported mmm, in every base. Every subsequential limit is at most three fifths.

The bound is sharp. Take prime 5 in base two. Digit 0 has remainders 1 and 2; digit 1 has remainders 3 and 4. Both bins have size two, so every step contributes two to the bin sum. For m=2am=2^am=2a,

α2(5m)=3m−15m−1⟶35.\alpha_2(5m)=\frac{3m-1}{5m-1}\longrightarrow\frac35.α2​(5m)=5m−13m−1​⟶53​.

For prime 5 in base two, alignment (3m minus 1)/(5m minus 1) approaches three fifths from below as m doubles. A separate line marks reciprocal phi, approximately 0.618, above the bound. For prime 5 in base two, alignment (3m minus 1)/(5m minus 1) approaches three fifths from below as m doubles. A separate line marks reciprocal phi, approximately 0.618, above the bound.
Prime 5 in base two, where both bins hold two remainders. The alignment climbs toward three fifths as m doubles and never touches it, and the golden threshold sits above the whole curve.

No finite member reaches three fifths, and since the family gets as close as you like, no smaller bound can hold every prime.

One over the golden ratio, the threshold from Three and the Golden Ratio, is about 0.618, just above 0.6. So among primes at least 3 that do not divide the base, only 3 can cross it. In decimal, denominator 12 already does, with alignment 7/117/117/11, while 3 and 6 stay below it at 1/21/21/2 and 3/53/53/5.

The remaining denominator

The formula covers denominators whose part outside the base is exactly one prime. It applies to 106=2⋅53106=2\cdot53106=2⋅53 and 120=40⋅3120=40\cdot3120=40⋅3. At 91=7⋅1391=7\cdot1391=7⋅13, two primes remain after the supported factors have been removed. That requires a further argument.

Denominators supported entirely on the base are a separate, settled case. Every row terminates and receives score one. Decimal denominator 50 therefore has alignment one. The prime 2 also has alignment one in every base.

Long division clears the twos and fives out of the denominator in a few steps and leaves a starting remainder behind. At three that remainder only decides whether the tail repeats 3s or 6s, and the count can’t tell the difference. At 53 it decides which of two limits the alignment approaches.

Companion paper: The Alignment Limit for All Primes →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: Digit-Partitioning Primes and the Alignment Formula
Next: The Three-Tier Theorem →