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

The General Neutrality Theorem

July 21, 202415 min read
Companion paper: The General Neutrality Theorem →
Repeated blue-and-gold folds remain intact along a larger sweep. They suggest why simultaneous squarefree residue restrictions preserve neutrality: each allowed channel retains complete balanced structure.
Repeated blue-and-gold folds remain intact along a larger sweep. They suggest why simultaneous squarefree residue restrictions preserve neutrality: each allowed channel retains complete balanced structure.

Number theorists sort primes by congruence conditions all the time, keeping only the primes that leave one on division by four, or by thirty, or by twenty-five. Sort the collision weights the same way and some of the sorted sums tilt. The primes leaving one on division by twenty-five are exactly the primes ending in 010101 or 515151, whose centered weights are +1.7+1.7+1.7 and +0.7+0.7+0.7. Divided by ppp, their sum climbs without end, like 0.06log⁡log⁡x0.06\log\log x0.06loglogx. The Neutrality Theorem showed that division by three can’t do that to either of its two groups. The general theorem finds the line. Any collection of conditions modulo distinct primes leaves every group neutral, so each restricted sum converges on its own at s=1s=1s=1, whatever the base and lag. Twenty-five falls on the wrong side because its prime factor appears twice.

Four is just as much a square as twenty-five, and the general theorem has nothing to say about it. In decimal it does no harm anyway. Primes congruent to one modulo four and primes congruent to three are each neutral, thanks to a cancellation the general argument can’t see. Finding it takes a separate calculation with floors, and the calculation comes down to two numbers, 252525 and 757575.

Ten stops around a circle

Thirty is squarefree, two times three times five, so the theorem covers it. Past a hundred, the first primes leaving one on division by thirty are these six.

Prime Centered collision weight
151 +0.7+0.7+0.7
181 +1.7+1.7+1.7
211 +0.7+0.7+0.7
241 −2.3-2.3−2.3
271 +0.7+0.7+0.7
331 +0.7+0.7+0.7

Their weights add to +2.2+2.2+2.2. Each weight comes from the decimal collision table of The Centered Collision Sum. At 151151151, fourteen of the 150150150 fractions open with two equal digits, one short of the bin size of fifteen, so the table entry is −1-1−1. Primes ending in 111 average −17/10-17/10−17/10, so the centered weight of 151151151 is −1+17/10=7/10-1+17/10=7/10−1+17/10=7/10.

The balance lives in the classes these primes come from. The table repeats every hundred and the condition every thirty, so both repeat every three hundred. Within one such cycle, the numbers congruent to one modulo thirty are

1, 31, 61, 91, 121,151, 181, 211, 241, 271.\begin{gathered} 1,\ 31,\ 61,\ 91,\ 121,\\ 151,\ 181,\ 211,\ 241,\ 271. \end{gathered}1, 31, 61, 91, 121,151, 181, 211, 241, 271.​

Their last two digits run through 01,31,61,91,21,51,81,11,41,7101,31,61,91,21,51,81,11,41,7101,31,61,91,21,51,81,11,41,71, every ending in 111 exactly once. Adding thirty shuffles the order of the column without leaving a hole in it.

A ten-point star follows addition by thirty among the endings 01, 11, through 91. Two segmented bars show that the eight positive weights and two negative weights have equal total magnitude, 9.6. A ten-point star follows addition by thirty among the endings 01, 11, through 91. Two segmented bars show that the eight positive weights and two negative weights have equal total magnitude, 9.6.
Adding thirty walks the ten endings in 1 around the circle, three places at a time. The eight positive weights total +9.6 and the two negative ones −9.6.

Centering subtracts the column’s average from each of its ten entries, so the column sums to zero. So do these ten classes modulo 300300300. The six primes above haven’t reached 010101, 212121, 616161 or 919191 yet. Those four endings add to exactly −2.2-2.2−2.2, most of it from the −7.3-7.3−7.3 at 919191.

A whole column or the whole table

Now require remainder one modulo twenty-one, which imposes conditions modulo three and seven at once. Twenty-one shares no factor with a hundred. Fix any of the forty decimal endings and step forward by hundreds, and exactly one of the next twenty-one numbers meets the new condition. Every ending occurs once in the combined cycle of length 2,1002{,}1002,100.

So the condition modulo thirty keeps one complete column and the condition modulo twenty-one keeps the complete table, and both sums are zero. The Chinese remainder argument behind them, the one from The Neutrality Theorem, works in every base. A prime that divides the base selects whole final-digit families. A prime that doesn’t adds an independent coordinate. Combining such conditions never cuts a centered family into unbalanced pieces.

In general, take base bbb and lag ℓ\ellℓ, so the centered table has modulus m=bℓ+1m=b^{\ell+1}m=bℓ+1. Let QQQ be squarefree, let rrr be coprime to QQQ, and put M=lcm⁡(m,Q)M=\operatorname{lcm}(m,Q)M=lcm(m,Q). Then

∑1≤A<M(A,M)=1A≡r(modQ)f(A mod m)=0.\sum_{\substack{1\le A<M\\(A,M)=1\\A\equiv r\pmod Q}} f(A\bmod m)=0.1≤A<M(A,M)=1A≡r(modQ)​∑​f(Amodm)=0.

Squarefree means no prime factor occurs twice, and the restriction matters. Modulo 252525, the condition A≡1A\equiv1A≡1 keeps only the endings 010101 and 515151 of the decimal table, with weights 1.71.71.7 and 0.70.70.7 and a sum of 12/512/512/5. The condition reads both digits of the address at once and lands on two cells of a column that balances only as a whole. That 12/512/512/5, spread over the forty classes modulo a hundred, is the 0.060.060.06 in front of log⁡log⁡x\log\log xloglogx.

Open the congruence atlas, from forty entries to four thousand

The same three conditions act on the decimal tables at lags one, two and three. Conditions modulo 21 and 30 keep whole balanced pieces at every lag, while modulo 25 leaves fragments whose sums are 12/512/512/5, −792/5-792/5−792/5 and −8704/5-8704/5−8704/5.

Nine circular maps show all forty, four hundred and four thousand decimal entries. Four rings retain the same final-digit families at every lag. Modulo 21 keeps every ring, modulo 30 one complete ring, and modulo 25 only pieces of a ring. Nine circular maps show all forty, four hundred and four thousand decimal entries. Four rings retain the same final-digit families at every lag. Modulo 21 keeps every ring, modulo 30 one complete ring, and modulo 25 only pieces of a ring.
Decimal tables at lags one, two and three. Modulo 21 keeps everything and modulo 30 keeps one family, while modulo 25 keeps a fragment that doesn’t balance.

Each group pays its own way

The finite balance decides what happens when the weights in one allowed group are divided by their primes and added up. For each reduced class AAA modulo MMM, Mertens’ theorem in arithmetic progressions gives

∑p≤Xp≡A(modM)1p=log⁡log⁡Xφ(M)+cA+o(1).\begin{aligned} &\sum_{\substack{p\le X\\p\equiv A\pmod M}}\frac1p\\ &\qquad=\frac{\log\log X}{\varphi(M)}+c_A+o(1). \end{aligned}​p≤Xp≡A(modM)​∑​p1​=φ(M)loglogX​+cA​+o(1).​

Every class gets the same growing term. Weight each class’s sum by its collision weight and add over the allowed classes, and the coefficient of log⁡log⁡X\log\log XloglogX is the finite sum just proved to be zero. Only constants and errors that tend to zero remain, so the restricted collision sum converges at reciprocal weight. Starting past mmm only drops finitely many terms.

Different groups can converge to different values, and nothing says those values are zero. Each group cancels its own logarithmic drift, which is all neutrality promises. With 1/p1/\sqrt p1/p​ in place of 1/p1/p1/p the finite balance is unchanged, but the convergence argument no longer applies. The large primes count for more, and the order in which they visit the table starts to matter.

Four signs, one unexpected zero

Give a plus sign to the odd numbers leaving one on division by four and a minus sign to those leaving three. The signs multiply correctly, so together they form the Dirichlet character χ4\chi_4χ4​. Multiply each centered weight by its sign, and the four decimal columns total +9+9+9, −9-9−9, −9-9−9 and +9+9+9.

Forty signed products are arranged by tens digit and final digit. The four column totals form equal bars at plus nine, minus nine, minus nine and plus nine. Forty signed products are arranged by tens digit and final digit. The four column totals form equal bars at plus nine, minus nine, minus nine and plus nine.
Each centered weight times its modulo-four sign. The columns total +9, −9, −9 and +9, and the forty products add to zero.

The forty products add to exactly zero, so

f^(χ4)=140∑a∈U100f(a)χ4(a)=0,\widehat f(\chi_4) =\frac1{40}\sum_{a\in U_{100}}f(a)\chi_4(a)=0,f​(χ4​)=401​a∈U100​∑​f(a)χ4​(a)=0,

where U100U_{100}U100​ is the set of forty endings coprime to a hundred. In terms of primes, the group congruent to one modulo four is half the collision sum plus half its χ4\chi_4χ4​ twist. The group congruent to three is half the sum minus half the twist. With the twist coefficient at zero, both groups are neutral.

Neither of the two usual rules from The Centered Collision Sum explains this zero. Reflection kills every even character, and χ4(−1)=−1\chi_4(-1)=-1χ4​(−1)=−1. Centering removes the characters that depend only on the final digit, and χ4\chi_4χ4​ gives opposite signs to 111 and 111111. The zero needs its own calculation.

Twenty-five and seventy-five

Define a signed floor sum

B(k)=∑a∈U100χ4(a)⌊ka100⌋.B(k)=\sum_{a\in U_{100}}\chi_4(a) \left\lfloor\frac{ka}{100}\right\rfloor.B(k)=a∈U100​∑​χ4​(a)⌊100ka​⌋.

For 0≤k≤1000\le k\le1000≤k≤100 it has exactly two nonzero values,

B(25)=10,B(75)=−10,B(25)=10,\qquad B(75)=-10,B(25)=10,B(75)=−10,

and every other value is zero. The proof is collapsed below the next figure. First, look at where the collision count calls on this function.

Two adjacent decimal digits agree in the intervals 000000, 111111, 222222 through 999999. Numbering the hundred intervals from zero, their left endpoints are

G={0,11,22,33,44,55,66,77,88,99}.\begin{aligned} G=\{&0,11,22,33,44,\\ &55,66,77,88,99\}. \end{aligned}G={​0,11,22,33,44,55,66,77,88,99}.​

Counting fractions inside those intervals takes a floor at each end. After multiplying by the modulo-four signs and summing over the table, the raw collision deviation becomes

−B(10)+∑n∈G(B(n+1)−B(n)).-B(10)+\sum_{n\in G}\bigl(B(n+1)-B(n)\bigr).−B(10)+n∈G∑​(B(n+1)−B(n)).

The baseline asks for B(10)B(10)B(10), and the intervals ask for B(n)B(n)B(n) and B(n+1)B(n+1)B(n+1). None of them asks for 252525 or 757575.

A hundred-sector ring marks the ten matching-digit intervals and their endpoints. The exceptional floor-sum arguments 25 and 75 are outside that set. Two enlarged gaps show precisely which neighboring endpoints are sampled. A hundred-sector ring marks the ten matching-digit intervals and their endpoints. The exceptional floor-sum arguments 25 and 75 are outside that set. Two enlarged gaps show precisely which neighboring endpoints are sampled.
The ten doubled-digit intervals in teal, with the baseline at 10. The only nonzero floor sums sit at 25 and 75, and the count never asks for either.

So every term is zero by itself. Subtracting the family averages changes nothing, since each column holds five plus signs and five minus signs, and the centered table inherits the zero.

The two nonzero values of the signed floor sum

The twenty positive-sign endings and the twenty negative-sign endings both sum to 1,000. Hence

∑a∈U100χ4(a)=0,∑a∈U100aχ4(a)=0.\sum_{a\in U_{100}}\chi_4(a)=0, \qquad \sum_{a\in U_{100}}a\chi_4(a)=0.a∈U100​∑​χ4​(a)=0,a∈U100​∑​aχ4​(a)=0.

Writing a floor as its argument minus its fractional part gives

B(k)=−∑a∈U100χ4(a){ka100}.B(k)=-\sum_{a\in U_{100}}\chi_4(a) \left\{\frac{ka}{100}\right\}.B(k)=−a∈U100​∑​χ4​(a){100ka​}.

If kkk is coprime to 100, multiplication by kkk permutes the forty endings. The last sum becomes χ4(k)\chi_4(k)χ4​(k) times the same signed fractional-part sum at k=1k=1k=1. It is zero by the two balances above.

If kkk is odd and divisible by 5 but not 25, reduce to modulus 20. Each unit modulo 20 has five lifts in U100U_{100}U100​, all with the same sign. The positive-sign units 1,9,13,171,9,13,171,9,13,17 sum to 40. So do the negative-sign units 3,7,11,193,7,11,193,7,11,19. The same permutation argument gives zero.

If kkk is even, pair each ending a<50a<50a<50 with a+50a+50a+50. Their signs are opposite and their floors differ by the constant k/2k/2k/2. The signs among the twenty lower endings sum to zero, so the paired contributions cancel.

Only k=25k=25k=25 and 757575 remain. At 25, the positive-sign fractional parts are all 1/41/41/4 and the negative-sign ones all 3/43/43/4. Thus

B(25)=−20(14−34)=10.B(25)=-20\left(\frac14-\frac34\right)=10.B(25)=−20(41​−43​)=10.

At 75 the two fractional parts exchange places, giving −10-10−10. This is the finite floor-sum version of the sawtooth calculation in The General Neutrality Theorem.

The seventeen that remain

There are forty characters modulo a hundred. Reflection removes the twenty even ones, family centering removes the two odd ones that depend only on the final digit, and the calculation above removes χ4\chi_4χ4​. That leaves seventeen nonzero coefficients, eight conjugate pairs and one real coefficient, every one of them fixed by the forty-entry table.

Give each active character its own prime sum

PX(σ,χ)=∑100<p≤Xχ(p)pσ.P_X(\sigma,\chi)=\sum_{100<p\le X}\frac{\chi(p)}{p^\sigma}.PX​(σ,χ)=100<p≤X∑​pσχ(p)​.

Fourier inversion gives the exact finite identity

FX(σ)=∑100<p≤Xf(p mod 100)pσ=∑χ activef^(χ)PX(σ,χ).\begin{aligned} F_X(\sigma) &=\sum_{100<p\le X}\frac{f(p\bmod100)}{p^\sigma}\\ &=\sum_{\chi\ \mathrm{active}} \widehat f(\chi)P_X(\sigma,\chi). \end{aligned}FX​(σ)​=100<p≤X∑​pσf(pmod100)​=χ active∑​f​(χ)PX​(σ,χ).​

The left side adds the weights directly, and the right side adds the same weights in character coordinates. No infinite series enters the equality.

Take all 348,488348{,}488348,488 primes between 100100100 and five million. At σ=1/2\sigma=1/2σ=1/2, ten of the seventeen contributions have positive real parts and seven have negative ones, the imaginary parts cancel in conjugate pairs, and the net is about +0.725464+0.725464+0.725464. The largest single term is the real one, a little over −0.5-0.5−0.5.

Seventeen readable signed bars show the real character contributions. Brackets group eight conjugate pairs; the final unpaired bar is the real term. Ten bars are positive and seven negative, summing to approximately 0.725464. Seventeen readable signed bars show the real character contributions. Brackets group eight conjugate pairs; the final unpaired bar is the real term. Ten bars are positive and seven negative, summing to approximately 0.725464.
The seventeen surviving contributions at σ = 1/2, conjugate partners bracketed together. Ten are positive and seven negative, netting +0.725464 over 348,488 primes.
Open the complex and magnitude views
A complex-plane plot shows eight mirrored pairs of character contributions and one real term. A separate full-width magnitude scatter has eight doubled points and one single point, with descriptive correlation minus 0.4192. A complex-plane plot shows eight mirrored pairs of character contributions and one real term. A separate full-width magnitude scatter has eight doubled points and one single point, with descriptive correlation minus 0.4192.
Above, conjugate contributions mirror each other across the real axis, so their imaginary parts cancel. Below, the larger coefficients sit with the smaller prime sums.

In the magnitudes, the larger collision coefficients tend to meet the smaller prime sums. Conjugate partners share their magnitudes, so the seventeen terms make only nine distinct points. At the cutoff of five million, the correlation between the two sizes is negative at all four exponents tested, −0.4081-0.4081−0.4081 at σ=1\sigma=1σ=1, −0.5169-0.5169−0.5169 at 0.80.80.8, −0.4925-0.4925−0.4925 at 0.60.60.6 and −0.4192-0.4192−0.4192 at one half.

Character labels and all four numerical checks

Every unit modulo 25 is a power of 2. Write a≡2t(a)(mod25)a\equiv2^{t(a)}\pmod{25}a≡2t(a)(mod25). The labels in the figure mean

χe,j(a)=χ4(a)ee2πijt(a)/20,\chi_{e,j}(a)=\chi_4(a)^e e^{2\pi ijt(a)/20},χe,j​(a)=χ4​(a)ee2πijt(a)/20,

with e=0,1e=0,1e=0,1 and j=0,…,19j=0,\ldots,19j=0,…,19. Odd characters have e+je+je+j odd. The family-constant zeros are (0,5)(0,5)(0,5) and (0,15)(0,15)(0,15), and the additional zero is (1,0)(1,0)(1,0). All other odd coefficients are nonzero, as exact reduction in twentieth roots of unity verifies.

σ\sigmaσ Signs +/−+/-+/− Net Correlation
111 10 / 7 +0.077446+0.077446+0.077446 −0.4081-0.4081−0.4081
0.80.80.8 12 / 5 +0.185838+0.185838+0.185838 −0.5169-0.5169−0.5169
0.60.60.6 10 / 7 +0.444176+0.444176+0.444176 −0.4925-0.4925−0.4925
0.50.50.5 10 / 7 +0.725464+0.725464+0.725464 −0.4192-0.4192−0.4192

All four rows use the same primes, 100<p≤5,000,000100<p\le5{,}000{,}000100<p≤5,000,000. The three proved zeros are excluded from the positive and negative counts and from the correlations.

The circle, the four columns and the sign counts, drawn again
The ten joint classes modulo 300, with their exact centered weights. These bars show why the remainder-one condition modulo thirty keeps a complete balanced column.
The ten classes modulo 300 that leave one on division by thirty. Every ending in 1 appears once, and the weights sum to zero.
The four column totals after multiplication by the modulo-four character. The cancellation 9 − 9 − 9 + 9 removes this coefficient.
The four column totals after the modulo-four signs, +9, −9, −9 and +9.
Signs among the twenty odd characters at four exponents, using primes from 100 to five million. The three exact zeros are excluded from the seventeen active terms. Bar widths count terms, not contribution sizes.
Signs of the twenty odd character contributions at four exponents. Three are exact zeros, and the other seventeen split ten to seven, or twelve to five at 0.8.
Companion paper: The General Neutrality Theorem →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Neutrality Theorem
Next: The Double Transversality →