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

The Collision Invariant

March 29, 202614 min read
Companion paper: The Collision Invariant →
Blue and gold paths connect a field of rectangular bins to two rows of glowing points.
The collision count grows with the denominator. Its deviation repeats in a finite table.

Divide 4 by 13. Then divide 5 by 13.

413=0.307692‾,513=0.384615‾.\begin{aligned} \frac4{13}&=0.\overline{307692},\\ \frac5{13}&=0.\overline{384615}. \end{aligned}134​135​​=0.307692,=0.384615.​

Both begin with a 3. Two different remainders give the same next digit. They belong to the same digit bin.

Now multiply the remainder 5 by 6 and divide by 13.

6×5=30=2×13+4.6\times5=30=2\times13+4.6×5=30=2×13+4.

The remainder changes from 5 to 4. The digit stays at 3. That agreement is a collision.

Try every nonzero remainder. Multiplication by 6 preserves the digit twice, at 5↦45\mapsto45↦4 and 8↦98\mapsto98↦9. The other ten moves leave their bins.

A twelve-node remainder circle shows every multiplication-by-six move modulo thirteen. Two arrows are highlighted, from five to four and eight to nine. Beneath it, the matching leading digits are boxed in the four repeating decimal blocks. A twelve-node remainder circle shows every multiplication-by-six move modulo thirteen. Two arrows are highlighted, from five to four and eight to nine. Beneath it, the matching leading digits are boxed in the four repeating decimal blocks.
Circle labels are remainders; the outer labels are their leading decimal digits. Only the gold and teal moves keep the digit. The overbars below mark repeating blocks. Multiplication acts on the remainders modulo thirteen.

Six years, three papers

The research notes beginning in 2020 ask how much agreement long division permits. An alignment score gives one number. The pairwise matrix keeps the individual comparisons. Digit bins make it possible to count that agreement directly in the remainders. From there, the same arithmetic reaches finite tables, character sums, and LLL-functions.

The trilogy gathers the main results into a connected argument. The Collision Invariant establishes the finite object and the rules it obeys. The Collision Transform resolves the centered table into character components and studies what happens when primes sample it. The Collision Spectrum factors those components and identifies the LLL-values carried by the digits.

I submitted the three preprints to arXiv in March 2026. Six years of research notes now stand together as Invariant, Transform, and Spectrum. The familiar fractions return with more to answer for. A change of coordinates may reveal something new, but it still owes us the same count.

Three panels follow a base-five collision table through the trilogy. Twenty signed cells become a character-magnitude plot with eight active components. Eight squares show the relative fourth powers of the corresponding L-values. Three panels follow a base-five collision table through the trilogy. Twenty signed cells become a character-magnitude plot with eight active components. Eight squares show the relative fourth powers of the corresponding L-values.
An actual base-five example connects the papers. The first panel is the lag-one table modulo 25. After each column is centered, its character expansion has eight nonzero coefficients. The last panel uses square areas proportional to the fourth powers of the associated L-value magnitudes. Their exact total is 192π⁴/625, a result of The Collision Spectrum. Character index j means χⱼ(2) = exp(2πij/20).

Here the work stays with the finite count. Four results belong together. They give its exact zero set, the number of digits needed to determine its deviation, the reflection of that deviation, and the balance of the individual crossings underneath it.

Change the labels. Keep the groups.

The next digit of r/pr/pr/p in base bbb is

δ(r)=⌊brp⌋.\delta(r)=\left\lfloor\frac{br}{p}\right\rfloor.δ(r)=⌊pbr​⌋.

The floor means round down. In decimal, 40/1340/1340/13 and 50/1350/1350/13 both round down to 3.

Multiply each remainder by ten and keep its remainder modulo 13. Our pair becomes

4⟼1,5⟼11.4\longmapsto1,\qquad5\longmapsto11.4⟼1,5⟼11.

The new labels end in the same digit. Every bin changes this way. Its members now share a remainder upon division by ten.

Ten colored lanes follow the twelve remainders modulo thirteen to their new labels under multiplication by ten. Members of each lane have the same final decimal digit after relabeling. The two-member lanes for digits three and six are highlighted. Ten colored lanes follow the twelve remainders modulo thirteen to their new labels under multiplication by ten. Members of each lane have the same final decimal digit after relabeling. The two-member lanes for digits three and six are highlighted.
Every member is shown. Multiplication by ten changes the labels but preserves the groups. The rightmost suffix identifies the new congruence class, which need not have the same name as the original digit bin.

The bin called 3 has become the class ending in 1. Its name changes; its membership does not. Interval boundaries give way to a test of congruence.

Long division supplies the proof. Write br=pδ(r)+xbr=p\delta(r)+xbr=pδ(r)+x, where xxx is the new remainder. Modulo bbb, this gives x≡−pδ(r)x\equiv-p\delta(r)x≡−pδ(r). Since ppp is invertible modulo bbb, knowing either side determines the other.

This linearization also works for a composite denominator NNN coprime to the base. We use every remainder from 1 to N−1N-1N−1, including those that share a factor with NNN. A single repeating orbit need not visit them all.

Nine empty multipliers

At thirteen, multiplication by 6 gives two collisions. So does multiplication by 11. Apart from the identity, every other multiplier gives zero.

Multiplier 2 3 4 5 6 7 8 9 10 11 12
Collisions 0 0 0 0 2 0 0 0 0 2 0

There are nine zeros. At 29, nine again. At 1009, with more than a thousand remainders to move, still nine.

The gate width theorem gives the whole list. For any prime p>bp>bp>b, the collision-free multipliers are

g≡−ub−u(modp),1≤u<b.\begin{gathered} g\equiv-\frac{u}{b-u}\pmod p,\\ 1\leq u<b. \end{gathered}g≡−b−uu​(modp),1≤u<b.​

These are b−1b-1b−1 distinct residues. The fractions are fixed before the prime is chosen. Only their residues change.

Four complete collision plots at primes thirteen, twenty-nine, eighty-three, and one thousand nine show increasing numbers of multipliers. Each plot has exactly nine gold zero markers. The same nine rational fractions are displayed underneath. Four complete collision plots at primes thirteen, twenty-nine, eighty-three, and one thousand nine show increasing numbers of multipliers. Each plot has exactly nine gold zero markers. The same nine rational fractions are displayed underneath.
Bars show every nonidentity multiplier in ordinary numerical order. Gold markers below the baseline identify zeros, not negative counts. Each panel has its own axes, and none averages or samples the multipliers. The nine fractions reduce to the exact zero set at each prime.

In decimal, u=1u=1u=1 gives −1/9-1/9−1/9, which is 10 modulo 13. The middle choice gives −5/5=−1-5/5=-1−5/5=−1. In an even base, that multiplier replaces digit ddd by b−1−db-1-db−1−d. No digit is its own complement, so every remainder leaves its bin.

Why the list is complete

For a nonidentity multiplier ggg, let ccc be the integer from 1 to p−1p-1p−1 satisfying

c(1−g)≡b(modp).c(1-g)\equiv b\pmod p.c(1−g)≡b(modp).

The value c=bc=bc=b would require g=0g=0g=0, so it is excluded. Put Q=⌊(p−1)/b⌋Q=\lfloor(p-1)/b\rfloorQ=⌊(p−1)/b⌋. In the new coordinates, a collision has displacement jbjbjb or −jb-jb−jb. Each successful positive displacement has a reflected partner. Counting both gives

Cp(g)=2#{1≤j≤Q:[jc]p>jb},C_p(g)=2\#\{1\leq j\leq Q:[jc]_p>jb\},Cp​(g)=2#{1≤j≤Q:[jc]p​>jb},

where [jc]p[jc]_p[jc]p​ is the least nonnegative residue.

If c<bc<bc<b, then jc≤Q(b−1)<pjc\leq Q(b-1)<pjc≤Q(b−1)<p and jc<jbjc<jbjc<jb. Every test fails. If c>bc>bc>b, the first test passes. Thus precisely c=1,…,b−1c=1,\ldots,b-1c=1,…,b−1 give zero. Solving for ggg and setting u=b−cu=b-cu=b−c gives the displayed rational family. The same count proves that every nonidentity collision count is even; the identity contributes the even number p−1p-1p−1.

What a hundred cannot change

Fix the multiplier at ten. One multiplication now advances long division by one digit. A collision means that the first two digits agree.

At denominator 109 there are 18 collisions. Subtract the smaller bin size, ⌊108/10⌋=10\lfloor108/10\rfloor=10⌊108/10⌋=10, and 8 remain.

At denominator 209 there are 28. Subtract 20. Again 8. This denominator is composite, 209=11×19209=11\times19209=11×19. The rule does not mind.

Two hundred-cell grids show the first two decimal digit bins for denominators one hundred nine and two hundred nine. Dots count the fractions in each cell. The ten equal-digit cells lie on the gold diagonal. Two hundred-cell grids show the first two decimal digit bins for denominators one hundred nine and two hundred nine. Dots count the fractions in each cell. The ten equal-digit cells lie on the gold diagonal.
The hundred boxes represent equal subintervals of the unit interval. Dots count occupants; their positions inside a box are only drawing slots. Increasing the denominator by one hundred adds one occupant to every box. The ten diagonal boxes gain ten matches, exactly canceled by the increase in the baseline.

Cut the unit interval into a hundred equal pieces, labeled 00 through 99. A fraction in piece 37 begins with 37. The matching pieces are 00, 11, 22, and so on through 99.

Increasing a denominator coprime to ten by 100 adds one fraction to every piece. Ten pieces are selected, so the collision count grows by ten. The baseline grows by ten too. Their difference cannot notice the added hundred.

That difference is the collision invariant,

S(N)=CN(10)−⌊N−110⌋.S(N)=C_N(10)-\left\lfloor\frac{N-1}{10}\right\rfloor.S(N)=CN​(10)−⌊10N−1​⌋.

The baseline sets the scale of a digit bin. It is not the exact average over multipliers.

Denominator Collisions Baseline Difference
109 18 10 8
209 28 20 8
409 48 40 8
1009 108 100 8

For N>100N>100N>100 coprime to ten, the last two digits determine S(N)S(N)S(N). All forty eligible endings fit in the collision periodic table. No primality test enters the lookup.

At lag ℓ\ellℓ, the first and last digits of an (ℓ+1)(\ell+1)(ℓ+1)-digit block must agree. The table has modulus bℓ+1b^{\ell+1}bℓ+1. Those final ℓ+1\ell+1ℓ+1 base-bbb digits of NNN suffice, once N>bℓ+1N>b^{\ell+1}N>bℓ+1 and NNN is coprime to bbb.

Nor can we discard the extra digit. In decimal at lag one, 01 and 91 both end in 1, but their values are 0 and −9-9−9.

The finite formula, including the endpoint

Put B=bℓB=b^\ellB=bℓ and m=bBm=bBm=bB. Let GGG contain the integers nnn from 0 to m−1m-1m−1 whose first and last base-bbb digits agree. It has BBB members. Write N=mt+aN=mt+aN=mt+a, where aaa is a unit modulo mmm.

Each selected interval contributes

t+⌊(n+1)am⌋−⌊nam⌋.t+\left\lfloor\frac{(n+1)a}{m}\right\rfloor -\left\lfloor\frac{na}{m}\right\rfloor.t+⌊m(n+1)a​⌋−⌊mna​⌋.

The last interval includes the excluded endpoint NNN, so subtract one. The BBB copies of ttt cancel those in the baseline, leaving

Sℓ(a)=−1−⌊ab⌋+∑n∈Gdn(a),dn(a)=⌊(n+1)am⌋−⌊nam⌋.\begin{aligned} S_\ell(a)&=-1-\left\lfloor\frac ab\right\rfloor +\sum_{n\in G}d_n(a),\\ d_n(a)&=\left\lfloor\frac{(n+1)a}{m}\right\rfloor -\left\lfloor\frac{na}{m}\right\rfloor. \end{aligned}Sℓ​(a)dn​(a)​=−1−⌊ba​⌋+n∈G∑​dn​(a),=⌊m(n+1)a​⌋−⌊mna​⌋.​

The exact obstruction to a smaller base power is also uniform. The classes 111 and m−B+1m-B+1m−B+1 agree modulo BBB, yet

Sℓ(1)=0,Sℓ(m−B+1)=−(b−1)bℓ−1.\begin{aligned} S_\ell(1)&=0,\\ S_\ell(m-B+1)&=-(b-1)b^{\ell-1}. \end{aligned}Sℓ​(1)Sℓ​(m−B+1)​=0,=−(b−1)bℓ−1.​

The companion proof derives both values from the same floor formula.

The other half of 09

The ending 09 carries +8+8+8. Reflect it across 100 and we get 91, carrying −9-9−9. Their sum is −1-1−1.

Every reflected pair has the same total. Twenty pairs give −20-20−20, and the forty entries have mean −1/2-1/2−1/2.

Twenty horizontal segments connect the collision values of each reflected pair of decimal endings. Every segment is centered at minus one half. Below, two rows of filled and empty boxes show the complementary interior crossings for endings zero-nine and ninety-one. Twenty horizontal segments connect the collision values of each reflected pair of decimal endings. Every segment is centered at minus one half. Below, two rows of filled and empty boxes show the complementary interior crossings for endings zero-nine and ninety-one.
The top panel includes all forty entries. Teal points belong to the ending on the left and violet points to its reflected partner on the right. The lower panel shows every selected interval for 09 and 91. Their interior crossings complement each other. Both first boxes are empty and both last boxes are filled, as the gold outlines show.
Read all forty values

The row gives the tens digit; the column gives the final digit. Read row 0, column 9 for ending 09.

Tens digit Final 1 Final 3 Final 7 Final 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

This is the reflection identity. For every base and positive lag, with m=bℓ+1m=b^{\ell+1}m=bℓ+1,

Sℓ(a)+Sℓ(m−a)=−1.S_\ell(a)+S_\ell(m-a)=-1.Sℓ​(a)+Sℓ​(m−a)=−1.

There is a smaller version of the balance inside each entry. Take interval 11. At a=9a=9a=9, the step from 11a11a11a to 12a12a12a goes from 99 to 108 and crosses 100. At a=91a=91a=91, it goes from 1001 to 1092 and stops short of 1100. One crosses. Its partner does not.

Across the forty unit classes modulo 100, exactly twenty cross. Change the interval to any interior index from 1 to 98 and there are still twenty. The membership changes, sometimes intricately. The split stays equal.

Every crossing, from nine positions to a thousand
Six exact binary matrices show every interior floor crossing at moduli nine, twenty-five, one hundred, one hundred one, six hundred twenty-five, and one thousand. Small checker patterns become densely interlaced curves. Exactly half of each row is gold. Six exact binary matrices show every interior floor crossing at moduli nine, twenty-five, one hundred, one hundred one, six hundred twenty-five, and one thousand. Small checker patterns become densely interlaced curves. Exactly half of each row is gold.
Rows are all interior indices n in numerical order. Columns are all residues a coprime to the displayed modulus, also in numerical order. Gold means the step from na to (n+1)a crosses a multiple of the modulus; teal means it does not. Reflection reverses the columns and exchanges the colors. All 725,022 cells are retained, including the prime modulus 101. Select the image to inspect the individual cells.

The half-group law holds for every modulus m≥3m\geq3m≥3, not just powers of a base. Reflection exchanges crossing and noncrossing on every interior interval. The two endpoint intervals are different. The first never crosses; the last always does. Keeping them in the count gives the offset −1-1−1 in the reflection identity.

The endpoint arithmetic behind the offset

For an interior index, complementary floors give dn(a)+dn(m−a)=1d_n(a)+d_n(m-a)=1dn​(a)+dn​(m−a)=1. At the first and last indices the totals are 0 and 2. Both endpoints belong to the selected diagonal, whose other B−2B-2B−2 members each contribute 1. Also

⌊ab⌋+⌊m−ab⌋=B−1.\left\lfloor\frac ab\right\rfloor+ \left\lfloor\frac{m-a}{b}\right\rfloor=B-1.⌊ba​⌋+⌊bm−a​⌋=B−1.

Add the two finite formulas,

Sℓ(a)+Sℓ(m−a)=−2−(B−1)+0+2+(B−2)=−1.\begin{aligned} &S_\ell(a)+S_\ell(m-a)\\ &\quad=-2-(B-1)\\ &\qquad+0+2+(B-2)\\ &\quad=-1. \end{aligned}​Sℓ​(a)+Sℓ​(m−a)=−2−(B−1)+0+2+(B−2)=−1.​

For the half-group law, the crossing test is [(n+1)a]m<a[(n+1)a]_m<a[(n+1)a]m​<a. Neither equality nor a zero residue is possible when aaa is a unit and 1≤n≤m−21\leq n\leq m-21≤n≤m−2. Replacing aaa by m−am-am−a reverses the strict inequality. It pairs every crossing with exactly one noncrossing.

Three close-up views of the count
The digit bins modulo thirteen and their transformed congruence classes. Each original group remains intact under multiplication by ten.
The digit bins modulo thirteen and their transformed congruence classes. Each original group remains intact under multiplication by ten.
The equal-digit intervals in the hundred-piece partition, and the increase in their population when the denominator grows by one hundred.
The equal-digit intervals in the hundred-piece partition, and the increase in their population when the denominator grows by one hundred.
The step from 99 to 108 crosses a hundred boundary. Its reflected step from 1001 to 1092 does not.
The step from 99 to 108 crosses a hundred boundary. Its reflected step from 1001 to 1092 does not.

The first paper ends with a finite table whose size no longer grows with the denominator. Primes and composites read the same entries. A thousand more complete blocks add nothing to the deviation.

The Collision Transform takes up the next question. Center the table, sample it at primes, and give each contribution a weight. Its reciprocal-prime sum converges. Making the weights decay more slowly asks for cancellation that the finite symmetry alone cannot supply. The character coefficients say which LLL-functions enter that question; The Collision Spectrum identifies the special values already encoded in those coefficients.

The reflection pairs the cells. Nothing in it schedules the next prime.

Companion paper: The Collision Invariant →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Analytic Collision Transform
Next: The Collision Transform →