
Write the twelve fractions from through , and look only at their first decimal digits.
There are ten possible digits and twelve fractions. Most digits appear once. The digit 3 appears twice, from and . The digit 6 appears twice, from and .
Now do the same thing with the fifty-two fractions over 53. Every digit appears five times, except 3 and 6, which appear six times.
The extra places are in exactly the same columns.
That shared pattern is easy to see. What I want to know is how much it tells us about the digits that survive a multiplication. Does the last digit of the prime also tell us which comparisons will come out empty?
The answer has a useful boundary. The last digit fixes the pattern of larger bins. The actual matches require more information. A classical sum of Ramanujan gives an exact way to read those matches from the spectrum.
A digit bin collects the remainders that produce the same first digit. At 13, the bin for digit 3 contains . Both fractions begin with a 3. The bin for digit 6 contains .
The bin sizes follow directly from dividing the prime by the base. Take a prime that does not divide the base , and write
Every bin has either or remainders, and exactly bins have the extra place. The subtraction of one comes from leaving out the zero remainder. We are counting the fractions from to .
For a fixed base, the remainder determines which bins are larger. In decimal, the four possible endings of a prime other than 2 or 5 give four patterns.
| Last digit of the prime | Number of larger bins |
|---|---|
| 1 | 0 |
| 3 | 2 |
| 7 | 6 |
| 9 | 8 |
A prime ending in 1 distributes its nonzero remainders evenly among the ten bins. A prime ending in 9 has an extra remainder in eight of them. These counts stay the same as the prime grows, although the bins themselves grow.
The continued fraction records the same remainder information in another form. For 13 and 53, division by ten gives and . Their whole parts differ. Applying the Euclidean algorithm to the shared fraction gives the same continued-fraction tail, . This is why the four decimal endings also produce four continued-fraction tails.
So far, we have only used division with remainder. The more interesting question begins when we move the remainders.
Return to 13. Multiply every nonzero remainder by 2, reducing the result modulo 13. Then compare its digit with the digit it produced before the move.
The bin goes to . Neither result is still in the digit-3 bin. The bin goes to . Neither result is still in the digit-6 bin.
The other eight bins contain one remainder each. To stay in one of those bins, a remainder would have to return to itself. Doubling fixes no nonzero remainder modulo 13.
There are no matches anywhere.
Now multiply by 6. The remainder 5 goes to 4, since leaves remainder 4. Both produce digit 3. The remainder 8 goes to 9, and both produce digit 6. These are the only two matches.
Call the number of matches , where is the multiplier. We have just counted and at 13.
This question can be asked for every nonzero multiplier. It does not require the multiplier to be a power of the base. Powers of the base give the familiar cyclic shifts of a repetend. When the base is a primitive root, one repetend visits every nonzero remainder, so its shift counts are exactly these collision counts. Otherwise, the complete count covers more than one cycle.
In The Autocorrelation Formula, the digit-equality table was rewritten in frequency coordinates. Its transform, , retains the information about which pairs of remainders produce equal digits. A multiplier picks out a line through this frequency table.
Ramanujan’s sum explains how that line can be selected using just two weights.
For a prime modulus , the sum is called . It adds the rotating arrows associated with all the nonzero residues. If is zero modulo , all arrows point in the same direction and add to . Otherwise, they run through all the th roots of unity except the arrow at 1. The complete set adds to zero. Leaving out that one arrow gives .
At 13, that means
These are the classical Ramanujan sums. Here they are applied to the combined frequency . The exact collision identity is
Both frequency indices run from 0 to . Every entry of the frequency table receives a weight. The entries on the line receive . Every other entry receives .
That second weight is essential. The off-line entries have not been individually set to zero.
The full table sums to zero, because the original digit-equality table has zero at the omitted pair . If the selected line sums to , the rest of the table therefore sums to . The two weights combine to give
After division by , the collision count is . The double sum has become a single line.
At 13 with multiplier 6, the line sums to 26 and the remaining entries sum to . The weighted total is . Dividing by gives 2.
There is no rounding in that answer. It counts the two remainders we already followed, and .
The line sum combines contributions from every digit bin and every frequency. Those contributions can reinforce or cancel one another.
To measure the cancellation, first take the magnitude of each contribution, before adding across bins or frequencies. This gives an unsigned total. Compare it with the magnitude of the sum after cancellation.
The resulting fraction is the phase-gate coefficient, . A value of zero means complete cancellation. A value of one means all the unsigned mass survives.
The paper proves the bounds
The gate is zero exactly when the collision count is zero. At the identity multiplier, every remainder stays in place and the gate equals one.
For multiplier 6 at 13, the two matches give a lower bound of . The gate itself is about . For doubling, it is exactly zero.
There is also a precise limit to the gate metaphor. At a fixed prime, a positive count is at least one, so a positive gate is at least . That bound shrinks as the prime grows. It does not give a universal gap separating zero from every positive gate at every prime.
The zero condition has a simpler description back in the bins. A multiplier closes the gate exactly when it moves every bin completely away from itself. Checking finite intersections and checking spectral cancellation give the same answer.
The opening tables had the same two larger bins. Doubling closed the gate at 13. Try it at 53.
The digit-0 bin now contains . Doubling keeps and inside it. At the other end of the table, the digit-9 bin contains . Doubling modulo 53 keeps and inside that bin.
Those four returns are all the matches. The gate is open.
Thirteen and fifty-three share their last digit, their excess-bin pattern, and their continued-fraction tail. They disagree on whether doubling preserves a digit. The extra places stay in the same columns, but the growing bins admit moves that the smaller ones could not.
That is where the two parts of the calculation meet. Division with remainder tells us how the bins are built. Multiplication tests whether a remainder can stay inside one. Ramanujan’s two weights recover the answer in frequency coordinates, down to the same four returns.
Comments
Sign in to join the discussion.