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

The Collision Periodic Table

December 2, 202310 min read
Companion paper: The Collision Periodic Table →
Fine blue and warm gold filaments gather into a finite pattern of connected lights against black space.
The denominator can grow without changing its deviation. Its last two digits return it to the same cell.

Every prime number past 100, in base ten, has a small integer attached to it. The integer is determined entirely by the prime’s last two digits.

For 109109109, it is +8+8+8. For 100910091009, it is still +8+8+8. Both end in 090909.

Here is what the eight measures. Write out all the fractions from 1/1091/1091/109 to 108/109108/109108/109 and compare the first two digits after the decimal point. Some of the rows begin like this.

 1/109 = 0.00917…    match
 2/109 = 0.01834…    no match
12/109 = 0.11009…    match
13/109 = 0.11926…    match

There are eighteen matches in the complete table. Subtract ten, the whole-number part of 108/10108/10108/10, and eight remains.

At denominator 100910091009, there are 100810081008 rows and 108108108 matches. Subtract the whole-number part of 1008/101008/101008/10, which is 100100100. Eight remains again.

The number of rows has grown. The number of matches has grown. The difference has stayed put.

Find the ending

A prime above 100100100 can end in 111, 333, 777, or 999. There are ten possibilities for the tens digit, so forty possible endings. Here they are, with the collision deviation written in each cell. The small label identifies the ending. The large number is its value.

Forty decimal endings, with +8 at 09 and −9 at 91. Every denominator coprime to ten lands in one of these cells.
Forty decimal endings, with +8 at 09 and −9 at 91. Every denominator coprime to ten lands in one of these cells.

To find 109109109, go to row 000, column 999. To find 191191191, go to row 999, column 111. The first gives +8+8+8. The second gives −9-9−9.

The table is small enough to read in full. Eight entries are positive, twelve are zero, and twenty are negative. Some endings share a value. Ending in 090909 fixes the answer at +8+8+8, but a value such as zero appears in several different cells.

I call the integer a collision fingerprint. Its definition in base bbb is

Sb(N)=Cb(N)−⌊N−1b⌋.S_b(N)=C_b(N)-\left\lfloor\frac{N-1}{b}\right\rfloor.Sb​(N)=Cb​(N)−⌊bN−1​⌋.

Here Cb(N)C_b(N)Cb​(N) counts the fractions whose first two digits agree. The brackets mean take the whole-number part. The quantity being subtracted is the bin scale, a simple integer baseline for the count.

There is more scope here than the opening about primes suggests. The same rule holds for every denominator with no factor in common with the base. For example, 50,009=43×116350{,}009=43\times116350,009=43×1163 is composite. It has 500850085008 matches, a bin scale of 500050005000, and the same +8+8+8 in cell 090909.

Primality never enters the finite calculation.

The hundred little intervals

Why should only two digits of the denominator survive?

The fractions we are testing lie between zero and one. Cut that interval into a hundred equal pieces. Each piece specifies the first two decimal digits. The first runs from 0.000.000.00 to 0.010.010.01, the second from 0.010.010.01 to 0.020.020.02, and so on.

A match lands in one of ten pieces, those beginning

00   11   22   33   44   55   66   77   88   99

Counting the fractions in those ten little intervals gives the collision count. Nothing beyond the second digit is needed.

Now increase the denominator from NNN to N+100N+100N+100. Each of the hundred intervals gains exactly one fraction. Each of the ten matching intervals therefore gains one match. The collision count goes up by ten. The bin scale also goes up by ten. Their difference stays unchanged.

This is where the floor arithmetic earns its place. The number of fractions between two boundaries is a difference of floors. Adding 100100100 to the denominator adds one to each such difference. Coprimality keeps the fractions off the interior boundaries, and the endpoint at one is excluded from both counts.

In base bbb, there are b2b^2b2 two-digit pieces and bbb matching pieces. Increase the denominator by b2b^2b2 and both terms go up by bbb. The same cancellation gives

Sb(N)=Tb(N mod b2).S_b(N)=T_b(N\bmod b^2).Sb​(N)=Tb​(Nmodb2).

The notation TbT_bTb​ names the finite table. In decimal, the remainder modulo 100100100 is simply the last two digits. The size of the denominator has disappeared from the deviation.

Add the opposite cell

Return to 090909 and 919191. Their addresses add to 100100100. Their values add to −1-1−1.

Try 272727 and 737373. The values are +6+6+6 and −7-7−7. Try 414141 and 595959. The values are −4-4−4 and +3+3+3. Again, minus one.

Pair each ending aaa with 100−a100-a100−a. There are twenty pairs. The figure puts each pair on a number line so that you can see both the sum and the midpoint.

Every line has the same midpoint at negative one half. Even the two extremes belong to the same pairing.
Every line has the same midpoint at negative one half. Even the two extremes belong to the same pairing.

The exact identity is

Tb(a)+Tb(b2−a)=−1.T_b(a)+T_b(b^2-a)=-1.Tb​(a)+Tb​(b2−a)=−1.

The decimal pairs let us check it in one base. The proof uses the interval count to establish it in every base. Reflect the two floor counts and their interior contributions pair off. The first and last intervals have different endpoint corrections. Keep those corrections, subtract the two bin scales, and the remainder is exactly minus one.

The natural center of this table is therefore −1/2-1/2−1/2. The entry +8+8+8 is eight and a half units above it. The entry −9-9−9 is eight and a half units below it. Adding 1/21/21/2 to every cell would put the reflection center at zero.

There is also an exact answer to the question of how many entries are negative. Two nonnegative integers cannot add to −1-1−1. Two negative integers cannot either, since their sum would be at most −2-2−2. Each pair has exactly one negative member.

Half the table is negative. The other half contains the positive entries and the zeros.

The mean follows just as directly. Twenty pairs contribute a total of −20-20−20 across forty cells, giving −1/2-1/2−1/2. This is an average over the cells themselves, available before any prime cutoff is chosen. It is part of the finite data that The Centered Collision Sum uses to separate fixed class biases from the sum over primes.

Change the base

In base three there are six admissible cells. In base twelve there are forty-eight. The individual values change, and so does the number of zeros. The negative half stays exactly half.

The widths show proportions and the numbers count cells. The division at one half holds in every base.
The widths show proportions and the numbers count cells. The division at one half holds in every base.

The extrema have a short formula too. The largest value is b−2b-2b−2, attained at the ending b−1b-1b−1. Its complementary ending, b2−b+1b^2-b+1b2−b+1, has the smallest value, −(b−1)-(b-1)−(b−1).

In base ten those are +8+8+8 and −9-9−9. In base twelve they are +10+10+10 and −11-11−11. These are sharp bounds. They do not say that every integer between the bounds must appear.

The reflection alone does not determine all the cells. It tells us how they pair, where their mean lies, and how many are negative. The floor count supplies the individual values. Together they give a table that can be computed without searching for a prime in any of its classes.

Eight, before the primes

There is an especially small way to see the +8+8+8 at ending 090909.

Use denominator 999. Its eight fractions begin 0.11…0.11\ldots0.11…, 0.22…0.22\ldots0.22…, all the way through 0.88…0.88\ldots0.88…. Every row matches. The count is eight and the bin scale is zero. The deviation is already +8+8+8.

At 109109109, the count is eighteen and the baseline is ten. At 100910091009, they are 108108108 and 100100100. The table records what survives those equal increases.

For denominators coprime to ten, adding 100100100 leaves the deviation unchanged. That is the periodicity. It holds whether the denominator is prime or composite.

So those eight fractions at denominator 999 already give the deviation for every larger denominator ending in 090909.

Companion paper: The Collision Periodic Table →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Centered Collision Sum
Next: The Collision Transform and the Critical Strip →