
No one will ever write out the fractions of a prime with a thousand digits. One question about them can be answered anyway, exactly, without doing any division. Ask how many of those fractions begin with a doubled digit, the way and do. The answer is a tenth of the prime, rounded down, plus a small correction somewhere between and , and the correction depends on nothing but the prime’s last two digits.
The corrections fill a table of forty cells, one for each ending a prime past a hundred can have. The Collision Fluctuation Sum needed only the table’s average and turned it into a slow drift across all the primes. The Centered Collision Sum went a step further and subtracted a separate average for each last digit. Neither one printed the table, and neither said why its numbers balance so neatly. They average exactly , and exactly twenty of the forty are negative. The largest and smallest, at the ending and at the ending , both trace back to the eight fractions of nine.
At the count can still be done by hand. Its fractions run from up to , and a fraction counts when its first two decimal places agree.
1/109 = 0.00917… match
2/109 = 0.01834… no match
12/109 = 0.11009… match
13/109 = 0.11926… match
Eighteen of the qualify. Sorted by their first digit, the fractions fall into ten bins of ten or eleven apiece, and the smaller size, ten, serves as the yardstick. So comes out eight above it.
Move nine hundred further along to . There are now fractions, the bins hold a hundred or a hundred and one, and of the fractions begin with a doubled digit. That is eight above the yardstick again.
The two lists barely resemble each other. Every fraction sits somewhere new, and every row of the picture holds a different number of dots. The two denominators share the ending , and the correction cares about nothing else.
Write for the number of doubled beginnings in base at denominator . Subtracting the smaller bin size leaves the correction, or collision deviation,
The denominator must share no factor with the base, which in decimal means it ends in , , or . With ten possible tens digits in front, there are forty endings, and each one carries a single fixed value of .
To read a prime’s entry, find its tens digit down the side and its last digit across the top. For that is the in the top right corner. The in the bottom left belongs to , and to , and to every number ending in however many digits come before.
The primes are not essential. is , and of its fractions exactly begin with a doubled digit, eight above a bin size of , just as the cell at says. The table belongs to long division itself. Primes are the denominators we happen to care about most, and each one picks out a cell by its ending.
When ten is a primitive root of the denominator, as it is for , the count also has an older name. Multiplying by ten then walks through the entire repeating block of , so the count is the number of places where a digit of that block is followed by itself. The -digit block of has eighteen such places. Agreement between a sequence and its own shift is a periodic Hamming correlation, studied in general by Lempel and Greenberger, and Kak and Chatterjee looked at it for the reciprocals of primes. The table needs neither the primitive root nor the prime.
The tens digit runs down the side and the units digit across the top. These are the corrections, not the counts themselves.
| First digit | 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 |
Eight entries are positive, twelve are zero and twenty are negative. The cell at holds zero, which is what the floor formula gives there and also what gives, with ten doubled beginnings against a bin size of ten.
The repetition is easiest to see on a line. Lay the fractions out along the interval from zero to one and cut it into a hundred equal pieces. The first piece holds everything beginning , the next everything beginning , and so on up to . A fraction begins with a doubled digit exactly when it lands in one of ten pieces
Raise the denominator by a hundred and each of the hundred pieces gains exactly one fraction, the ninety that don’t count along with the ten that do. The ten matching pieces gain one each, so the count climbs by ten. The bin size is a tenth of the denominator and climbs by ten as well, which leaves the difference where it was. That is the sense in which the table is periodic. The correction at comes back at , at , and at every denominator ending in those two digits.
The dots themselves don’t stay put. Every fraction moves when the denominator changes, and only the number in each piece goes up by one. The floor function makes this exact. Piece holds
fractions, less one in the last piece, where the formula would otherwise count the endpoint . Replacing by adds to the first floor and to the second, so the piece gains exactly one. Since shares no factor with , no fraction ever lands on a cut between two pieces, and nothing needs rounding one way or the other.
Every base works the same way. There are pieces, of them matching, and adding to the denominator adds to the count and to the bin size. A single finite function therefore holds every correction in that base,
In decimal it has forty entries, and the denominator can be as long as it likes.
Read the table in pairs and a second pattern shows up. Two endings that add to a hundred always have entries that add to .
The pair and shows where the missing one comes from. Both denominators are under a hundred, so their fractions sit more than a hundredth apart and no piece can hold two of them. The end pieces and stay empty at both, because the smallest fraction is above and the largest is below . That leaves the eight interior pieces from to , and each of them gets a fraction from exactly one of the two denominators.
Seventeen supplies two matches and eighty-three supplies six, for eight in all. Their bin sizes are one and eight, which make nine. The two corrections, and , have no choice but to add to .
Every pair in every base behaves the same way. Each interior matching piece is filled by exactly one partner, the end pieces stay empty, and the two bin sizes add to one more than the two counts do.
Put and choose an address coprime to , with . For a piece numbered , write its floor increment as
For every interior boundary , coprimality gives
Subtracting successive instances shows that the two increments add to one on every interior piece, where , and to zero and two on the first and last pieces
The matching pieces have indices for , which takes in both end pieces and interior ones. Each last-piece increment counts the excluded endpoint once, and removing it from each denominator leaves
The two bin sizes add to . Writing with , they are and , and subtracting gives
The table can also be computed without choosing any larger denominator at all
At address one the same formula uses the empty count . Each of these steps is proved for every base in The Collision Periodic Table, along with the two extremes.
The table balances as a result. Its forty entries form twenty pairs, every pair adds to , and so the average is exactly . The pairing settles the signs too. Two numbers that are zero or more cannot add to , while two negative integers add to at most. So every pair holds one negative entry and one that isn’t. Exactly twenty of the forty are negative, and in any base exactly half the cells are.
These are statements about cells, not about primes. How often the primes land in each cell is a separate question, and a harder one.
In base three the whole table has six cells. The addresses below are written in base three, while the entries are ordinary signed integers.
| First digit | Last digit 1 | Last digit 2 |
|---|---|---|
| 0 | 0 | +1 |
| 1 | 0 | −1 |
| 2 | −2 | −1 |
Turn the rectangle halfway around and each cell lands on its partner. The pairs are and , then and , then and , and each one adds to .
Base twelve has forty-eight cells. Twenty-four are negative, as the pairing requires, and the entries run from down to . The pictures below carry the tables up through larger bases, with every cell computed from the floor formula. In the large ones the entries line up in fine diagonal bands, and even neighboring bases such as and look nothing alike.
Rows give the first digit of the address and columns the allowed final digits in increasing order, leaving out any digit that shares a factor with the base. So that different bases can share one color scale, the color shows , spaced logarithmically on both sides of zero. Centering on is what makes gold and teal trade places under a half-turn, and no family average has been subtracted.
Base has allowed final digits and cells, while base has allowed final digits and cells. Neither plate leaves out a cell.
Labels give digit values in ordinary decimal notation, so the last row is the digit eleven. Only the final digits , , and share no factor with twelve.
| First digit | 1 | 5 | 7 | 11 |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | +10 |
| 1 | −1 | −1 | −1 | −1 |
| 2 | −2 | 0 | +2 | 0 |
| 3 | −3 | −1 | +1 | +1 |
| 4 | 0 | 0 | +6 | +2 |
| 5 | −5 | +1 | −5 | −1 |
| 6 | 0 | +4 | −2 | +4 |
| 7 | −3 | −7 | −1 | −1 |
| 8 | −2 | −2 | 0 | +2 |
| 9 | −1 | −3 | −1 | +1 |
| 10 | 0 | 0 | 0 | 0 |
| 11 | −11 | −1 | −1 | −1 |
The pairing fixes the center and the sign count in every base. The two ends of the range take one more observation. An address below has its fractions more than apart, so each matching piece holds at most one of them. The two end pieces are always empty. That caps the count at . The bin size can’t be negative, so the same cap holds for the entry.
In decimal the cap is eight, and nine reaches it.
1/9 = 0.111… 5/9 = 0.555…
2/9 = 0.222… 6/9 = 0.666…
3/9 = 0.333… 7/9 = 0.777…
4/9 = 0.444… 8/9 = 0.888…
All eight fractions begin with a doubled digit, and the bin size, a tenth of eight rounded down, is zero. The entry at is , as large as the table allows. In any base the denominator does the same, since each of its fractions repeats a single digit forever.
Ninety-one is nine’s partner, and reflection hands it the other extreme. Its ninety fractions sit just over a hundredth apart, yet not one of them lands in a doubled-digit piece. Each interior piece is filled by exactly one member of the pair, and the ninths have already filled all eight. With a count of zero against a bin size of nine, sits at , the table’s lowest entry. In base the same argument puts at the address . Base two is too small for any of this and has just the entries and .
A prime with a thousand digits that ends in therefore has as many doubled beginnings as a tenth of itself, rounded down, less nine. Eight of the nine are the interior pieces the ninths fill, and the last is the one every reflected pair comes up short.
Discussion
Sign in to join the discussion.