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

The Bias Beneath the Secondary Term

August 9, 20269 min read
Companion paper: The Stationary-to-Diagonal Transition in Collision Capacity →
The blue rings suggest repeating remainder clocks. The gold boundary cuts through unfinished cycles, evoking the bias created when the observation grows with the resolution.
The blue rings suggest repeating remainder clocks. The gold boundary cuts through unfinished cycles, evoking the bias created when the observation grows with the resolution.

The Clocks Beneath Collision Energy ends on a strange mystery. Its clock model behaves perfectly on average, over every way the clocks could be set. But the integers, the numbers we actually count with and the only ones we ever experience, are a sliver of those settings, so thin that the average cannot see them. At every one of them the model’s readout runs off to minus infinity. The whole is calm, and the part we live in falls without end. Why should the numbers we actually use be the one place the model breaks?

The answer is in how the real calculation reads its clocks. It never holds the collection fixed. At integer nnn it reads every clock through period nnn, so each step brings in one new clock, and every new clock starts at the bottom of its cycle. A clock that has not finished its first turn has spent all its time below average. Those unfinished turns drag the readings down, a little further at every step, by about a thirtieth of log⁡n\log nlogn. Remove that drag exactly, and the readings over long stretches of integers fall into the clock model’s distribution after all.

The same thing happens twice more. Read only at the integers just below primes, and the average drops by exactly one third. Hold the collection of clocks fixed for a stretch, and a parabola appears in the data. In all three cases the effect comes from the way the readings are taken, not from the numbers being read, and each one has an exact formula. Take them out, and what remains is the fluctuation the clock model was describing all along.

Clocks that arrive at the bottom

Here is the drag in its smallest form. A period-five clock reads zero, one, two, three, four, then starts again. Subtract its average, two. The five readings become

−2,−1,0,1,2.-2,\quad -1,\quad 0,\quad 1,\quad 2.−2,−1,0,1,2.

They add to zero. But the calculation admits this clock at integer five, just as its hand returns to zero. Through integer seven, we have collected only the first three centered readings. Their sum is minus three.

At nine, the clock pays back the difference. By then, the clocks of periods six, seven, eight and nine have joined the calculation. Each arrives at the bottom of its cycle.

Five centered readings run from minus two through plus two. Their cumulative path falls to minus three and returns to zero. Below, clock rows of periods two through twelve enter along a staircase. A vertical slice at seven contains only a prefix of the period-five turn. Five centered readings run from minus two through plus two. Their cumulative path falls to minus three and returns to zero. Below, clock rows of periods two through twelve enter along a staircase. A vertical slice at seven contains only a prefix of the period-five turn.
Top, the period-five clock’s centered readings, minus two through two, and their running total, which falls to minus three at seven and climbs back to zero at nine. Below, clocks of periods two through twelve, each entering on the diagonal staircase at the bottom of its cycle. Violet cells sit below a clock’s average and teal cells above. Every column cuts through at least one unfinished turn, and unfinished turns lean violet.

Each clock carries a positive weight fixed by the arithmetic. A complete turn contributes nothing to the accumulated centered reading. An unfinished turn can only leave a deficit.

There is always another clock arriving.

The exact clock ledger

For period kkk, write rk(n)=n mod kr_k(n)=n\bmod krk​(n)=nmodk and

wk=1k2∑1≤a<k(a,k)=11a.w_k=\frac1{k^2} \sum_{\substack{1\le a<k\\(a,k)=1}}\frac1a.wk​=k21​1≤a<k(a,k)=1​∑​a1​.

The weights are positive and sum to one. The centered sum through a fixed period MMM is

YM(n)=23∑k=2Mwk(rk(n)−k−12).Y_M(n)=\frac23\sum_{k=2}^{M}w_k \left(r_k(n)-\frac{k-1}{2}\right).YM​(n)=32​k=2∑M​wk​(rk​(n)−2k−1​).

The actual growing calculation reads yn=Yn(n)y_n=Y_n(n)yn​=Yn​(n). Both the integer being read and the last admitted period are nnn. This is the diagonal in the paper’s title.

Let r=rk(N)r=r_k(N)r=rk​(N). The centered positions collected from a clock’s admission at kkk through integer NNN add to

−12(r+1)(k−1−r).-\frac12(r+1)(k-1-r).−21​(r+1)(k−1−r).

Multiply by 2wk/32w_k/32wk​/3 and add over k≤Nk\le Nk≤N to recover ∑n=1Nyn\sum_{n=1}^N y_n∑n=1N​yn​. Every contribution is nonpositive. This proves a statement about the cumulative sum from the beginning, not the sign of every individual reading or every shorter window.

A falling average

Take all the readings from 1,001 through 2,000. Their average is about −0.275-0.275−0.275. Move to 10,001 through 20,000 and it is −0.352-0.352−0.352. Between one million and two million it is −0.503-0.503−0.503.

The paper accounts for that movement. At integer nnn, the smooth bias is approximately −0.032853log⁡n−0.036400-0.032853\log n-0.036400−0.032853logn−0.036400, with the exact constants determined by the weights. Subtract it at each integer. No curve is fitted to the data.

Three gold frequency profiles move left as the complete integer windows grow from one thousand to one million observations. Three teal profiles underneath use the same readings with the proved logarithmic bias removed separately at each integer. Their means lie close to zero. Three gold frequency profiles move left as the complete integer windows grow from one thousand to one million observations. Three teal profiles underneath use the same readings with the proved logarithmic bias removed separately at each integer. Their means lie close to zero.
Gold, the raw readings in three windows of integers, from a thousand wide to a million wide. The whole profile slides left as the windows move out. Teal, the same readings with the drag removed at each integer. They stay put, centered on zero. Every integer is counted, and nothing is smoothed or fitted.

The corrected readings approach the clock model’s distribution from The Clocks Beneath Collision Energy. Their average square approaches its finite, positive value too. The theorem describes how frequently different readings occur as the observation window moves outward. It does not say that a particular reading settles down.

This is the missing step between the clock model and the calculation. In the model, we average a fixed collection of clocks before enlarging it. Here, every step adds a clock. The proof has to control the growing collection, not just each clock separately.

The centering and the transfer theorem

Set α=1/ζ(2)\alpha=1/\zeta(2)α=1/ζ(2) and

β=γζ(2)−ζ′(2)ζ(2)2.\beta=\frac{\gamma}{\zeta(2)} -\frac{\zeta'(2)}{\zeta(2)^2}.β=ζ(2)γ​−ζ(2)2ζ′(2)​.

The constants come from the cumulative weights and two convergent sawtooth integrals. With

I0=12log⁡(2π)−1,I1=1+12ζ′′(0),\begin{aligned} I_0&=\frac12\log(2\pi)-1,\\ I_1&=1+\frac12\zeta''(0), \end{aligned}I0​I1​​=21​log(2π)−1,=1+21​ζ′′(0),​

they are

b=23αI0,c=23(βI0−αI1).b=\frac23\alpha I_0,\qquad c=\frac23(\beta I_0-\alpha I_1).b=32​αI0​,c=32​(βI0​−αI1​).

Define Zn=yn−blog⁡n−cZ_n=y_n-b\log n-cZn​=yn​−blogn−c. For an integer chosen uniformly from X<n≤2XX<n\le2XX<n≤2X, the empirical law of ZnZ_nZn​ tends to the Haar law of the stationary potential YYY. The proof also gives

1X∑X<n≤2XZn=O(X−1/3log⁡2(2X))\frac1X\sum_{X<n\le2X}Z_n =O\left(X^{-1/3}\log^2(2X)\right)X1​X<n≤2X∑​Zn​=O(X−1/3log2(2X))

and

1X∑X<n≤2XZn2=EY2+O(X−1/5log⁡2(2X)).\begin{gathered} \frac1X\sum_{X<n\le2X}Z_n^2 =\mathbb E Y^2\\ +O\left(X^{-1/5}\log^2(2X)\right). \end{gathered}X1​X<n≤2X∑​Zn2​=EY2+O(X−1/5log2(2X)).​

The main comparison separates short periods, which can be averaged, from long periods, whose combined contribution is evaluated by an integral. A growing range exists where both estimates are small. That overlap is what permits the transfer.

Eight point seven is not noise

The same care matters one level up, in the capacity the collision energy is built from. Capacity measures the squared size of the interacting remainder waves. Call it J(n)J(n)J(n). Its leading profile is nnn, and the shortfall is Dn=n−J(n)D_n=n-J(n)Dn​=n−J(n).

The Secondary Term of the Cubic Law found the main part of that shortfall, log⁡2n/π2\log^2 n/\pi^2log2n/π2. At one million that comes to about 19.3. The actual shortfall there is about 28. The clock calculation accounts for the difference.

Dn=log⁡2nπ2+Blog⁡n+C+Rn.D_n=\frac{\log^2 n}{\pi^2}+B\log n+C+\mathcal R_n.Dn​=π2log2n​+Blogn+C+Rn​.

Here B≈0.604898B\approx0.604898B≈0.604898 and C≈0.377541C\approx0.377541C≈0.377541, both given exactly by the weights. At one million, Blog⁡n+CB\log n+CBlogn+C is about 8.7. That is not scatter. It is a smooth, predictable part of the shortfall, and it is about twenty times the size of the real fluctuation, whose typical size near one million is about 0.4. Leave it in, and it buries the thing we are trying to study.

After the full subtraction, the capacity residual Rn\mathcal R_nRn​ approaches the same distribution as the corrected clock reading. The two differ by an error that tends to zero.

From the clock reading to capacity

The continuous capacity is exactly

J(n)=13∑r,s≤n(r,s)2rs,J(n)=\frac13\sum_{r,s\le n}\frac{(r,s)^2}{rs},J(n)=31​r,s≤n∑​rs(r,s)2​,

where (r,s)(r,s)(r,s) denotes the greatest common divisor. Its deficit includes all periods, including those longer than nnn.

Dn=23∑k≥2wkrk(n).D_n=\frac23\sum_{k\ge2}w_k r_k(n).Dn​=32​k≥2∑​wk​rk​(n).

The exact dictionary is

Dn=D∗(n)+yn+2n3∑k>nwk,D_n=D_*(n)+y_n+\frac{2n}{3}\sum_{k>n}w_k,Dn​=D∗​(n)+yn​+32n​k>n∑​wk​,

with D∗(n)=13∑k≤nwk(k−1)D_*(n)=\frac13\sum_{k\le n}w_k(k-1)D∗​(n)=31​∑k≤n​wk​(k−1). The omitted long clocks have remainder nnn, which explains the last term. Evaluating the three pieces gives the displayed capacity profile and

Rn=Zn+O(log⁡2(2n)n).\mathcal R_n=Z_n+O\left(\frac{\log^2(2n)}n\right).Rn​=Zn​+O(nlog2(2n)​).

The paper supplies the exact zeta-derivative expressions for BBB and CCC, rather than estimating them from observed capacities.

The primes sit lower

Prime-base collision energy uses capacity at the preceding integer, p−1p-1p−1. Selecting those integers changes which clock positions we see.

Look at period six. A prime greater than three leaves remainder one or five. Its predecessor therefore leaves zero or four. The average of those two positions is two. The average of all six positions is two and a half.

Half a position lower, before any large computation.

Six equally weighted positions have average two and a half. Selecting prime predecessors leaves positions zero and four, with average two. Underneath, complete-window histograms compare one million corrected integer readings with 70,435 corrected prime-predecessor readings on the same axes. Six equally weighted positions have average two and a half. Selecting prime predecessors leaves positions zero and four, with average two. Underneath, complete-window histograms compare one million corrected integer readings with 70,435 corrected prime-predecessor readings on the same axes.
Top, the clock of period six. All six positions average two and a half, but the integers just below primes can only sit at zero or four, which average two. Below, the corrected readings for every integer between one and two million, against the 70,435 integers just below primes in the same range. The prime histogram sits lower, with its mean at about minus 0.334, next to the proved minus one third.

The same half-position shift holds at every fixed period when we average over the allowed prime residue classes. Multiply by the clock readout factor, two thirds, and by the total weight, one. The combined shift is exactly −1/3-1/3−1/3.

A separate argument justifies passing from those residue classes to growing primes. The resulting distribution is symmetric about −1/3-1/3−1/3, with positive finite variance. Moving it right by one third corrects its mean. That does not make it the all-integer distribution.

The result concerns continuous capacity at p−1p-1p−1. Transferring this finer law to the original finite digit grid still requires an estimate for the grid-sampling defect.

Half a position lost every period

The units uuu modulo kkk pair with k−uk-uk−u. Their average least residue is k/2k/2k/2, including the single unit at k=2k=2k=2. Subtracting one gives predecessor average k/2−1k/2-1k/2−1, whereas the full clock average is (k−1)/2(k-1)/2(k−1)/2. Their difference is −1/2-1/2−1/2.

For a finite cutoff the mean is therefore

−13∑k≤Mwk.-\frac13\sum_{k\le M}w_k.−31​k≤M∑​wk​.

As MMM grows, this tends to −1/3-1/3−1/3. The paper’s proof constructs the unit-phase limit separately in mean square, then controls growing cutoffs on the prime sample. Its variance is at least 1/3241/3241/324. The mean, symmetry and nonzero variance are proved results, not inferences from the plotted window.

The edge draws a parabola

Try a different observation. Keep only the clocks through period MMM and hold that collection fixed while reading integers from X+1X+1X+1 through 2X2X2X. Then choose a larger collection for the next window.

It is tempting to suppose that any cutoff small compared with XXX will recover the stationary distribution. The unfinished boundary has a more exact requirement. The quantity Mlog⁡M/XM\log M/XMlogM/X must tend to zero.

A cutoff near X/log⁡XX/\log XX/logX is already large enough to contribute a fluctuation of its own. Fold the discrepancy by the cutoff period, bringing each turn onto the same interval. A parabola appears.

The discrepancy between the corrected diagonal and a fixed cutoff makes repeated curved dips as the integer advances. Folding 401 sampled readings by the cutoff period and dividing by the known amplitude brings them onto the Bernoulli parabola. After subtraction, the scaled remaining errors lie near zero on the same vertical scale. The discrepancy between the corrected diagonal and a fixed cutoff makes repeated curved dips as the integer advances. Folding 401 sampled readings by the cutoff period and dividing by the known amplitude brings them onto the Bernoulli parabola. After subtraction, the scaled remaining errors lie near zero on the same vertical scale.
The gap between the full calculation and one that keeps only the clocks through period 72,382, sampled at 401 integers between one and two million. In time order it dips again and again. Fold it by the cutoff, so every dip lands on the same interval, and the points fall onto the gold parabola u squared minus u plus one sixth. Subtract the parabola and what is left, at the bottom, is close to zero.

The curve is u2−u+1/6u^2-u+1/6u2−u+1/6, the second Bernoulli polynomial. The sloping clock reading becomes a quadratic when accumulated. In the proof, integration by parts brings that quadratic to the boundary of the omitted periods.

At the critical scale, this boundary contribution becomes independent of the stationary fluctuation. It adds a precisely calculable amount to the limiting variance. Keeping more clocks has changed the distribution being measured, even though their cutoff remains a vanishing fraction of the observation scale.

The boundary formula and its sharp threshold

Put u={n/M}u=\{n/M\}u={n/M} and B2(u)=u2−u+1/6B_2(u)=u^2-u+1/6B2​(u)=u2−u+1/6. The leading difference is

Zn−YM(n)=(αlog⁡M+β)M3nB2(u)+controlled error.\begin{gathered} Z_n-Y_M(n)\\ =\frac{(\alpha\log M+\beta)M}{3n}B_2(u)\\ +\text{controlled error}. \end{gathered}Zn​−YM​(n)=3n(αlogM+β)M​B2​(u)+controlled error.​

The figure recomputes the paper’s 401 specified addresses with X=106X=10^6X=106 and M=72 382M=72\,382M=72382. The root-mean-square discrepancy is about 0.009620.009620.00962. Subtracting the stated term reduces it to about 0.0001170.0001170.000117. No constants are fitted.

Assume M→∞M\to\inftyM→∞ and M=o(X)M=o(X)M=o(X). Write λX=Mlog⁡M/X\lambda_X=M\log M/XλX​=MlogM/X. If λX→0\lambda_X\to0λX​→0, the stationary law and second moment transfer. If instead λX→λ>0\lambda_X\to\lambda>0λX​→λ>0, the frozen-cutoff law tends to

Y−λ3ζ(2)TB2(U),Y-\frac{\lambda}{3\zeta(2)T}B_2(U),Y−3ζ(2)Tλ​B2​(U),

where YYY, TTT and UUU are independent, TTT is uniform on [1,2][1,2][1,2], and UUU is uniform on [0,1][0,1][0,1]. Its extra second moment is

λ290π4.\frac{\lambda^2}{90\pi^4}.90π4λ2​.

If λX→∞\lambda_X\to\inftyλX​→∞, the boundary dominates at that scale. Within the stated regime, Mlog⁡M=o(X)M\log M=o(X)MlogM=o(X) is necessary and sufficient for the stationary second moment to transfer. The endpoint M=XM=XM=X is a separate regime, not covered by the condition M=o(X)M=o(X)M=o(X).

Watch the admission edge grow
Four complete triangular fields show every clock and integer through 24, 96, 384 and 1,024. Violet marks centered positions below zero and teal those above. Clocks enter along the diagonal at their minimum. Repeated bands become a fine network of reset lines as the resolution grows. Four complete triangular fields show every clock and integer through 24, 96, 384 and 1,024. Violet marks centered positions below zero and teal those above. Clocks enter along the diagonal at their minimum. Repeated bands become a fine network of reset lines as the resolution grows.
Every clock through period 24, 96, 384 and 1,024, read at every integer up to the same bound. Columns are integers and rows are periods. Each clock enters on the diagonal at its lowest reading, so the edge of each triangle is always violet. Deeper in, finished turns leave bands and a fan of reset lines. Open at full size to follow them.

The diagonal separates clocks already admitted from those still waiting. Its first reading is always at the negative end of the color scale. Farther into the field, completed turns leave repeated bands and a fan of reset lines. This is the geometry beneath the cumulative sign identity, with no weights or fitted trend added to the picture.

Four close studies of the clock calculation
Four admitted clock rows and the period-five prefix sum. A completed turn balances; the unfinished part carries the deficit.
Four clocks and the period-five running total. A finished turn balances to zero. The unfinished part is where the deficit lives.
Five complete integer windows through two million. The lines mark means, and the shaded widths show one centered standard deviation, not confidence intervals.
Means and spreads over five windows of integers up to two million. The shaded width is one standard deviation of the readings, not a confidence interval.
The six-position clock with all phases and with prime-predecessor phases. The half-position shift produces mean minus one third after weighting.
The period-six clock with every position, and with only the positions that integers just below primes can reach. After weighting, the half-position drop becomes minus one third.
The original 401-point cutoff comparison. Dividing by the explicit amplitude exposes the Bernoulli parabola without a fitted parameter.
The 401 readings folded by the cutoff. Dividing by the known amplitude brings out the parabola, with nothing fitted.

The full proofs are in The Stationary-to-Diagonal Transition in Collision Capacity.

A stable distribution still leaves room for rare, large readings. The paper constructs residuals of both signs that grow without bound. They persist even when the contributions from clocks resetting at either neighboring integer are removed.

So the obvious resets do not pay the whole bill. I can describe the limiting spread. I cannot yet tell you the worst these clocks can do.

Companion paper: The Stationary-to-Diagonal Transition in Collision Capacity →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Clocks Beneath Collision Energy
Next: The Weight of a Carry →