Phase-Filtered Ramanujan Sums and the Spectral Gate
Cite this paper
A. S. Petty, Phase-Filtered Ramanujan Sums and the Spectral Gate, DOI: 10.5281/zenodo.21850675.
Abstract
Fix an integer base and a prime . The first base- digit partitions the nonzero residues modulo . Let mark pairs in the same digit bin, let be its two-dimensional Fourier transform, and let count the same-bin collisions between and . We prove the exact identity where is the classical Ramanujan sum. Its two values isolate the spectral line and recover the collision formula. Thus the Ramanujan kernel enters the collision calculation exactly.
A normalized phase coefficient measures the spectral mass that survives cancellation. It lies between and , vanishes exactly when the collision count vanishes, and equals at the identity. When is primitive modulo , these statements apply directly to repetend autocorrelation. Euclidean division gives the exact coarse bin word and the continued-fraction tail of . The remainder fixes both coarse objects, while the quotient and modulus remain visible in the full spectrum. The gate vanishes exactly when multiplication moves every digit bin away from itself, turning spectral cancellation into a finite disjointness problem.
The Two-Valued Selector
A prime Ramanujan sum takes only two values, yet those values can isolate one line from an entire two-dimensional spectrum. Applied to the digit partition of long division, the selected line counts exactly how many residues keep their digit under multiplication. A classical arithmetic kernel therefore becomes a finite gate for phase survival.
Long division puts two finite structures on the nonzero residues. Multiplication moves a residue through its orbit, while the first displayed digit places it in an interval. A collision occurs when the multiplication leaves that interval label unchanged.
Ramanujan sums and their Dirichlet series are classical [2, 3]. Fourier inversion, orthogonality, Parseval’s identity, and finite-group line selection are standard [5]. Cyclic digit matching is Hamming correlation [6]. Kak and Chatterjee study Hamming distance between prime-reciprocal digit sequences and their cyclic shifts and also bound a numerical digit-product autocorrelation [7]. The equality count used here is Hamming correlation. The result here is the collision-specific assembly. A prime Ramanujan sum detects the linear relation between the two Fourier coordinates of the same-bin kernel. Combining its two values with the vanishing total spectrum leaves the exact spectral slice and hence the collision count. The normalized phase coefficient introduced below then measures how much unsigned spectral mass survives that cancellation.
For fixed and , one has by the classical theory of Ramanujan and Hardy. Equation (1) gives the analytic context. In the collision identity below, the prime Ramanujan sum instead serves as a finite selector on a linear form in two frequency variables.
The Ramanujan Collision Identity
Let be the field of residues modulo , represented by , and put For define the digit map For , let where each is extended to by . Its additive Fourier transform is
The same-bin kernel and its two-dimensional transform are and For define the multiplicative collision count
For , the prime Ramanujan sum is
Theorem 1 (Ramanujan collision identity). For every ,
Proof. Fourier inversion in both variables gives Set and sum over . The inner sum becomes Substitution yields (4). ◻
Corollary 2 (Spectral slice). For every ,
Proof. Let Since , Fourier inversion at the origin gives The two values of turn the numerator in (4) into Division by gives . The relation is equivalent to . ◻
Theorem 1 is the precise Ramanujan connection. The kernel acts on the linear form in the full two-dimensional spectrum.
The slice formula also appears in The Autocorrelation Formula [1]. Here the two-valued Ramanujan selector supplies its derivation from the full spectrum.
The Phase Gate
Put and
Definition 3. The phase-gate coefficient is
The denominator is positive. Indeed, the term contributes , and the bins partition nonzero residues.
Theorem 4 (Exact gate bounds). For every , Moreover, and If , then
Proof. Corollary 2 gives The triangle inequality gives .
For each digit , Cauchy–Schwarz and Parseval give Multiplication by permutes the frequency indices. Summing over the bins yields Together with (7), this proves (6). It also proves the equivalence of the two zero conditions. A positive collision count is a positive integer, which gives the final lower bound.
When , the reality of gives . Hence The identity map fixes every nonzero residue, so and (7) gives the same value for . ◻
The coefficient is the normalized fraction of unsigned spectral mass that survives cancellation along one slice. The spectral-slice identity ties that surviving mass exactly to the collision count. The lower bound for a positive gate is for fixed ; it decreases with the modulus and gives no uniform positive gap over all primes.
Repetend Autocorrelation
Assume that is a primitive root modulo . The remainders in the long division of are The corresponding digit word is For a cyclic lag define
Proposition 5 (Repetend specialization). If is primitive modulo , then Consequently, The phase-gate coefficient vanishes exactly at the zero autocorrelation lags.
Proof. As runs modulo , the residue runs once through . The equality is exactly The remaining statements follow from Theorems 1 and 4. ◻
Call digit-partitioning in base when is injective on .
Proposition 6 (Singleton bins). If is digit-partitioning in base , then and If is also primitive modulo , then
Proof. Injectivity makes every nonempty bin a singleton. Therefore and The equality then holds exactly when . Since , this is equivalent to . Proposition 5 gives the autocorrelation formula. ◻
For singleton bins, the full transform is the Ramanujan kernel.
The Euclidean Bin Word
Write The remainder is nonzero because . Put .
Theorem 7 (Exact bin word). The bin sizes satisfy and, for , Define and Every is or , and exactly entries are . Thus for every digit .
Proof. The condition is equivalent to For , the positive integers in this interval are , so . For , the number of integers in the half-open interval is Substitution of (8) gives (9). Since , each successive ceiling rises by either or . The increments telescope to ◻
The binary word will be called the excess-bin word. It depends only on and the remainder . Different remainders give different words because the number of entries is .
If the first entry is restored to , the word becomes This is the rational upper mechanical word of slope . Mechanical words, their Christoffel representatives, and their continued-fraction structure are classical [8]. The excess-bin word is the version left after the excluded zero residue removes the first rise.
Corollary 8 (Continued-fraction tail). Use the finite simple continued fraction whose final partial quotient is greater than . Then For a fixed base, the remainder determines both the continued-fraction tail and the excess-bin word.
Proof. Equation (8) gives The Euclidean algorithm for supplies the remaining partial quotients [4]. ◻
In base , primes different from and lie in four unit residue classes with the following coarse data.
| continued-fraction tail | excess bins | |
|---|---|---|
For a general base , every prime lies in one of the unit residue classes modulo . These classes label the coarse excess pattern; the quotient and modulus supply the remaining spectral data.
Corollary 9 (Zero-frequency mass). With , Thus the quotient remains visible in the full spectrum.
Proof. Equation (2) and give Theorem 7 gives , with entries of equal to . Expansion gives the displayed formula. The value changes with even when is fixed. ◻
The Euclidean remainder fixes the coarse excess pattern. The quotient and the modulus remain visible in the Fourier data. A continued-fraction tail organizes the first layer of the geometry; the phase gate retains the full quotient and modulus data.
Collision-Free Multipliers
The zero set of the phase gate has a direct combinatorial form.
Proposition 10 (Collision-free multipliers). For , the following conditions are equivalent.
.
.
for every .
Proof. The first two conditions are equivalent by Theorem 4. A contribution to is exactly a residue for which . Such a residue exists exactly when is nonempty for some . ◻
This converts spectral cancellation into a finite disjointness problem.
The Finite Boundary of the Gate
The collision count is a line selected from a two-dimensional spectrum. The prime Ramanujan sum performs that selection exactly. The vanishing total spectrum makes the weighted combination of the line and its complement equal to times the line sum. Normalizing the surviving mass by the unsigned phase mass gives the phase gate.
The Euclidean division supplies a second exact layer. The remainder fixes the excess-bin word and the continued-fraction tail, while the quotient remains visible even at zero frequency. Together they separate the coarse Euclidean label from the full phase data.
The boundary is concrete. For fixed and , determine the multipliers that move every digit bin away from itself.
References
[1]A. S. Petty, The Autocorrelation Formula, January 2022. https://doi.org/10.5281/zenodo.21850316.
[2]S. Ramanujan, On certain trigonometrical sums and their applications in the theory of numbers, Trans. Cambridge Philos. Soc. 22 (1918), 259–276.
[3]G. H. Hardy, Note on Ramanujan's trigonometrical function and certain series of arithmetical functions, Proc. Cambridge Philos. Soc. 20 (1921), 263–271.
[4]A. Ya. Khinchin, Continued Fractions, Dover, 1997.
[5]A. Terras, Fourier Analysis on Finite Groups and Applications, Cambridge University Press, 1999.
[6]A. Lempel and H. Greenberger, Families of sequences with optimal Hamming-correlation properties, IEEE Trans. Inform. Theory 20 (1974), no. 1, 90–94. https://doi.org/10.1109/TIT.1974.1055169.
[7]S. C. Kak and A. Chatterjee, On decimal sequences, IEEE Trans. Inform. Theory 27 (1981), no. 5, 647–652. https://doi.org/10.1109/TIT.1981.1056394.
[8]M. Lothaire, Algebraic Combinatorics on Words, Encyclopedia of Mathematics and its Applications, vol. 90, Cambridge University Press, 2002.