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

The Collision Fluctuation Sum

April 28, 202313 min read
Companion paper: The Collision Fluctuation Sum →
The paired cyan and gold curves lean together across a folded field. A small bias repeated through the finite collision table becomes a slow drift in the prime sum. Forty entries and one mean correction fix the decimal coefficient at minus nine tenths; removing that drift leaves a convergent sum.
The paired cyan and gold curves lean together across a folded field. A small bias repeated through the finite collision table becomes a slow drift in the prime sum. Forty entries and one mean correction fix the decimal coefficient at minus nine tenths; removing that drift leaves a convergent sum.

Euler proved that the reciprocals of the primes add up to infinity, and yet all the primes below ten million manage only about 3.04 between them. The sum grows like log⁡log⁡x\log\log xloglogx, and The Character Structure of the Collision Fluctuation ran into exactly this kind of growth. It weighted each prime’s collision deviation by 1/p1/p1/p, split the total four ways by last digit, and stopped at finite cutoffs, because nothing yet said what happens as the cutoff grows. For the total, this article settles it. The deviation at each prime stays within a few units of zero, and yet the weighted sum falls without limit, at exactly minus nine tenths of log⁡log⁡x\log\log xloglogx. The nine tenths comes from forty small integers, one for each two-digit ending a large prime can have, and it is settled before any prime enters the sum.

The integers come from a picture like this one. Write the first two decimal digits of each fraction from 1/171/171/17 through 16/1716/1716/17 and put each fraction in a square, with its first digit choosing the row and its second digit choosing the column. Of the sixteen fractions, only two land on the diagonal.

Sixteen fractions occupy a ten-by-ten digit grid. Gold marks two seventeenths at the cell eleven and fifteen seventeenths at eighty-eight, the only points on the diagonal. Sixteen fractions occupy a ten-by-ten digit grid. Gold marks two seventeenths at the cell eleven and fifteen seventeenths at eighty-eight, the only points on the diagonal.
The sixteen seventeenths placed by their first two decimal digits, row for the first and column for the second. Only 2/17, starting 11, and 15/17, starting 88, land on the gold diagonal, and turning the square halfway around swaps them.

They are 2/17=0.11…2/17=0.11\ldots2/17=0.11… and 15/17=0.88…15/17=0.88\ldots15/17=0.88…, each with the same digit in its first two places, so the collision count is two.

The two fractions sum to one, and their digits complement each other, turning eleven into eighty-eight. That is why collisions come in pairs. If multiplication preserves the digit of a remainder rrr, it also preserves the digit of p−rp-rp−r, and at an odd prime those remainders are distinct, so every match has a different partner.

We count every nonzero remainder, not just those visited by the repeating block of 1/p1/p1/p. Multiplication by ten advances long division one place, and the matching beginnings are 00,11,22,…,9900,11,22,\ldots,9900,11,22,…,99.

A total that will not settle

A larger prime has more remainders available to match, so compare its count with a reference level. Test every multiplier except the identity, discard the zero counts, and take the mean of the positive ones. Bin Derangements and the Gate Width Theorem gives this constructive mean from the bin sizes.

Subtract that mean from the count for multiplication by ten and call the difference Δ(p)\Delta(p)Δ(p). A negative deviation means ten preserves fewer digits than the average constructive multiplier, and the mean exists for decimal primes greater than eleven.

Now add Δ(p)/p\Delta(p)/pΔ(p)/p over those primes. The first thousand terms total about −1.368-1.368−1.368, ten thousand give −1.597-1.597−1.597, and through the primes below ten million the total is −1.895-1.895−1.895. Positive terms interrupt the descent but cannot stop it, and the exact rate of that descent can be calculated without adding a long list of primes.

The last two digits are enough

Write p−1=10Q+Rp-1=10Q+Rp−1=10Q+R, so that the ten digit bins contain either QQQ or Q+1Q+1Q+1 remainders, and subtract the smaller size from the collision count.

S(p)=Cp,10(10)−Q.S(p)=C_{p,10}(10)-Q.S(p)=Cp,10​(10)−Q.

At 191 the count is ten and the smaller bin size is nineteen, a difference of −9-9−9. At 109, eighteen matches minus ten gives 888.

For every prime above one hundred, the last two digits determine this integer. End in 919191 and the answer is −9-9−9, and end in 090909 and it is 888, however large the prime becomes.

Each matching beginning occupies one hundredth of the interval from zero to one, so adding one hundred to the denominator adds one numerator to each of the ten matching slices. The count rises by ten, QQQ rises by ten as well, and their difference stays put.

Ten columns show the matching hundredths for denominators 109 and 409. The first has eighteen dots and the second forty-eight. Every column gains three dots; the reduced count remains eight. Ten columns show the matching hundredths for denominators 109 and 409. The first has eighteen dots and the second forty-eight. Every column gains three dots; the reduced count remains eight.
The ten matching slices, 00 through 99, at 109 and at 409. Adding three hundred to the prime puts three more fractions in every slice and adds thirty to the bin size, so the difference S stays at 8.

There are forty possible prime endings. Arrange them by their tens and units digits.

A ten-by-four grid displays all forty integer deviations by tens and units digits. Gold marks positive centered values, teal negative. Outlines pair endings 09 with 91 and 27 with 73. A ten-by-four grid displays all forty integer deviations by tens and units digits. Gold marks positive centered values, teal negative. Outlines pair endings 09 with 91 and 27 with 73.
The forty integers, one for each two-digit ending of a prime above one hundred, tens digit down the side and units digit across the top. Turning the table halfway around pairs +8 with −9 and +6 with −7, and every pair adds to −1.
The forty integers, as data

Choose the tens digit at the left and the units digit across the top. A row labeled zero includes endings 010101, 030303, 070707 and 090909.

Tens 1 3 7 9
0 0 2 0 8
1 -1 -1 1 -1
2 0 -2 6 0
3 -1 -1 -3 -1
4 -4 0 -2 0
5 -1 1 -1 3
6 0 2 0 0
7 -1 -7 1 -1
8 0 -2 0 0
9 -9 -1 -3 -1

To compute an entry, let aaa be the ending and let nnn run through 0,11,22,…,990,11,22,\ldots,990,11,22,…,99. Define

Dn(a)=⌊(n+1)a100⌋−⌊na100⌋.D_n(a)=\left\lfloor\frac{(n+1)a}{100}\right\rfloor-\left\lfloor\frac{na}{100}\right\rfloor.Dn​(a)=⌊100(n+1)a​⌋−⌊100na​⌋. F(a)=−1−⌊a10⌋+∑nDn(a).F(a)=-1-\left\lfloor\frac a{10}\right\rfloor+\sum_nD_n(a).F(a)=−1−⌊10a​⌋+n∑​Dn​(a).

Then S(p)=F(a)S(p)=F(a)S(p)=F(a) for primes p>100p>100p>100 with ending aaa. The floor differences count the numerators in each slice, and since the final slice includes the endpoint ppp, which is not a nonzero remainder, we subtract one. Writing p=100t+ap=100t+ap=100t+a contributes ttt to each of the ten slices and 10t10t10t to QQQ, and those contributions cancel.

One negative left in every pair

Turn the table halfway around. Ending 090909 meets 919191, with entries 888 and −9-9−9, ending 272727 meets 737373, giving 666 and −7-7−7, and ending 434343 meets 575757, giving zero and −1-1−1. Every pair falls one short of zero.

F(a)+F(100−a)=−1.F(a)+F(100-a)=-1.F(a)+F(100−a)=−1.

Twenty rows pair complementary two-digit endings. Gold positive units meet teal negative units, with one extra negative square in every row. Twenty rows pair complementary two-digit endings. Gold positive units meet teal negative units, with one extra negative square in every row.
All twenty reflected pairs as rows of unit squares. Each gold unit cancels a teal one, and every row, from 01 and 99 down to 49 and 51, is left with exactly one outlined teal unit, minus one.

Twenty pairs leave twenty negatives, so the forty entries sum to −20-20−20 and their mean is −1/2-1/2−1/2.

The endpoint count behind the missing one

Use the floor differences DnD_nDn​ above. For each of the eight interior matching slices, neither endpoint is an integer, and

Dn(a)+Dn(100−a)=1.D_n(a)+D_n(100-a)=1.Dn​(a)+Dn​(100−a)=1.

The slice at zero contributes zero to the combined count and the slice at ninety-nine contributes two, so eight ones, a zero and a two total ten. Meanwhile,

⌊a10⌋+⌊100−a10⌋=9.\left\lfloor\frac a{10}\right\rfloor+\left\lfloor\frac{100-a}{10}\right\rfloor=9.⌊10a​⌋+⌊10100−a​⌋=9.

Each table entry also contains its own minus one, so adding the two formulas for FFF gives −2−9+10=−1-2-9+10=-1−2−9+10=−1. That proves the reflection rule without inspecting the forty answers individually.

The extra places in the bins

The opening sum subtracts the constructive mean, not just QQQ. That mean is

C‾p,10=Q+QRp−11.\overline C_{p,10}=Q+\frac{QR}{p-11}.Cp,10​=Q+p−11QR​.

The extra term tends to R/10R/10R/10. The four final digits 1,3,7,91,3,7,91,3,7,9 give R=0,2,6,8R=0,2,6,8R=0,2,6,8, so the limiting corrections are 0,0.2,0.6,0.80,0.2,0.6,0.80,0.2,0.6,0.8, with mean 0.40.40.4.

Four rows show the larger bins for primes ending in one, three, seven and nine. Beside each bin pattern, an arrow moves its table mean left by the limiting correction. Four rows show the larger bins for primes ending in one, three, seven and nine. Beside each bin pattern, an arrow moves its table mean left by the limiting correction.
Left, the bins that get an extra place at 101, 103, 107 and 109, none, two, six and eight of them. Right, each ending’s table mean, in teal, pulled left by that many tenths to its corrected value, in gold.

The reflection contributes minus one half and the larger benchmark subtracts another four tenths.

−12−25=−910.-\frac12-\frac25=-\frac9{10}.−21​−52​=−109​.

That is the coefficient, and the finite table supplies all of it.

Forty copies of the same growth

The table fixes the bias, and what remains is how much reciprocal-prime weight each ending receives.

Let Ha(x)H_a(x)Ha​(x) add 1/p1/p1/p over primes above one hundred, up to xxx, ending in aaa. Mertens’ theorem in arithmetic progressions gives

Ha(x)=140log⁡log⁡x+Ma+o(1).H_a(x)=\frac1{40}\log\log x+M_a+o(1).Ha​(x)=401​loglogx+Ma​+o(1).

Each class has the same leading growth, a class-dependent constant MaM_aMa​ and an error tending to zero. That is the classical input, supplied by Williams’ theorem, not a conclusion drawn from the collision data.

Give ending aaa its limiting deviation da=F(a)−R/10d_a=F(a)-R/10da​=F(a)−R/10. The forty values have mean −9/10-9/10−9/10, so they sum to −36-36−36, and multiplying each class’s prime sum by its value and adding, the growing parts contribute

−3640log⁡log⁡x=−910log⁡log⁡x.\frac{-36}{40}\log\log x=-\frac9{10}\log\log x.40−36​loglogx=−109​loglogx.

The forty constants give one constant, and the forty vanishing errors still tend to zero.

One correction remains. The exact deviation differs from dad_ada​ by a quantity of order 1/p1/p1/p, so after the extra division by ppp its terms are of order 1/p21/p^21/p2 and their absolute sum converges. The finitely many primes below one hundred change only the constant too.

Write Φ(x)\Phi(x)Φ(x) for the original weighted sum. We have proved

Φ(x)=−910log⁡log⁡x+κ+o(1).\Phi(x)=-\frac9{10}\log\log x+\kappa+o(1).Φ(x)=−109​loglogx+κ+o(1).

The raw sum tends to negative infinity, though its path need not go down at every step.

The exact correction and the small primes

The finite correction splits as

QRp−11=R10+R(10−R)10(p−11).\frac{QR}{p-11}=\frac R{10}+\frac{R(10-R)}{10(p-11)}.p−11QR​=10R​+10(p−11)R(10−R)​.

Thus Δ(p)=da−ε(p)\Delta(p)=d_a-\varepsilon(p)Δ(p)=da​−ε(p), where ε(p)=R(10−R)/(10(p−11))\varepsilon(p)=R(10-R)/(10(p-11))ε(p)=R(10−R)/(10(p−11)). For p>100p>100p>100, dividing by ppp gives a term bounded by a constant times 1/p21/p^21/p2, which proves absolute convergence of the correction and not merely that its individual terms tend to zero.

The sum starts at thirteen, and its twenty terms through ninety-seven form a fixed finite contribution, so no claim about those small primes is needed to establish the coefficient at infinity.

Nine tenths in every term

Add 9/109/109/10 to each deviation before dividing by its prime. The forty limiting coefficients now sum to zero, their copies of log⁡log⁡x\log\log xloglogx cancel exactly, and only constants, vanishing errors and the convergent correction remain, so the centered sum converges.

∑11<p≤xΔ(p)+9/10p.\sum_{11<p\leq x}\frac{\Delta(p)+9/10}{p}.11<p≤x∑​pΔ(p)+9/10​.

Two plots follow all 664574 eligible primes below ten million. The raw sum falls to about minus 1.895354; adding nine tenths to each deviation gives a centered sum ending near minus 0.298439. Two plots follow all 664574 eligible primes below ten million. The raw sum falls to about minus 1.895354; adding nine tenths to each deviation gives a centered sum ending near minus 0.298439.
Every one of the 664,574 prime terms through 9,999,991, before and after adding nine tenths to each deviation. The raw sum keeps sliding down to −1.895, while the centered sum wobbles early and then flattens near −0.298.

At the last plotted prime the centered value is about −0.298439-0.298439−0.298439, a finite value rather than a certified evaluation of the limit. Convergence comes from the cancellation above, not from how level the curve looks.

The checkpoints and two different constants
Terms Last prime Raw Centered
1000 7951 -1.367764 -0.295916
10000 104779 -1.596580 -0.298594
100000 1299811 -1.773479 -0.298335
664574 9999991 -1.895354 -0.298439

All eligible primes below ten million are included. Integer collision counts and rational corrections are exact, and the accumulated decimals use long-double arithmetic and are rounded here.

Adding 0.9log⁡log⁡x0.9\log\log x0.9loglogx to the raw sum is a different centering. Its last value is about 0.6065950.6065950.606595, not −0.298439-0.298439−0.298439. The difference is

910(∑11<p≤x1p−log⁡log⁡x),\frac9{10}\left(\sum_{11<p\leq x}\frac1p-\log\log x\right),109​(11<p≤x∑​p1​−loglogx),

which tends to a nonzero constant. Both procedures remove the drift, but they do not produce the same limiting value.

At the largest plotted cutoff, Φ(x)/log⁡log⁡x\Phi(x)/\log\log xΦ(x)/loglogx is only about −0.682-0.682−0.682, because the additive constant is still visible, and extrapolating that ratio is a poor substitute for counting the finite table.

The signed contrast loses its drift too

Average each column of the table and subtract its limiting correction.

Ending Table mean Correction Deviation
1 -1.7 0.0 -1.7
3 -0.9 0.2 -1.1
7 -0.1 0.6 -0.7
9 0.7 0.8 -0.1

The signed recipe in The Character Structure of the Collision Fluctuation keeps endings one and nine and reverses three and seven. The combined family means on its two sides are equal.

−1.7−0.1=−1.1−0.7=−1.8.-1.7-0.1=-1.1-0.7=-1.8.−1.7−0.1=−1.1−0.7=−1.8.

Two bars contain eighteen negative tenths apiece: seventeen plus one for endings one and nine, eleven plus seven for endings three and seven. Beneath them, the signed character contrast approaches about 0.347454 at the last plotted prime. Two bars contain eighteen negative tenths apiece: seventeen plus one for endings one and nine, eleven plus seven for endings three and seven. Beneath them, the signed character contrast approaches about 0.347454 at the last plotted prime.
Endings 1 and 9 together and endings 3 and 7 together carry the same drift, −1.8 each, so the signed sum A₂ that subtracts one group from the other loses its drift and settles near 0.35 across every prime below ten million.

Each final-digit family receives one quarter of the leading prime harmonic growth, these equal coefficients cancel in A2A_2A2​, and the same argument proves convergence of this particular contrast as well.

Its remaining value includes class constants, the finite correction and the initial primes, so it is not merely a vanishing error. Nor does this calculation say that every character component converges. The real part of A1A_1A1​, for example, compares the unequal family means at endings one and nine.

The decimal coefficient belongs to a general rule. In every fixed base b≥2b\geq2b≥2, reflection leaves a table mean of −1/2-1/2−1/2 and the mean correction is 1/2−1/b1/2-1/b1/2−1/b, so the drift coefficient is −(b−1)/b-(b-1)/b−(b−1)/b. The Collision Fluctuation Sum proves this for each fixed base.

Turn the table in other bases
Twelve grids show the complete reduced-deviation tables in bases two, three, four, five, six, eight, ten, twelve, sixteen, twenty-four, forty-eight and ninety-six. Increasing resolution reveals bands and crossing structures. Twelve grids show the complete reduced-deviation tables in bases two, three, four, five, six, eight, ten, twelve, sixteen, twenty-four, forty-eight and ninety-six. Increasing resolution reveals bands and crossing structures.
The table of endings for twelve bases from 2 to 96, each centered by adding one half, gold above and teal below. In every base, turning the table halfway around swaps gold for teal cell by cell, which is the reflection rule at work.

For base bbb, write an allowed ending as a=bq+ua=bq+ua=bq+u, with uuu coprime to bbb. Rows list qqq and columns list the allowed uuu in increasing order. Negation reverses both orders, so every cell meets its partner under a half turn.

Color represents (Fb(a)+1/2)/b(F_b(a)+1/2)/b(Fb​(a)+1/2)/b. The added half centers the reflection, division by the base puts all panels on the same scale, and a symmetric logarithmic color scale brings out the small deviations without hiding the large ones. Opposite cells have opposite colors, and every entry is present.

Two full-resolution fields compare all 32768 entries in base 256 with all 65792 entries in base 257. The first has dense interleaved bands; the second has long diagonal threads. Half-turn reflection reverses every centered value. Two full-resolution fields compare all 32768 entries in base 256 with all 65792 entries in base 257. The first has dense interleaved bands; the second has long diagonal threads. Half-turn reflection reverses every centered value.
The full tables for base 256, 256 by 128 cells, and base 257, 257 by 256 cells, on the same color scale. Neighboring bases arrange their entries very differently, but each still flips color under a half turn.

Base 256 has 32,768 entries and base 257 has 65,792. Their shapes differ, but the same half turn reverses every centered value, and the image opens at full resolution.

Seventeenths, the forty entries and the two sums
All sixteen seventeenths, listed by numerator and by their first two digits. The two matching beginnings are eleven and eighty-eight.
All sixteen seventeenths, listed by numerator and by their first two digits. The two matching beginnings are eleven and eighty-eight.
The forty decimal entries in their original grid. The arrows identify three pairs whose entries add to minus one.
The forty decimal entries in their original grid. The arrows identify three pairs whose entries add to minus one.
The original raw and termwise-centered prime sums. The upper curve retains the drift; the lower adds nine tenths to each deviation before weighting by its prime.
The original raw and termwise-centered prime sums. The upper curve retains the drift; the lower adds nine tenths to each deviation before weighting by its prime.

At 090909 and 919191, eight positive units meet nine negative ones and one negative is left over, and every reflected pair in the table leaves the same deficit. Those twenty deficits, with four tenths more from the extra places in the bins, make up the whole of the minus nine tenths, a coefficient the primes below ten million still only hint at.

Companion paper: The Collision Fluctuation Sum →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: Silent Primes
Next: The Centered Collision Sum →