
Long division runs on two kinds of arithmetic at once. Which digit a remainder writes depends only on its size, so the digits sort the remainders into bins by order. Which remainder comes next depends on multiplying by the base, and multiplication scrambles size completely. Every repeating decimal lives where those two meet, and the simplest question you can ask there is how often a repeating block agrees with itself slid along by a few places. Writing the block out answers it one shift at a time. Here the answer comes from the bins alone, through one frequency table per prime in which every possible shift is a single line. The table also answers a slightly different question than the one you might think you asked. At forty-one it reports six matches for a word that, rotated two places, matches itself nowhere, and both numbers are right.
Start small, with the repeating block of in base ten.
142857
Move the first digit to the end and put the two copies alongside each other.
1 4 2 8 5 7
4 2 8 5 7 1
No position agrees. Move two digits to the end, then three, four and five, and there is still nothing, because each digit occurs only once in the block and no rotation short of a full turn can bring a digit back onto itself.
Now try , whose block is . Shift it one place and the adjacent eights leave one match and the adjacent ones leave another.
The number of matches at shift is the autocorrelation . We count equal digits, not products of their numerical values. At seven the complete list is , and at seventeen it starts with sixteen self-matches and then two.
Writing out the words gives these answers directly. What I want is to see them in the remainder arithmetic that produces the words.
Long division carries a remainder from one position to the next. In base ten, multiply it by ten, emit the whole-number digit, and keep the new remainder.
At denominator seventeen, a remainder of two gives
It emits one and leaves remainder three, and that remainder also emits one, because . Those are the adjacent ones in the word. The adjacent eights have the same explanation, since remainder fifteen emits eight and leaves fourteen, and fourteen also emits eight.
A one-place shift compares each remainder with ten times that remainder, reduced modulo seventeen, and a two-place shift uses a hundred. Moving along a word has become multiplication in a finite table.
Label both edges of a square table by the remainders. Put a one in a cell when its two remainders emit the same digit, and zero otherwise. Call the table .
The circles follow multiplication by ten, and two of them land on filled cells, at and . The count is two again.
This is a table of remainder states and the single digits they emit. The Cross-Alignment Matrix compares whole repeating rows. The two tables are related, but their entries answer different questions.
Include a row and column labeled zero in and leave both empty, since remainder zero contributes no match. The digit zero can still occur, as it does at the start of . The construction works for a prime denominator and any base not divisible by .
The Spectral Power of the Digit Function added rotating arrows within each digit bin and squared the length of each sum to get its power. That kept the length and threw away the direction, or phase. Multiplication needs to know where the bins sit, and the full equality table keeps that information.
To give it frequency coordinates, choose two labels, and . Every filled cell supplies a unit arrow whose turn depends on both labels, through , and the sum of those arrows is one entry in the cross-spectrum.
Repeat for every pair of frequency labels and a second square table appears. This is the Fourier transform of in both directions, and unlike the one-variable power, it keeps enough information to recover every cell of .
The old power curve has not disappeared. It occupies the opposite-label cells,
The rest of the table records the other frequency pairings.
Let indicate the bin for digit , with . Use the unnormalized additive transform
The equality table and cross-spectrum are
There is no conjugate in the second product. Expanding it gives one arrow for each filled cell,
Inversion divides by ,
When , the two bin coefficients become conjugates. Their product is a squared magnitude, giving .
These are additive frequencies of the remainder labels. They are not the frequencies around a repeating word, and the entries of are not eigenvalues of the cross-alignment matrix. Equality of symbols under a shift is the classical Hamming correlation. The Autocorrelation Formula gives the finite Fourier proofs and references.
Reflect a nonzero remainder to and its digit changes to its complement, so in decimal the two digits add to nine. Reflect both labels of a filled cell and it stays filled, because equal digits have equal complements.
We already have an example. The cell pairs with modulo seventeen, and the first pair emits two ones while the reflected pair emits two eights. In the Fourier sum, reflection changes the sign of the arrow’s angle, so the two arrows have equal horizontal parts and opposite vertical parts.
The up-and-down parts cancel, and the same pairing works throughout the table, so every entry of is real. It can be negative, though. The power cells are never negative, but the rest of the cross-spectrum can be.
The circles in the remainder grid follow modulo . Let count the filled cells they visit. The same count can be read from ,
For each first label , select the second label , add those entries and divide by . All labels are reduced modulo , and the inverse undoes multiplication by .
The line comes from cancellation. Insert into a Fourier arrow’s angle and the coefficient of becomes . If that coefficient is nonzero modulo , summing over takes the arrows once around a balanced circuit and they sum to zero. If , all arrows point together.
So only the line survives. The aligned arrows cancel one of the two factors of in Fourier inversion, which leaves the in the formula.
The identity works for every nonzero multiplier . A cyclic shift chooses . At seven and seventeen in decimal, one repeating word visits every nonzero remainder, so
That equality needs the full-period condition, but the line formula does not.
At seven every occupied bin is a singleton, so the equality table has ones only at for nonzero . Its transform has just two values, six when modulo seven and minus one otherwise.
At shift zero , and the selected cells have opposite frequency labels. All seven contain six, their sum is 42, and recovers the unshifted word’s six matches.
At shift one, , whose inverse is five. Negate the inverse and the line becomes modulo seven. The selected cells are , , , , , and , and only the first has labels whose sum is zero, so the line holds one six and six minus ones.
Every other nontrivial shift meets the sixes only at the origin as well. All five shifted counts vanish.
The digit argument with was shorter. The table earns its space at seventeen, where bins contain several remainders. For a one-place shift, ten has inverse twelve, the frequency line is modulo seventeen, and its seventeen entries sum to 34.
Divide by seventeen and you get two matches, the adjacent ones and the adjacent eights. The entries have changed, but the rule for reading them hasn’t.
At seven the count vector and its normalized version are
Every Fourier sum of the second vector is one, since only its first entry contributes and that entry receives no turn. The six eigenvalues are therefore
These are the eigenvalues of the identity matrix in The Cross-Alignment Matrix.
For a word of period , its rotations have pairwise scores . The resulting circulant has eigenvalues
This transform runs around the word, with positions. The transform defining runs over remainder labels, with positions in each direction. In the full-period case the rotations exhaust the denominator’s fractional rows. With several cycles, this calculation describes the within-cycle block, not the full cross-alignment matrix.
The decimal word for is , and it repeats after five places. Forty nonzero remainders are available, so this word visits only an eighth of them, and the others form seven more cycles. Shift each word by two places and count.
The reference word contributes zero, six other cycles contribute one each, and the last cycle contributes zero, so the line formula adds them all and gives six. Six is the correct count for the whole field and zero is the correct count for the reference word. A line through does not pick out a cycle just because we began with .
To pick one out, keep only its remainders when summing the Fourier arrows. The full-field cancellation no longer applies, and although an exact formula remains, it generally uses the entire frequency table instead of a single line.
Let be the remainder cycle containing one. A cycle beginning at is the coset . Define
Its shifted match count is
At forty-one this isolates five remainders from forty. Summing the eight orbit answers recovers .
If the base is primitive, contains every nonzero residue. Then and for nonzero . Together with , these values reduce the double sum to the one-line formula. For a proper subgroup, that reduction is not automatic.
The two-valued table at seven is the smallest one below. Each panel uses decimal digit bins and shows every frequency pair, with colors separating positive and negative entries. The period and number of cycles are listed separately, because the table contains the whole field in every case.
Values are divided by , the number of nonzero remainders. The shared color scale is linear between and and logarithmic outside that interval, and it does not clip any entry. This is a signed cross-spectrum, not a power plot, and the logarithm changes only the display.
Each table is computed from exact digit equalities, and every nonzero multiplier’s frequency slice is checked against a direct integer count. The largest panel contains cells, so open the plate to inspect them at full size.
These wider plates keep the shifted words, remainder grid, frequency lines, and eight-cycle comparison together. Follow the two matches at seventeen from their positions in the word to their cells in the remainder table.
Rotate twice and every digit misses. The six matches the line reports are out in the field, in six of the seven other cycles, and not one of them belongs to the word we started with.
Discussion
Sign in to join the discussion.