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

The Spectral Repulsion

January 9, 202514 min read
Companion paper: The Spectral Repulsion →
The strongest blue and gold bends occur at different places, with some overlap left intact. The computed collision and prime weights show reduced overlap; its persistence at larger scales remains open.
The strongest blue and gold bends occur at different places, with some overlap left intact. The computed collision and prime weights show reduced overlap; its persistence at larger scales remains open.

At base five the collision table and the primes spread their weight over the same four pairs of characters, and they very nearly avoid each other. One pair carries about 656565 percent of the prime weight and less than half a percent of the collision weight. The two pairs that hold 969696 percent of the collision weight hold only 282828 percent of the prime weight. Deal the prime weights out to the four pairs at random and the overlap averages a known amount, exactly one on the scale used below. The real assignment comes in at 0.620.620.62. Across ten bases and six cutoffs, all sixty comparisons that can be made come in below one.

The shortfall matters because of how the collision sum is built. At exponent one half it is a sum over characters, each term a collision coefficient times a prime sum, and in The Double Transversality the larger coefficients kept meeting the smaller prime sums. A correlation of sizes is hard to judge on its own. Turning both lists into shares of a fixed total gives it a yardstick, because the average over every relabeling of the shares can be computed exactly. Spectral repulsion is the name for the measured shortfall below that average. It moves with the cutoff, and whether it lasts is open. The same table also carries a law of a different kind, a sign for every pair of primes whose sum is a multiple of b2b^2b2, and that one is proved.

Two rows that each add to one

The comparison shows up most clearly on made-up numbers. Take two rows of four weights, each adding to one, the first 0.4,0.3,0.2,0.10.4,0.3,0.2,0.10.4,0.3,0.2,0.1 and the second the same numbers in the opposite order. Multiply the rows position by position and add, and the overlap is 0.200.200.20.

Two sets of four rectangles draw the weight products as areas. Opposite ordering totals 0.20; equal ordering totals 0.30. Beneath them, twenty-four dots mark every possible overlap, with mean 0.25. Two sets of four rectangles draw the weight products as areas. Opposite ordering totals 0.20; equal ordering totals 0.30. Beneath them, twenty-four dots mark every possible overlap, with mean 0.25.
Each product as a rectangle, one weight as width and the other as height. Opposite order gives area 0.20 and same order 0.30, and the twenty-four arrangements below average 0.25.

In the figure each product is a rectangle, its width from one row and its height from the other. In opposite order every tall rectangle is a thin one, so the four areas stay small. Reverse the second row and the large weights stand on the large weights. The 0.160.160.16 square alone nearly matches the whole first arrangement, and the overlap rises to 0.300.300.30. Neither row has changed, only who meets whom.

The dots along the bottom are all twenty-four ways to deal the second row against the first. They spread from 0.200.200.20 to 0.300.300.30 and average exactly 0.250.250.25, a quarter of the two totals multiplied together. That average is the yardstick. Opposite order lands twenty percent below it and same order twenty percent above.

Four pairs at twenty-five

Now the rows come from arithmetic. Start with the centered collision table of The Centered Collision Sum, a signed weight f(a)f(a)f(a) for each unit remainder modulo b2b^2b2. Each Dirichlet character reads the table and returns a coefficient. Square its size and divide by the total over all characters, and those shares form the first row. For the second row, run the same characters over the primes, each prime contributing its character value divided by its square root,

PX(χ)=∑b2<p<Xχ(p)p,P_X(\chi)=\sum_{b^2<p<X}\frac{\chi(p)}{\sqrt p},PX​(χ)=b2<p<X∑​p​χ(p)​,

then square and normalize again. Both rows now add to one.

Before anything is shuffled, the table has already ruled most characters out. For an odd prime base, reflection removes the even characters and family centering removes the ones inherited from modulus bbb. What remains are the primitive odd characters, the patterns that flip sign under reflection and need the full modulus b2b^2b2, and both rows are normalized on those. Conjugate characters always carry equal weight, so they stay together in pairs. At base five the modulus is twenty-five, and eight eligible characters make four pairs, labelled A through D.

Four pairs of bars show actual collision and prime weights in base five. Most collision weight occupies A and B, while most prime weight occupies C. A dot plot below locates the actual overlap among all twenty-four shuffles. Four pairs of bars show actual collision and prime weights in base five. Most collision weight occupies A and B, while most prime weight occupies C. A dot plot below locates the actual overlap among all twenty-four shuffles.
Collision shares in teal and prime shares in gold on the four pairs at base five. Below, the twenty-four shuffles of the gold bars, with the real assignment at 0.6216.

The top half of the figure shows the avoidance plainly. The teal bars stand tall at A and B, 38.838.838.8 and 57.157.157.1 percent of the collision weight. The gold bar at C towers over everything at 65.265.265.2 percent of the prime weight, with a teal sliver of 0.40.40.4 percent beside it. The largest prime weight sits opposite the smallest collision weight.

For kkk pairs with shares xrx_rxr​ and yry_ryr​, a uniform shuffle averages 1/k1/k1/k, since every prime share visits every position equally often. Scaling by kkk moves the yardstick to one,

ρ=k∑r=1kxryr.\rho=k\sum_{r=1}^{k}x_r y_r.ρ=kr=1∑k​xr​yr​.

At base five ρ≈0.6216\rho\approx0.6216ρ≈0.6216. In the lower half of the figure the gray dots are the twenty-four shuffles of the gold bars, and the teal dot is the real assignment, sitting well left of the dashed mean. It isn’t the leftmost, since eight shuffles overlap even less and fifteen overlap more. Nothing in this makes the primes random. The weights stay exactly as computed, and the only randomness anywhere is a permutation of their labels.

The four pairs and their weights

Write χj(2)=e2πij/20\chi_j(2)=e^{2\pi i j/20}χj​(2)=e2πij/20, since two generates the unit remainders modulo twenty-five. Pair A joins indices 1 and 19, B joins 3 and 17, C joins 7 and 13, and D joins 9 and 11. The weights below combine the two members of each pair. All 148,924148{,}924148,924 primes strictly between 252525 and 2,000,0002{,}000{,}0002,000,000 enter the prime sums.

Pair Collision share Prime share
A 38.7976% 5.7905%
B 57.0818% 22.4346%
C 0.3718% 65.2180%
D 3.7488% 6.5569%

The numbers are rounded for display. The figure and overlap use the unrounded values.

Give the primes more room

Raising the cutoff leaves the collision row untouched and changes the prime row, as new primes enter every character sum. The ledger covers the ten prime bases from five to thirty-seven at six cutoffs, from a quarter million to five million.

A ten-by-six heatmap gives every nontrivial scaled overlap. All sixty are below one. Ten curves below connect the measured values; their gold mean moves from about 0.624 to 0.546. A ten-by-six heatmap gives every nontrivial scaled overlap. All sixty are below one. Ten curves below connect the measured values; their gold mean moves from about 0.624 to 0.546.
All sixty scaled overlaps, darker for a deeper shortfall. Below, the ten bases across the six cutoffs with their mean in gold, all under the shuffle mean of one.

Every one of the sixty cells in the grid is below one. The darkest, the deepest shortfall, is base five at a quarter million, 0.3590.3590.359. The palest is base twenty-nine at the same cutoff, 0.8470.8470.847, and even that falls well short of one. In the lower plot the ten thin lines cross and recross as the cutoff grows. The gold mean barely moves, 0.6240.6240.624 and 0.6270.6270.627 at the first two cutoffs and then down to 0.5460.5460.546 at five million.

The windows share most of their primes. These are sixty overlapping looks at one sequence, and a common sign across them proves no infinite law. Base three sits outside the grid. It has a single eligible pair and nothing to rearrange, so its ratio is exactly one. Counting the excluded characters as well would mix two effects, how much prime weight reaches the eligible pairs and how that weight is placed among them, and The Spectral Repulsion separates the two exactly.

All sixty values and the exact shuffle variance

Each entry uses primes strictly between the square of its base and the column’s cutoff. The ratios are rounded to six decimal places.

Base / cutoff 250,000 500,000 1,000,000 2,000,000 3,000,000 5,000,000
5 0.358604 0.623585 0.569230 0.621637 0.623558 0.698186
7 0.517232 0.466571 0.531456 0.480109 0.481618 0.487967
11 0.497731 0.599124 0.527714 0.554413 0.538091 0.461928
13 0.565944 0.502696 0.484069 0.571188 0.588751 0.513094
17 0.568194 0.553257 0.551279 0.535310 0.531447 0.431643
19 0.666823 0.749630 0.715464 0.769019 0.608098 0.578852
23 0.646340 0.587253 0.595957 0.580464 0.598449 0.539563
29 0.847195 0.763904 0.697677 0.609580 0.581497 0.663482
31 0.766327 0.761552 0.738612 0.613236 0.651921 0.516871
37 0.802902 0.659609 0.560271 0.573913 0.544948 0.571037

For a uniformly chosen permutation π\piπ, put Rπ=k∑rxryπ(r)R_\pi=k\sum_r x_r y_{\pi(r)}Rπ​=k∑r​xr​yπ(r)​. When k>1k>1k>1, its mean and variance are

E[Rπ]=1,\mathbb E[R_\pi]=1,E[Rπ​]=1,

Var⁡(Rπ)=k2k−1AxAy,Ax=∑r(xr−1/k)2,Ay=∑r(yr−1/k)2.\begin{aligned} \operatorname{Var}(R_\pi)&=\frac{k^2}{k-1}A_xA_y,\\ A_x&=\sum_r(x_r-1/k)^2,\\ A_y&=\sum_r(y_r-1/k)^2. \end{aligned}Var(Rπ​)Ax​Ay​​=k−1k2​Ax​Ay​,=r∑​(xr​−1/k)2,=r∑​(yr​−1/k)2.​

The variance is exact for these two lists. One shuffled entry has the list’s mean-square deviation. Two distinct shuffled entries have negative covariance because they cannot occupy the same position. Expanding the square of the weighted sum gives the formula.

At two million, base five sits 0.710.710.71 shuffle standard deviations below one. Base thirty-seven sits 2.932.932.93 below. Both distances are measured in the relabeling distribution. A single pair has zero variance.

Sixteen pairs, seventy percent

The two rows also differ in shape. At base thirty-seven there are 324324324 pairs. Order them once by collision weight and keep the prime row in that same order.

Two aligned profiles show all 324 character-pair weights at base thirty-seven, sorted once by collision weight. The first sixteen positions hold 70.01 percent of collision weight and 2.48 percent of prime weight. Two aligned profiles show all 324 character-pair weights at base thirty-seven, sorted once by collision weight. The first sixteen positions hold 70.01 percent of collision weight and 2.48 percent of prime weight.
Base thirty-seven’s 324 pairs, ordered once by collision weight, with the prime row kept in the same order. The shaded first sixteen hold 70.01 and 2.48 percent.

The teal spike at the left is the collision row, nearly all of it in the first few dozen pairs. The shaded first sixteen hold 70.0170.0170.01 percent. The gold row in the same positions is almost flat, 2.482.482.48 percent for those sixteen, and its tallest bars are scattered far to the right, out where the collision weight has thinned to nothing.

Spread can also be measured with the positions thrown away. The effective support of a row is the number of equal weights with the same entropy. Four equal weights give four and one occupied position gives one, while unequal weights can land between integers.

Base Eligible characters Collision support Prime support
5 8 4.59 5.21
13 72 17.97 49.71
29 392 63.95 290.02
37 648 92.05 493.73

The supports count individual characters, both members of every pair. At base twenty-nine the collision weights have the entropy of about sixty-four equal weights and the prime weights about two hundred and ninety. A concentrated row can still put its biggest weight opposite the biggest weight in a broad row, so concentration alone can’t make the overlap small. That is the reason for shuffling. Both rows keep their shapes, only the partners change, and the real partners still come in low.

A partner with the opposite sign

The same table answers a different kind of question about pairs. Instead of matching characters, match remainders that add to a chosen target. The base-three table fits in nine places, with nonunit remainders given weight zero.

Remainder 0 1 2 3 4 5 6 7 8
Weight 0 2/3 4/3 0 2/3 −2/3 0 −4/3 −2/3

For target zero, one meets eight, two meets seven and four meets five. Each pair carries opposite weights, so every product is a negative square. Counting both orders, the total is −16/3-16/3−16/3. Running every remainder against every target gives the additive convolution

K(t)=∑a mod b2f(a)f(t−a).K(t)=\sum_{a\bmod b^2}f(a)f(t-a).K(t)=amodb2∑​f(a)f(t−a).

An exact nine-by-nine signed product grid in base three. Gold outlines target zero, whose nonzero cells are all negative. Each column has its convolution sum plotted immediately beneath it. An exact nine-by-nine signed product grid in base three. Gold outlines target zero, whose nonzero cells are all negative. Each column has its convolution sum plotted immediately beneath it.
Each cell is f(a) times f(t − a) in base three, shown nine times larger. The outlined target-zero column is all negative, and the column sums below add to zero.

The outlined first column is target zero, and every cell in it is violet or empty, −4-4−4 and −16-16−16 in ninths. Reflection forces that, because f(−a)=−f(a)f(-a)=-f(a)f(−a)=−f(a). The bars underneath add each column. Target zero drops to −16/3-16/3−16/3, which is the negative of the table’s energy,

K(0)=−∑a mod b2f(a)2.K(0)=-\sum_{a\bmod b^2}f(a)^2.K(0)=−amodb2∑​f(a)2.

Targets three through six rise to +8/3+8/3+8/3 each, targets one, two, seven and eight dip to −4/3-4/3−4/3, and the nine columns together add to exactly zero. The other targets make up for the first column only in total. The first column is the one forced cell by cell.

From nine remainders to 1,369

The same construction below uses bases three, five, seven, ten, nineteen and thirty-seven. Every cell is a product f(a)f(t−a)f(a)f(t-a)f(a)f(t−a), with aaa down the page and target ttt across. The largest grid contains 1,874,1611{,}874{,}1611,874,161 products. The target-zero column stays nonpositive at every size.

Six complete signed product matrices, from nine by nine to 1,369 by 1,369. Increasing the base reveals fine diagonal threads and bands. A gold outline identifies the nonpositive reflection column in every panel. Six complete signed product matrices, from nine by nine to 1,369 by 1,369. Increasing the base reveals fine diagonal threads and bands. A gold outline identifies the nonpositive reflection column in every panel.
The same products for bases three through thirty-seven, up to 1,874,161 cells. The target-zero column at the left edge stays nonpositive at every size.

Select the image, choose 100%, and drag to inspect the individual cells. Color retains the sign and uses log⁡(1+∣f(a)f(t−a)∣)\log(1+|f(a)f(t-a)|)log(1+∣f(a)f(t−a)∣) for intensity, rescaled in each panel. The colors make small products visible; the column sums use the original weights.

The additive Fourier coefficients, all nonpositive

These identities hold for every base b≥2b\ge2b≥2, including composite bases. With m=b2m=b^2m=b2, the zero extension of fff is real and odd. Its additive Fourier transform

F(j)=∑a mod mf(a)e−2πija/m\mathcal F(j)=\sum_{a\bmod m}f(a)e^{-2\pi ija/m}F(j)=amodm∑​f(a)e−2πija/m

is purely imaginary. The cosine contributions cancel between aaa and −a-a−a. Convolution becomes multiplication, so

K^(j)=F(j)2=−∣F(j)∣2≤0.\widehat K(j)=\mathcal F(j)^2=-|\mathcal F(j)|^2\le0.K(j)=F(j)2=−∣F(j)∣2≤0.

The square of a purely imaginary number is the negative of its squared size, which is where the sign comes from. Also ∑tK(t)=(∑af(a))2=0\sum_t K(t)=(\sum_a f(a))^2=0∑t​K(t)=(∑a​f(a))2=0, which proves the compensation without requiring the individual convolution values to vanish.

The sign carries straight over to primes. Thirty-six is a multiple of nine and the sum of four pairs of primes, 5+315+315+31, 7+297+297+29, 13+2313+2313+23 and 17+1917+1917+19.

The four unordered prime pairs summing to thirty-six are arranged symmetrically about eighteen. Each pair carries opposite collision weights and a negative product. The ordered total is −56/9. The four unordered prime pairs summing to thirty-six are arranged symmetrically about eighteen. Each pair carries opposite collision weights and a negative product. The ordered total is −56/9.
The four prime pairs that add to thirty-six, with each prime’s weight beside it and each product above its line. Every product is negative, and they total −28/9.

Each pair in the figure faces its partner across 181818, and the two weights always have opposite signs, violet against teal. The products are −4/9-4/9−4/9, −16/9-16/9−16/9, −4/9-4/9−4/9 and −4/9-4/9−4/9, for a total of −28/9-28/9−28/9. For any even target divisible by b2b^2b2, every pair of primes that adds up to it contributes a product that is zero or negative. The law fixes a sign and is silent on whether such pairs exist.

Back to the four pairs

In the additive grid every negative product has a partner to blame. The multiplicative overlap offers nothing like that. Adding remainders and matching character weights are different operations on the same table, and the sign law does nothing to explain the shortfall.

At base five and a cutoff of two million, pair C holds 65.218065.218065.2180 percent of the prime weight against 0.37180.37180.3718 percent of the collision weight, and the scaled overlap is 0.62160.62160.6216. Across the six cutoffs the same base reads 0.3586040.3586040.358604, 0.6235850.6235850.623585, 0.5692300.5692300.569230, 0.6216370.6216370.621637, 0.6235580.6235580.623558 and 0.6981860.6981860.698186, every one of them under one.

The toy rows, the ten bases and the nine targets as bar charts
The opening example as adjacent bars, with all twenty-four overlaps beneath it. Opposite and equal order preserve both weight lists.
The opening rows as bars, opposite order and same order, with the twenty-four overlaps below.
The ten base comparisons at two million, followed by the range and mean across bases at each of the six cutoffs. These are finite, overlapping prime intervals.
Scaled overlaps at two million for the ten bases, then the range and mean at each cutoff.
All nine additive convolution values at base three. The reflection target gives −16/3; the other eight sum to +16/3.
The nine base-three column sums. Target zero gives −16/3 and the other eight add to +16/3.
Companion paper: The Spectral Repulsion →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Double Transversality
Next: The Collision Spectrum and the L-Function Landscape →