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

The Neutrality Theorem

April 23, 202413 min read
Companion paper: The Neutrality Theorem →
Three pale light traces meet a horizontal line marked negative one half on a dark background.
The primes separate into two groups. Each retains the arithmetic that cancels its own drift.

Take 107 and 307. Both are prime. Both end in 07. The collision table assigns them the same weight.

Now divide by three.

107=3⋅35+2,307=3⋅102+1.\begin{aligned} 107&=3\cdot35+2,\\ 307&=3\cdot102+1. \end{aligned}107307​=3⋅35+2,=3⋅102+1.​

One leaves two. The other leaves one. Sorting the primes this way separates two numbers that the collision table treats alike.

The centered collision table balances exactly. Its forty entries add to zero. Keep only the primes that leave one on division by three. Does the balance survive, or does it depend on the primes we have just thrown out?

It survives. Either group has enough arithmetic of its own to cancel its drift. That does not make its running sum zero. It means we can prove convergence at reciprocal weight without borrowing any cancellation from the other group.

The reason is in the hundreds.

The hundreds place returns

Start from each nonzero remainder in long division by ppp. Count the starts at which the next two decimal digits agree, then subtract ⌊(p−1)/10⌋\lfloor(p-1)/10\rfloor⌊(p−1)/10⌋. This is the collision deviation. For primes above 100, the last two digits determine it.

At 107 the count and the amount subtracted are both 10. At 307 both are 30. The deviation is zero either way.

Centering subtracts one more quantity, the mean of the table entries with the same final digit. The ten entries ending in 7 have mean −1/10-1/10−1/10, so 07 has centered weight

f(07)=0−(−110)=110.f(07)=0-\left(-\frac1{10}\right)=\frac1{10}.f(07)=0−(−101​)=101​.

Both primes receive that weight. But their common ending does not determine their remainder on division by three. Write

p=100t+a.p=100t+a.p=100t+a.

Here aaa holds the last two digits. Since a hundred leaves one on division by three,

p≡t+a(mod3).p\equiv t+a\pmod3.p≡t+a(mod3).

The quotient ttt still matters. Keep the ending 07 and add a hundred at a time.

Integer Centered weight Remainder on division by 3
107 1/101/101/10 2
207 1/101/101/10 0
307 1/101/101/10 1

The middle number is composite, 207=3⋅69207=3\cdot69207=3⋅69. The weight is defined there too. Primality has nothing to do with this little cycle.

Forty strands through three hundred

Use a block of 300. For each permitted ending aaa, put down

a,a+100,a+200.a,\qquad a+100,\qquad a+200.a,a+100,a+200.

One leaves one on division by three, one leaves two, and one is divisible by three. Each carries the same collision weight, f(a)f(a)f(a).

Do this for all forty endings coprime to ten. Select remainder one. Every ending is still there, exactly once. Select remainder two. Every ending is there again.

Forty colored strands connect each ending to its two representatives in the joint modulus. The two sorted outer lists contain identical weights in different orders. Forty colored strands connect each ending to its two representatives in the joint modulus. The two sorted outer lists contain identical weights in different orders.
Each middle label is an ending modulo 100. The left and right labels are its representatives modulo 300 with remainder one and two. Strand color shows the sign of the centered weight; thickness shows its magnitude. Both outer lists contain every weight once. These are classes, not a sample of primes.

Follow a strand from its two-digit ending to either side. The representative changes; the weight does not. The two outer lists each contain all forty weights, whose sum is zero. This is independent neutrality.

The lists contain residue classes, not forty consecutive primes. The representative 007 on the left stands for 7,307,607,…7,307,607,\ldots7,307,607,…. Some members are prime and some are not. Every prime above 300 falls into one of these eighty classes.

The Chinese remainder theorem supplies the exact count. Since 100 and 3 are coprime, an ending modulo 100 and a remainder modulo three specify one class modulo 300. There are no missing endings and no duplicates.

At base bbb and lag ℓ\ellℓ, the collision table has modulus m=bℓ+1m=b^{\ell+1}m=bℓ+1. If three does not divide the base, the same three-copy construction works. Each of the two prime groups receives the whole centered table.

Three is not special to this part of the argument. For any auxiliary modulus qqq coprime to mmm, fixing a remainder coprime to qqq leaves one complete copy of the table on the joint modulus mqmqmq. Its weights still sum to zero. A modulus sharing factors with the base needs a separate argument.

Where the mirror sends an ending

Now return to the original forty cells, numbered below 100. There is another cancellation here, and it is easy to mistake it for the one we have just proved.

Reflection pairs aaa with 100−a100-a100−a. Their raw deviations add to −1-1−1; their centered weights are opposites.

f(100−a)=−f(a).f(100-a)=-f(a).f(100−a)=−f(a).

The endings 11 and 89 both leave two on division by three. So do 17 and 83, or 23 and 77. Reflection keeps this group together because

100−a≡1−a(mod3).100-a\equiv1-a\pmod3.100−a≡1−a(mod3).

Put in two, get two back. Put in zero, get one. Put in one, get zero.

Six reflected pairs remain within the remainder-two group. Fourteen more pairs connect remainder zero to remainder one, whose sums are equal and opposite but nonzero. Six reflected pairs remain within the remainder-two group. Fourteen more pairs connect remainder zero to remainder one, whose sums are equal and opposite but nonzero.
All twenty reflection pairs appear. Teal marks positive centered weights and violet negative ones. Above, remainder two has six internal pairs. Below, the other two groups exchange partners and have sums 91/5 and −91/5. These remainders belong to the canonical endings below 100.

The twelve endings in the remainder-two group cancel in six pairs. The other groups exchange partners. Their centered sums are 91/591/591/5 and −91/5-91/5−91/5, not zero separately.

These are groups of endings. They are not the two groups of primes. The entry 07 belongs to the internal remainder-one group, yet the prime 107 leaves two. Moving to the block of 300 is what keeps the prime’s remainder instead of silently substituting its ending’s remainder.

When three divides the base

In base three, adding a power of the base cannot change a remainder modulo three. There are no three independent copies to sort. We have to use the centering itself.

At lag one the table is modulo nine. All six entries fit here.

Ending Raw value Family mean Centered weight
1 0 −2/3-2/3−2/3 2/32/32/3
4 0 −2/3-2/3−2/3 2/32/32/3
7 −2-2−2 −2/3-2/3−2/3 −4/3-4/3−4/3
2 1 −1/3-1/3−1/3 4/34/34/3
5 −1-1−1 −1/3-1/3−1/3 −2/3-2/3−2/3
8 −1-1−1 −1/3-1/3−1/3 −2/3-2/3−2/3

The first three entries all leave one on division by three. The last three all leave two. Each family was centered separately, so each sum is zero before we do anything else.

Four panels show cumulative centered weights in bases three and twelve. Every family path returns exactly to zero. Four panels show cumulative centered weights in bases three and twelve. Every family path returns exactly to zero.
Add the entries in increasing address order within each final-digit family. The two base-three paths reproduce the fractions in the table. Base twelve has two whole families in each remainder group; every path balances separately. All endpoint zeros are exact.

The same reasoning works in a larger base divisible by three. In base twelve, for instance, the permissible final digits are 1,5,7,111,5,7,111,5,7,11. Remainder one collects the complete families ending in 1 and 7. Remainder two collects those ending in 5 and 11. Every family already balances.

This covers every base and every positive lag. If three does not divide the base, each prime group contains a whole copy of the table. If three divides the base, it contains whole families that were centered separately. Neither operation cuts through the cancellation it needs.

Inspect the quotient layers at lags one, two and three

The decimal tables grow from forty to four hundred to four thousand entries. Each has three possible quotient layers. Selecting a true remainder modulo three keeps exactly one occurrence of every weight. The gray cells are the occurrences that selection removes.

Six panels route decimal tables of forty, four hundred and four thousand weights through three quotient layers. Each selection keeps every weight exactly once. Six panels route decimal tables of forty, four hundred and four thousand weights through three quotient layers. Each selection keeps every weight exactly once.
Rows correspond to lags one, two and three. Within each panel, the three strips represent A = a + mt with t equal to zero, one and two. Selected cells carry the centered weight at a; gray cells are omitted occurrences. Read each strip across, then down. Teal is positive and violet negative. Color uses sign(f) log(1 + 10|f|), normalized by the largest magnitude in each row, to reveal small weights without clipping the extremes. All 4,000 cells per layer in the largest table are retained.

What the primes do with the table

A complete table balances. A stretch of primes need not. They visit the entries at different times, and division by ppp gives each visit a different size.

Take the same window of primes used to examine the collision transform, 106<p≤10710^6<p\le10^7106<p≤107. Keep the two remainders separate.

Remainder modulo 3 Primes in the window Sum of f(p mod 100)/pf(p\bmod100)/pf(pmod100)/p
1 292,963 +0.0002534+0.0002534+0.0002534
2 293,118 −0.0001884-0.0001884−0.0001884
Both 586,081 +0.0000650+0.0000650+0.0000650

These are finite contributions, not values of infinite sums. The opposite signs do not contradict neutrality. Neutrality says which growing term must disappear; it does not prescribe the sign of what remains.

The passage to an infinite sum uses the classical Mertens theorem for arithmetic progressions. Each allowed class AAA modulo 300 has

∑p≤Xp≡A (mod 300)1p=log⁡log⁡X80+cA+o(1).\begin{aligned} &\sum_{\substack{p\le X\\p\equiv A\ (\mathrm{mod}\ 300)}}\frac1p\\ &\quad=\frac{\log\log X}{80}+c_A+o(1). \end{aligned}​p≤Xp≡A (mod 300)​∑​p1​=80loglogX​+cA​+o(1).​

The constant cAc_AcA​ depends on the class. The growing term does not.

Multiply by the collision weight of each class and add over just one remainder group. Its coefficient of log⁡log⁡X\log\log XloglogX is

180∑af(a)=0.\frac1{80}\sum_{a}f(a)=0.801​a∑​f(a)=0.

Only forty weighted constants and an error tending to zero remain. Repeat for the other group. Both reciprocal-prime sums converge separately. Their limits need not be equal, and neither has to be zero. Omitting a fixed initial set of small primes changes a limit but not convergence.

The finite proof supplies the zero coefficient. Mertens’ theorem supplies the analytic conclusion. There is no assumption here that a finite sample of primes distributes itself evenly among the classes.

Two running prime sums fluctuate separately. A second panel plots their sum and their difference through the same window. Two running prime sums fluctuate separately. A second panel plots their sum and their difference through the same window.
Every one of the 586,081 primes contributes before plotting. The upper panel separates actual remainders modulo three; the lower panel adds and subtracts those two paths. Both vertical axes are marked in units of one ten-thousandth. These finite paths do not show infinite limits.
Three complementary views of the cancellation

These diagrams keep the small coordinate calculation, the full forty-weight table and the six-entry base-three example together. The first follows an integer as its hundreds change. The other two show the weights that the routing and family walks preserve.

The ending 07 keeps weight 1/10 as the integer moves through 107, 207 and 307. Its true remainder modulo three changes at every step.
The ending 07 keeps weight 1/10 as the integer moves through 107, 207 and 307. Its true remainder modulo three changes at every step.
The forty centered decimal weights, arranged by tens and units digits. Each true prime group modulo three receives a complete copy on the joint modulus 300.
The forty centered decimal weights, arranged by tens and units digits. Each true prime group modulo three receives a complete copy on the joint modulus 300.
The two base-three families have different raw means. Subtracting each mean gives the two zero-sum groups shown here.
The two base-three families have different raw means. Subtracting each mean gives the two zero-sum groups shown here.

Subtract the two ledgers

Call the two running totals F1F_1F1​ and F2F_2F2​. Keep their sum FFF and their difference GGG.

F=F1+F2,G=F1−F2.\begin{aligned} F&=F_1+F_2,\\ G&=F_1-F_2. \end{aligned}FG​=F1​+F2​,=F1​−F2​.​

We can recover either ledger as (F+G)/2(F+G)/2(F+G)/2 or (F−G)/2(F-G)/2(F−G)/2. To compute GGG directly, keep the signs of terms from primes leaving one and reverse the signs of terms from primes leaving two. That is the nontrivial Dirichlet character modulo three. Its twist measures a difference that the combined total can conceal.

In this window, the sum is about 0.00006500.00006500.0000650. The difference is about 0.00044180.00044180.0004418. Neither group needs the other to cancel its drift, yet their separation is nearly seven times the size of the total.

At weight 1/p1/p1/p, both ledgers settle and so does their difference. Replace ppp by psp^sps with s<1s<1s<1, and the finite cancellation alone no longer proves convergence. The unresolved work is in how the primes deliver the positive and negative weights.

Return to 107 and 307. Each receives 1/101/101/10 from the table. In the difference, 107 contributes −1/1070-1/1070−1/1070 and 307 contributes +1/3070+1/3070+1/3070. Equal table weights have become unequal terms with opposite signs. We can prove that the full reciprocal sum of such terms settles. Put a square root in the denominator, and how far can the difference wander?

Companion paper: The Neutrality Theorem →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Collision Transform and the Critical Strip
Next: The General Neutrality Theorem →