The Spectral Power of the Digit Function
Cite this paper
A. S. Petty, The Spectral Power of the Digit Function, DOI: 10.5281/zenodo.21845198.
Abstract
The consecutive digit bins make additive digit agreement exactly computable, both as an overlap count and as a Fourier power profile. Let be a positional base and let be prime. The digit function partitions the nonzero residues modulo into consecutive digit bins. We define the spectral power by taking the additive Fourier transform of each bin indicator and summing the squared magnitudes.
Write with . For nonzero , we prove At zero frequency, and Parseval gives . The zero mode is the total same-bin collision mass. More generally, is the Fourier transform of the additive digit-collision count. That count is itself an explicit sum of the two triangular profiles determined by the bin lengths.
The spectral power is flat if and only if , which is exactly the range in which the digit function is injective on the nonzero residues.
The Spectrum Inside the Bins
In base ten at , the digit function divides the twelve nonzero residues into bins of sizes Their zero-frequency collision mass is , while every nonzero frequency is Ten small integers determine an entire additive power profile.
The digit partition of a prime in base is the collection of bins The bin sizes are integer invariants of the pair . Their squared sum counts ordered pairs of remainders that emit the same digit. In collision language, it is the total collision mass of the digit function.
The squared bin count is only the zero-frequency part of a larger object. Transform each bin indicator on the additive group , square its magnitude, and sum over the digits. The result is the spectral power . Its value at recovers the collision mass. The remaining frequencies show how that mass is distributed under additive translation, and Fourier inversion recovers the complete additive collision profile.
Comparing digit labels before and after an additive shift gives a Hamming-correlation observable, with the residue zero omitted. This belongs to the classical theory of finite sequence families [1]. Parseval, the finite autocorrelation transform, and the interval Dirichlet kernel are standard Fourier tools [2, 3]. The result below is the exact evaluation forced by the arithmetic digit partition. Its bins have only two lengths, so the full power spectrum is a sum of two explicit interval kernels, its inverse transform is a pair of triangular profiles, and flatness has the sharp boundary .
The calculation rests on one elementary fact. The digit function is nondecreasing, so every nonempty bin is an interval of consecutive residues. The Fourier transform of such an interval is a finite geometric sum. Its magnitude depends only on the interval length. Those lengths take only two values, which reduces the spectral power to two interval kernels. We use the standard unnormalized Fourier transform on the finite cyclic group [2]. The interval kernel is the classical Dirichlet kernel [3].
The construction uses the additive residue coordinate. Fourier coordinates taken along powers of the base live on the multiplicative orbit instead. Magnitude and orbit order carry different information.
The bin partition and its Fourier expansion
For each , extend the indicator of to by setting . Define
Lemma 1 (Consecutive bins). Every nonempty bin is an interval of consecutive integers.
Proof. The condition is equivalent to The integer points in a half-open real interval are consecutive. Intersecting with removes the residue zero from the first interval. The strict upper inequality excludes from the last one. ◻
Lemma 2 (Two bin lengths). Write Then exactly bins have size , and exactly bins have size .
Proof. Write . Since , we have . The number of integer points in the th half-open interval is with one removed from the first interval because the partition omits . The first bin has size . Each later difference is either or , since the corresponding increment of is less than one. We have and . The sizes sum to , so exactly bins have the larger size. ◻
Lemma 3 (Interval transform). Suppose is an interval of consecutive residues. For nonzero , At , the magnitude is . The formula gives zero when is empty.
Proof. There is nothing to prove when . Otherwise write . At nonzero frequency, The first factor records the position of the interval and has modulus one. Taking absolute values gives the stated formula. At zero frequency the sum has terms. ◻
The spectral power
Definition 4. The spectral power of the digit function at frequency is Equivalently, encode digit by the th coordinate vector in . Then is the squared norm of the Fourier transform of that vector-valued encoding. A relabeling of the digits only permutes the coordinates and leaves unchanged.
Theorem 5 (Spectral power formula). Let with . For nonzero , At zero frequency,
Proof. By Lemma 1, every nonempty bin is a consecutive interval. Lemma 3 shows that its squared Fourier magnitude depends only on its length. Lemma 2 gives bins of length and bins of length . Summing their contributions proves both formulas. ◻
Corollary 6 (Total spectral power).
Proof. Finite Parseval gives Summing over gives ◻
Collision mass and additive shifts
At zero frequency, This is the number of ordered pairs of nonzero residues for which . It is the total collision mass of the digit partition.
The other frequencies resolve the same equality relation under additive shifts. For , define Thus counts additive digit collisions at shift . Terms involving the residue zero contribute nothing.
Proposition 7 (Exact collision profile). Choose the representative of and put Then
Proof. Translation does not change the overlap of a bin with a copy of itself, so consider an interval in . Its overlap at shift is The two terms count the ordinary differences and between points of .
Every digit-bin length is at most . For , there is only one nonzero residue, so each occurring length is . For odd , we have . If an occurring length exceeded , then . The identity would force and , so no bin of length would occur. Thus at most one of the two overlap terms is nonzero, and There are bins of length and bins of length . Summing their overlaps gives the formula. ◻
Proposition 8 (Additive collision transform). The Fourier transform of is . More precisely, Consequently,
Proof. For each digit , set . Then Summing over the digits gives . Finite Fourier inversion gives the second identity. ◻
There are two different totals. The collision mass satisfies and depends on the bin sizes. The total spectral power satisfies and is independent of the base for fixed . At shift zero every nonzero residue matches itself, regardless of how the bins are divided.
Here collision means equality of digit-bin labels after a declared arithmetic move. The move in Proposition 8 is additive translation. A multiplicative move gives the different count Both counts begin with the same digit partition. They differ in the action applied before equality is tested.
The decimal prime thirteen
For and , the bin sizes are Here and . The zero mode is For , Theorem 5 gives Since we obtain in agreement with Corollary 6.
Spectral flatness
Call digit-partitioning in base when is injective on . Equivalently, every bin contains at most one residue.
Proposition 9 (Flatness criterion). The following conditions are equivalent.
The prime is digit-partitioning in base .
The inequality holds.
The spectral power is constant on .
When these conditions hold, at every frequency.
Proof. Suppose first that . Since , we have . For , so the two floors are distinct. If , then which is again injective. If , then , and the pigeonhole principle forces two residues into one bin. This proves the equivalence of the first two conditions.
If every bin is empty or a singleton, then each occupied bin contributes one at every frequency. There are occupied bins, so for all .
Conversely, suppose is constant. Corollary 6 shows that the constant value is . Hence Each is a nonnegative integer, so every equals zero or one. The digit function is injective. ◻
Magnitude and Orbit Order
The spectral power retains magnitudes and discards phase. For one bin beginning at , its Fourier coefficient contains the factor . Taking the squared magnitude removes that factor. Summing over the bins retains the total power at each additive frequency but not the relative phases of the bins.
The consecutive-bin structure and the two possible bin lengths determine every value of . The zero mode is the total collision mass. Fourier inversion returns the two triangular overlap profiles, and flatness occurs exactly at the digit-partitioning boundary .
Multiplicative orbit order is separate information. At , both and lie in the flat range, so both give at every additive frequency. Yet has multiplicative order one modulo , while has order six. The same additive power profile therefore occurs with different multiplicative orbit orders. The same flat additive power can sit on a fixed point or a six-cycle.
References
[1]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.
[2]A. Terras, Fourier Analysis on Finite Groups and Applications, Cambridge University Press, 1999. https://doi.org/10.1017/CBO9780511626265.
[3]A. Zygmund, Trigonometric Series, Volumes I and II, third edition, Cambridge University Press, 2003. https://doi.org/10.1017/CBO9781316036587.