ANIRUDDHA BISWAS, JIHUN HWANG, HEMANTA K. MAJI, ILYA D. SHKREDOV, AND XIUYU YE
ABSTRACT. Let R=Z/(2n−1)Z, where n⩾3, and let Sw⊆R be the residues whose canonical n-digit binary expansion has Hamming weight w. We obtain, in particular, an asymptotic formula for the additive energy of Sw
E(Sw)=∣R∣∣Sw∣4+O(∣R∣3n−3),
which holds uniformly in w. The error term is optimal in order, with a matching lower bound for w=⌊n/2+n⌋. It follows that triple sums of arbitrary unit dilates have asymptotically uniform representation counts when ∏j=13∣Swj∣/(∣R∣n−3/5)3→∞, and that double sums have asymptotically full support when ∣Sw1∣∣Sw2∣/(∣R∣n−3/4)2→∞. In the proof, modular collisions are represented using a cyclic binary carry automaton; this appears to be a novel approach in this area of problems.
CONTENTS
1. Introduction
2
1.1. Main results
2
1.2. Symmetry, Dissociation, and the Fourth Moment
4
1.3. Cyclic Carries and the Proof Overview
5
1.4. AI Disclosure: Use of AI Tools
7
2. Notations and Conventions
7
3. Near-Uniform Representation Counts
9
4. Near-Full Support
9
5. Generating Function for Carry Automata
10
5.1. Trace as an Upper Bound of Energy
13
6. Tighter Estimation of Energy
14
6.1. Proof of Claim 6.2
15
6.2. Proof of Claim 6.3
16
6.3. Proof of Claim 6.4
16
6.4. Spectral Properties of B(θ) and Proof of Claim 6.5
Key words and phrases. Additive energy, Hamming slices, sum-of-digits function, finite cyclic groups, sumsets, ternary representations, cyclic carry automata, transfer matrices.
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
1. INTRODUCTION
How much additive structure does a fixed binary digit sum force? The constraint is combinatorial; its additive consequences depend on the ambient group.
The arithmetic study of digit restrictions goes back to Gel'fond [Gel68]. Mauduit and Sárközy [MS97] and Mauduit, Pomerance, and Sárközy [MPS05] studied the distribution of fixed-digit-sum sets in residue classes. Related directions include missing digits [Kon01], digit restrictions on primes [MR10, May19], and Waring's problem with restricted digits [Gre25]. Our focus is the additive structure of fixed-digit-sum sets. Rather than constrain the digit sum of the output of addition, as in [MRS17], we prescribe the digit sums of the inputs and count additive collisions and representations in a cyclic group.
Cryptography provides a further motivation. A standard defense splits a secret into shares chosen uniformly subject to their sum equaling the secret modulo a fixed integer. Any proper subset of the shares reveals nothing about the secret, yet a device's power consumption may expose the Hamming weight of every share [FMM⁺24]. The information revealed by these side-channel observations depends on how uniformly sums from the corresponding Hamming slices represent the possible secrets.
In this paper we study the underlying additive questions in
N=2n−1,R=Z/NZ,
where n⩾3. Neither n nor N is assumed to be prime. We identify each residue with its representative in {0,…,2n−2} and put
W={0,…,n−1},Sw={x∈R:wt(x)=w},∣Sw∣=(wn),
where wt(x) is the number of ones in the canonical n-digit binary expansion of x. The modulus preserves an important part of the digit structure: multiplication by 2 cyclically rotates the digits, so 2Sw=Sw. Addition behaves differently. Carries propagate between digit positions, including from the last position back to the first.
We measure the additive structure of Sw through its additive energy. For A⊆R, write
E(A)={(a,b,c,d)∈A4:a+b=c+d}.
Cauchy–Schwarz gives E(A)⩾∣A∣4/N; the difference measures the mean-square deviation of the two-term representation function from its average. Our principal result determines the optimal order of an upper bound for this difference that is uniform over all Hamming slices. For central slices, the energy is within a relative O(n−1) of the lower bound, and this order cannot be improved uniformly in the weight. The same estimate yields asymptotically uniform representation counts for three arbitrary unit dilates and asymptotically full support for two.
and write Supp(A1+⋯+Ak) for the set on which this function is positive. A unit dilate is aSw={ax:x∈Sw} with a∈R×. All implicit constants below are absolute unless a subscript indicates otherwise. Limits are taken as n→∞ through integers, with the weights and units allowed to vary with n.
The ternary representation problem asks whether each x∈R can be written as a1s1+a2s2+a3s3, with sj∈Swj. Our first theorem counts these representations uniformly in x.
Theorem 1 (Nearly-uniform representation counts). For a1,a2,a3∈R×, w1,w2,w3∈W, and every x∈R,
For two summands, we bound the number of residues with no representation. The weights in both results need not coincide, and the dilations are arbitrary units, not only powers of 2.
Theorem 2 (Near-full support). For a1,a2∈R× and w1,w2∈W,
Thus it is the nonzero fourth moment, rather than the full energy, that must be estimated to control the excess over the uniform baseline.
Theorem 3 (Energy estimate). For every w∈W,
t=0∑Sw(t)4≪n−3.
Equivalently,
E(Sw)=N1(wn)4+O(N3n−3).
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
Theorem 4 (Optimality of the energy error). For n⩾5, put wn=⌊n/2+n⌋. Then
t=0∑Swn(t)4≫n−3.
In particular,
E(Swn)−N∣Swn∣4≍N3n−3.
The same argument applies to any sequence of integer weights satisfying
2n+an⩽wn⩽2n+bn,
where 0<a<b are fixed, and yields, uniformly in this range,
E(Swn)−N∣Swn∣4≍a,bN3n−3.
For simplicity, we present the proof in this draft only for the special case stated in Theorem 4.
The optimality assertion concerns the uniform error term: it does not assert a matching lower bound for every weight. Likewise, the error bound in Theorem 3 is uniform in w, but it need not be smaller than the main term for very small slices.
The central window makes the conclusions particularly transparent. For fixed C>0 and ∣w−n/2∣⩽Cn, the standard binomial estimates give ∣Sw∣≍CNn−1/2. Hence
E(Sw)=N∣Sw∣4⋅(1+OC(n−1)).
If all the relevant weights lie in this window, then
Thus three central slices represent every residue for all sufficiently large n, with an asymptotic count for each residue, whereas two cover all but an OC(n−1) proportion of R. These conclusions have rather different flavors: near-full binary support alone does not imply the pointwise ternary asymptotic.
1.2. Symmetry, Dissociation, and the Fourth Moment. The identity 2Sw=Sw makes multiplicative symmetry a natural first avenue to consider. Indeed,
Sw(t)=Sw(2t),
so each Fourier coefficient is repeated along an orbit of Γ=⟨2⟩={2j:0⩽j<n}. This places the slices alongside multiplicative subgroups and sets invariant under their action in the study of exponential sums [KS99, AB14]. The relevant features are the number of symmetries and the additive independence among them.
For a unit frequency t∈R×, the orbit tΓ has n elements. Parseval therefore gives
nSw(t)2⩽δw,Sw(t)⩽δw/n.
Dissociation improves this estimate. Recall that a set Λ is dissociated if a relation ∑λ∈Λελλ=0, with ελ∈{−1,0,1}, forces every coefficient to vanish [TV06, Definition 4.32, pp. 175–176]. Although Γ itself has the relation 1+2+⋯+2n−1=0 in R, the set Λ={2j:0⩽j<n−1} is dissociated: a largest power exceeds the sum of all preceding powers, and every signed sum has absolute value less than N. The same holds for tΛ when t is a unit. Applying Chang's inequality [Cha02, Lemma 3.1 and its proof] to tΛ gives
Thus, dissociation allows Chang's inequality to replace Parseval. In the central window, the two pointwise bounds are respectively OC(n−3/4) and OC(n−1logn). If N is prime, a Mersenne prime, they apply to every nonzero frequency. For composite N, a nonunit frequency can have a shorter orbit, and multiplication by it need not preserve dissociation. Our fourth-moment estimate has no such restriction.
The need for a fourth moment is not merely an artifact of these particular pointwise estimates. Put Mw=maxt=0∣Sw(t)∣. For three unit dilates of one slice, bounding one Fourier factor by Mw and applying Parseval to the other two gives
ra1Sw+a2Sw+a3Sw(x)−N2δw3⩽N2⋅Mwδw.
For this upper bound to be o(N2δw3), one needs Mw=o(δw2), or Mw=o(n−1) in the central window. However, the proof of Theorem 4 gives Swn(−1)≫n−1. Thus even the best bound on the largest coefficient, combined only with Parseval in this way, cannot yield the ternary asymptotic for this family. The fourth moment retains information about the distribution of Fourier mass that this reduction discards.
A related distinction appears for multiplicative subgroups. Let H⩽Fp× have order h, where p is prime. The classical square-root character-sum estimate [AB14, Lemma 2.7], followed by Fourier inversion and Parseval, gives
At the scale h≍p3/4, the binary estimate leaves only O(h)=o(p) exceptional residues, whereas the ternary error bound is of the same order as its main term. This comparison concerns the information supplied by the estimates, not comparable density thresholds for subgroups and slices; central Hamming slices are substantially denser.
1.3. Cyclic Carries and the Proof Overview. The additive-combinatorial stage deduces Theorem 1 and Theorem 2 from the fourth-moment estimate. For the ternary count, we interpolate between the second and fourth Fourier moments and apply Hölder's inequality. For binary support, we first apply Cauchy–Schwarz to bound the mixed fourth moment. We then apply it to the representation function. Unit dilations only permute the frequencies. The main task is therefore to estimate the energy of one undilated slice. Our method is structurally different from the analytic number-theoretic approaches in [MS97, Kon01, MPS05, MR10, MRS17, May19, Gre25]: we count collisions through their cyclic carries, rather than estimate individual Fourier coefficients.
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
From collisions to a transfer matrix. At one digit position, binary addition satisfies a+b+c=o+2c′, where a,b are input bits, o is the output bit, and c,c′ are the incoming and outgoing carry bits. For a collision between two additions, we require a common output and record both carries. The resulting automaton has four states. Its transition matrix B(u), with u=(u1,u2,u3,u4), assigns the monomial u1au2bu3gu4h to input bits a,b,g,h, so the four variables record the four input weights.
The end-around carry becomes a cyclic boundary condition expressed by a trace, and Proposition 5.2 gives, for every n⩾3,
E(Sw)⩽[u1wu2wu3wu4w]tr(B(u)n),
with equality when w=n/2. Here brackets denote coefficient extraction. The only possible double count occurs when both integer sums equal N=2n−1. Each input pair then consists of complementary strings, so equal weights would require 2w=n. This possible overcount is harmless: the proof uses only the upper bound above, together with E(Sw)⩾∣Sw∣4/N.
The cancellation behind the energy estimate. At u=1=(1,1,1,1), the eigenvalues of B(u) are 8, 4, 4, 2. Let Λ(u) be the analytic eigenvalue issuing from 8, and compare it with
The key fact is that, near 1, the two functions agree whenever any one variable is 1. Consequently,
Λ(u)−Λ0(u)=j=1∏4(1−uj)⋅H(u),
where H is analytic near 1. On the coefficient-integration torus uj=exp(iθj), this is a fourth-order cancellation. Together with the Gaussian decay of the two leading terms, it bounds the local contribution by
N3n∫[−π,π]4∥θ∥24exp(−cn∥θ∥22)dθ≍N3n−3.
The Gaussian factor localizes the integral to the scale ∥θ∥2≍n−1/2. The four-dimensional Gaussian integral contributes a factor n−2, giving the central energy scale N3n−2. The transfer matrix is iterated once for each of the n binary digits, so the relevant comparison is between Λn and Λ0n. Thus the fourth-order cancellation supplies the factor n∥θ∥24, which is of order n−1 on the Gaussian scale. This gives the error bound O(N3n−3).
Away from the origin, the Frobenius–Wielandt comparison theorem [BP94, Theorem 2.14, p. 31], together with an analysis of its equality case for B(u), gives a uniform spectral gap. This part of the integral is exponentially smaller. Replacing 2−n by N−1 in the baseline is absorbed by the stated error.
Finally, the coefficient formula involves w only through the phase factor exp(−iw(θ1+⋯+θ4)). Since this factor has absolute value one, the triangle inequality bounds the coefficient by an integral that no longer depends on w. This gives the uniformity in w asserted in Theorem 3.
Why the error is attained. For the lower bound, the same cyclic symmetry has the opposite role: it repeats a large coefficient rather than constraining one. The n frequencies −2j, 0⩽j<n, are distinct and have the same coefficient. For wn=⌊n/2+n⌋, we show that Swn(−1)≫n−1, so this single orbit contributes ≫n−3 to the fourth moment. To estimate the coefficient, we keep only the first O(logn) most significant digits of a uniform element of Swn and approximate them by independent bits with bias wn/n. The resulting Fourier product has magnitude ≫n−1/2; the approximation error is smaller. Multiplication by the slice density, also of order n−1/2, gives the required coefficient.
Relation to other methods. The ambient addition law is essential. In F2n, Hamming spheres are governed by the Hamming association scheme and Krawtchouk polynomials [Del73, MS77, Pol19]. Whereas harmonic analysis on a fixed slice is naturally organized by the Johnson association scheme [Fil16]. Related fourth-moment questions are studied in [Aar18, KS20]. Under coordinatewise addition in Zn, energy inequalities for subsets of discrete cubes are developed in [KT17, dDPGIM23, Kov23, Sha26]. Neither setting includes cyclic carries.
Automata and transducers are standard tools for digit-defined objects [AS03, HKP15], and carry matrices have a classical combinatorial and probabilistic theory [Hol97, DF09]. Cusick also obtains a cyclic carry transfer identity in a related digit problem [Cus26, Theorem 6.2, equation (35)]. Here, the decisive features are the four-input collision matrix and the fourth-order agreement of its leading eigenvalue with the independent-digit baseline. The optimal excess-energy scale comes from this cancellation, not from the transfer-matrix description alone.
Organization. Section 2 records the Fourier conventions. Section 3 and Section 4 deduce Theorem 1 and Theorem 2 from Theorem 3. Section 5 constructs the carry automaton, and Section 6 proves the energy estimate using the local cancellation and the spectral gap. Section 7 proves Theorem 4.
1.4. AI Disclosure: Use of AI Tools. We used GOOGLE AI ULTRA (Gemini) and CHAT-GPT PRO in a limited, auxiliary role.
(1) Gemini suggested the carry-automaton viewpoint for Theorem 3.
(2) ChatGPT had suggested using Frobenius–Wielandt comparison theorem [BP94, Theorem 2.14, p. 31] to bound the integral away from the origin.
(3) ChatGPT was used for English-language editing, including improvements to grammar, clarity, organization, and presentation.
All AI-generated suggestions were independently examined, revised, and incorporated at the authors' discretion. The authors verified the mathematical arguments and take full responsibility for the correctness and final presentation of the paper.
2. NOTATIONS AND CONVENTIONS
Throughout the paper,
N=2n−1,R=Z/NZ,W={0,1,…,n−1},
where n⩾3. All sums and congruences involving elements of R are understood modulo N. When a frequency t∈R occurs in a sum, the notation t=0 means t∈R∖{0}.
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
For x∈R, put
eN(x):=exp(N2πix).
For a function f:R→C, we use the normalized Fourier transform
f(t):=N1x∈R∑f(x)eN(−xt).
Thus, Fourier inversion and Parseval's identity take the forms
Since t↦at permutes R, every Fourier moment of A is invariant under multiplication of A by a unit.
The notation X≪Y means that X⩽CY for an absolute constant C>0. A subscript, as in X≪CY, records the allowed dependence of the implicit constant on C. All occurrences of o(1) refer to the limit n→∞.
3. NEAR-UNIFORM REPRESENTATION COUNTS
This section proves Theorem 1 using Theorem 3. Note that, by Equation 4 and 6,
For brevity, write r(x):=ra1⋅Sw1+a2⋅Sw2(x) and S:=Supp(a1⋅Sw1+a2⋅Sw2). Then using Equation 4, we can rewrite r(x) in Fourier-analytic form:
r(x)=N0⩽t<N∑Sw1(a1t)Sw2(a2t)⋅eN(xt)
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
Let us construct the generating function for the finite automata for carry addition (refer to Figure 1 for the presentation below). Let a,b,c,c′,o∈{0,1} and u1 and u2 be indeterminates. At the current position, the incoming carry c and the input bits a and b produce the output bit o and the outgoing carry c′, so that over Z,
a+b+c=o+2c′.
FIGURE 1. Bitwise addition as an automaton. Incoming carry c and input bits a and b produce output bit o and outgoing carry c′, subject to a+b+c=o+2c′.
Towards constructing the generating function, we construct a 2×2 matrix M(o) as follows:
FIGURE 2. Composition of two automata: the collision-in-addition automaton. The additions a+b with incoming carry c and g+h with incoming carry d produce the same output bit o, with outgoing carries c′ and d′ respectively, subject to a+b+c=o+2c′ and g+h+d=o+2d′.
Next, our objective is to construct the generating function of the following “collision-in-addition” automata (see Figure 2): Suppose we have two incoming carry bits c,d∈{0,1}. Suppose there are two pairs of bits (a,b),(g,h)∈{0,1}2. The addition of a,b,c produces output o and outgoing carry bit c′. The addition of g,h,d produces the same output o and outgoing carry bit d′. We want to construct a 4×4 generating function matrix B in the indeterminates u=(u1,u2,u3,u4) with the following semantics:
Since N=2n−1, we consider runs whose starting and outgoing carries are identical, i.e., cd=c′d′. So, we are interested in the quantity
[uw](tr(B(u)n)).
However, [uw](tr(B(u)n)) may not be identical to the cardinality of the set above; there is a subtle disconnect.
Note that in Z/(2n−1)Z there are two representations of 0, one is n-times00⋯0 and another is n-times11⋯1. Every modular collision is counted once by the trace coefficient, except when a+b=g+h=N over Z. Such a collision is counted twice, with common outputs 11⋯1 and 00⋯0 corresponding to the incoming carry pairs (0,0) and (1,1), respectively.
Keeping our downstream applications in mind, consider the special case w=(w,w,w,w) for some w∈W, and write uw for u(w,w,w,w). If a,b∈Sw satisfy a+b=N, then they are bitwise complements, so 2w=n. Thus the exceptional case cannot occur when n is odd. This gives the following proposition; the full counting argument is provided in Section 5.1.
Proposition 5.2. For any n, the energy of the set Sw, denoted by E(Sw), satisfies E(Sw)⩽[uw](tr(B(u)n)). The equality holds for odd n.
Interpret Λ0(u) as the “ideal baseline polynomial”. Let LN:=N1(wn)4 and L2n:=2−n(wn)4. From the Fourier-analytic expansion of energy (Equation 5), we know,
In other words, for any w∈W, our goal is now to prove:
∣[uw](tr(B(u)n)−Λ0(u)n)∣≪N3⋅n−3.
We will proceed using Cauchy’s coefficient estimation technique by integrating along the torus u=(exp(iθ1),exp(iθ2),exp(iθ3),exp(iθ4)), where θ=(θ1,θ2,θ3,θ4)∈[−π,π]4. Of specific interest would be the behavior of our polynomial in a small neighborhood around θ=0=(0,0,0,0). Keeping this end objective in mind, for brevity, we introduce a slight abuse of notation: tr(B(θ)n)−Λ0(θ)n will denote the polynomial with the substitution ui=exp(iθi), for every i∈{1,2,3,4}.
5.1. Trace as an Upper Bound of Energy. This section proves Proposition 5.2.
Write uw for u(w,w,w,w). Recall that B(u)n[cd,c′d′] enumerates the tuples (a,b,g,h,o)∈({0,1}n)5, together with the sequence of carries c0,…,cn and d0,…,dn in {0,1}, satisfying
with (c0,d0)=(c,d) and (cn,dn)=(c′,d′), weighted by u1wt(a)u2wt(b)u3wt(g)u4wt(h). Taking the trace restricts to the runs with (cn,dn)=(c0,d0), and extracting [uw] fixes all four weights to be w.
Call a pair (c,d)∈{0,1}2 admissible for (a,b,g,h)∈Sw4 if both additions return to their incoming carries and produce a common output string. Since the inputs and incoming carries uniquely determine both additions, each admissible pair determines exactly one run. Writing P(a,b,g,h) for the number of admissible pairs, we have
[uw](tr(B(u)n))=a,b,g,h∈Sw∑P(a,b,g,h).(13)
Multiplying the first relation in Equation 12 by 2i and summing over 0⩽i⩽n−1, the intermediate carry terms cancel, giving
a+b+c0=2ncn+o(14)
where the strings are identified with the integers they represent, with position i having weight 2i. Similarly, g+h+d0=2ndn+o.
Fix a,b,g,h∈Sw, write
s1=a+boverZands2=g+hoverZ
Since w∈W={0,…,n−1}, we have 0⩽s1,s2⩽2N−2.
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
For an addition with sum s and incoming carry c, Equation 14 shows that it returns to c if and only if 0⩽s−Nc⩽N, with output s−cN. In other words,
In particular, the common output gives s1−Nc=s2−Nd. Hence, P(a,b,g,h)=0 unless s1=s2(modN).
Now, suppose s1=s2(modN).
Case 1. Suppose s1,s2=N.
By Equation 15, each addition has a unique carry that returns to itself, and its output lies in {0,1,…,N−1}. The outputs agree since s1=s2(modN). Hence, P(a,b,g,h)=1.
Case 2. Suppose exactly one sum equals N, say s1=N=s2.
The congruence and the bound on s2 force s2=0. This gives w=0 and hence s1=0, a contradiction. The other case is symmetric.
Case 3. Suppose s1=s2=N.
By Equation 15, precisely the pairs (0,0) and (1,1) are admissible, with common outputs N and 0, respectively. Hence, P(a,b,g,h)=2.
Thus every collision is counted once, except when a+b=g+h=N over Z, in which case it is counted twice. By Equation 13, E(Sw)⩽[uw](tr(B(u)n)), with equality if and only if Case 3 does not occur. Finally, a+b=N, implies that b is the bitwise complement of a, so 2w=wt(a)+wt(b)=n. This is impossible for odd n, proving equality in that case.
6. TIGHTER ESTIMATION OF ENERGY
In this section, we prove:
E(Sw)−(wn)4⋅N−1≪N3⋅n−3,(16)
which is equivalent to Theorem 3's upper bound
t=0∑Sw(t)4≪n−3.
As alluded in Section 5 after Proposition 5.2, we make the following innocuous modification: instead of proving Equation 16 directly, it would suffice to prove that
[uw](tr(B(u)n))−(wn)4⋅2−n≪N3⋅n−3.
Let us proceed with this estimation now. We set up a generating function
G(u):=tr(B(u)n)−Λ0(u)n,
where u=(u1,u2,u3,u4); the matrix B is defined by Proposition 5.1 in Section 5 (see also Equation 19 for another form) and Λ0 is defined by Equation 11.
Claim 6.1. The following inequality holds:
0⩽E(Sw)−(wn)4⋅2−n⩽[u1wu2wu3wu4w](G(u)).
This follows from Proposition 5.2 and the discussion after it in Section 5. By the Cauchy integral formula (or, in this specific case, the orthogonality relation), we have:
this difference dominates the O(∥θ∥24) term for sufficiently small ∥θ∥2. Therefore, by choosing the threshold τ>0 sufficiently small, we obtain ∣Λ(θ)∣⩽8⋅exp(−c∥θ∥22) for all θ∈Θclose.
6.4. Spectral Properties of B(θ) and Proof of Claim 6.5. In this section, we prove the following spectral properties of the matrix B(θ).
(1) When θ∈Θclose, its largest eigenvalue behaves as:
∣Λ(θ)−Λ0(θ)∣≪j=1∏4(1−exp(iθj)).(18)
(2) (Claim 6.5) Its spectral radius is separated from 8 when θ∈Θfar.
In the sequel, we use u=(u1,u2,u3,u4) defined by uj:=exp(iθj), for j∈{1,2,3,4}. Recall from Section 5, we have:
Our objective is to investigate the dominant eigenvalue Λ(u) of this matrix.
Consider a sufficiently small neighborhood parameterized by τ>0:
N:={u:∣1−uj∣⩽τ,for everyj∈{1,2,3,4}}.
Note that B(1) has eigenvalues 8, 4, 4, 2 where 1:=(1,1,1,1). There is an analytic function Λ(u) such that its magnitude is >7 and is the largest eigenvalue of B(u), for any u∈N. All other eigenvalues of B(u) are <5 in magnitude.
Consider the auxiliary polynomial
P(u;z):=det(diag(z,z,z,z)−B(u))
Its roots represent the eigenvalues corresponding to u. Note that P(u;z) is a function such that the partial derivative with respect to z at (1,8) is not equal to 0. Therefore, by the implicit function theorem, there exists an analytic function Λ(u) such that
P(u;Λ(u))=0,andΛ(1)=8
in a small neighborhood of 1.
Let us choose two contours:
Γhigh:={z:∣z−8∣=1} and Γrest:={z:∣z∣=5}.
Now, on both these contours, ∣P(1;z)∣=∣(z−8)(z−4)2(z−2)∣>0. Therefore, for u very close to 1, since P(u;z) changes continuously with u, we can make
∣P(u;z)−P(1;z)∣<∣P(1;z)∣
on each contour. Then, by Rouché’s theorem, inside both the contours, P(u;z) and P(1;z) have the same number of roots, counted with multiplicity. Therefore, together with the continuity of spectral radius and the fact that Λ(1)=8, we can assume, without loss of generality, by contracting the neighborhood of u around 1 appropriately (if necessary) that
(1) We have an analytic function Λ(u) denoting the largest eigenvalue of B(u) which remains in the proper interior of Γhigh.
(2) All remaining eigenvalues of B(u) are in the proper interior of Γrest.
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
Therefore, we get
tr(B(u)n)=Λ(u)n+O(5n)
Recall from Equation 11 that Λ0(u)=21∏j=14(1+uj). Define u′ as u restricted to u1=1. Then we have the identity:
B(u′)⋅1=Λ0(u′)⋅1.
Because every row of B(u′) sums to the same number when u1=1, and that common number is Λ0(u′). So, Λ0(u′) is an eigenvalue of B(u′). At u′=1, we have Λ0(1)=8, which coincides with Λ(1). After shrinking the neighborhood N if necessary, Λ0(u′) lies inside Γhigh. By the spectral separation above, B(u′) has exactly one eigenvalue inside Γhigh, namely Λ(u′). Therefore, Λ(u′)=Λ0(u′).
From this, we conclude that (1−u1) divides Λ(u)−Λ0(u). Likewise, by symmetry, each factor (1−uj) divides Λ(u)−Λ0(u) for j∈{1,2,3,4}. Consequently,
Λ(u)−Λ0(u)=(j=1∏4(1−uj))⋅H(u),
for some analytic function H(u). The maximum magnitude of H(u) is bounded in the neighborhood N, and this proves our first spectral property (Equation 18).
Next, we prove the spectral gap when θ∈Θfar. For this, we need the following result.
Theorem 5 (Frobenius-Wielandt comparison theorem [BP94, Theorem 2.14, p. 31]). Let A be an irreducible non-negative matrix, and let B be a complex matrix satisfying ∣Bi,j∣⩽Ai,j, entrywise. Then
ρ(B)⩽ρ(A).
More generally, every eigenvalue γ of B satisfies ∣γ∣⩽ρ(A). If equality holds for some eigenvalues γ of B, that is, if ∣γ∣=ρ(A), then there exists a diagonal unitary matrix D and a real number φ such that
B=exp(φ)DAD−1andexp(φ)=ρ(A)γ.
In particular, if ρ(B)=ρ(A), then B=exp(φ)DAD−1 for some real φ and diagonal unitary matrix D.
We emphasize that this result shows that ρ(B(u)) is far from 8 for any u far away from 1. Let A:=B(1). B(u) consists of sums of monomials with coefficients 0 or 1, so on the torus we have ∣B(u)i,j∣⩽B(1)i,j=Ai,j. Note that A is non-negative and irreducible because A2 has all non-zero entries. Hence, we can invoke Theorem 5 and get
ρ(B(u))⩽ρ(A)=8.
Let us show that it is impossible to achieve equality for u=1. Suppose, for the sake of contradiction that the equality holds at some u=1. Then, B(u)=exp(φ)DAD−1 for some real φ. Since D is unitary and diagonal,
∣B(u)i,j∣=Ai,j
Comparing (2,1) elements of A and B(u) gets us u1=u2, (3,1) elements u3=u4, and (1,1) elements u3=u1 Hence, we have u1=u2=u3=u4, and from this we can conclude that B(u)1,4=1.
These two constraints imply that exp(φ)∈{±1}; i.e., exp(⋅2φ)=1. Comparing (1,2) and (2,1) elements of A and B(u) gives us B(u)1,2=u12 and B(u)2,1=2u1 respectively. We also have
Upon multiplying them, we get u1=exp(⋅2φ), which we know is 1. Altogether, we obtain u1=1=u2=u3=u4, i.e. u=1, but this is a contradiction.
It remains to upgrade this pointwise strict inequality to a uniform separation. For simplicity, let us revert to the θ notation. Consider the set
Sτ:={θ∈[−π,π]4:∥θ∥∞⩾τ}.
Note that Sτ is a closed subset of the compact set [−π,π]4. Hence, Sτ is compact and does not contain 0. Since the spectral radius is a continuous function, the spectral radius of B(θ) on Sτ is strictly smaller than 8. This continuous function attains a maximum at some point in the set Sτ since it is a compact set. Denote this maximum spectral radius in Sτ by 8⋅exp(−c), for some positive constant c. This completes the proof that ρ(B(θ))⩽8⋅exp(−c) for θ∈Θfar, which is the second desired spectral property (Claim 6.5).
7. TIGHTNESS OF THE ENERGY BOUND
Here we prove Theorem 4. For every n⩾5, we have wn∈W, and Swn is a nonempty proper subset of R. Therefore, by Parseval, ∑t=0∣Swn(t)∣4>0. It therefore suffices to prove the lower bound in Theorem 4 for all sufficiently large n, since the finitely many remaining cases can be absorbed by decreasing the absolute implied constant. Throughout the remainder of this section, we assume that n is sufficiently large.
Note that because N=2n−1, we have the following fact: x∈Sw if and only if 2x∈Sw. As a result, we have the identity Sw(t)=Sw(2t). In particular, we have Sw(−2j) is identical, for all j∈{0,1,…,n−1}. For 0⩽j<k<n, we have
0<2k−2j<2n−1=N,
and hence −2j≡−2k(modN). Thus these are n distinct nonzero frequencies. We remark that in general the set {2jt:0⩽j<n} need not have cardinality n.
After that, restricting to these specific n frequencies, we get:
t=0∑∣Swn(t)∣4⩾n∣Swn(−1)∣4.
Thus, it suffices to prove that
∣Swn(−1)∣≫n−1.
To that end, consider X to be uniformly distributed over Swn. Note that we can rewrite
Swn(−1)=N(wnn)⋅E[eN(X)].
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
After that, we estimate these two parts on the RHS as follows:
Claim 7.1.
(wnn)≫2n⋅n−1/2≍N⋅n−1/2.
Claim 7.2.
∣E[eN(X)]∣≫n−1/2.
From these two claims, it follows that Swn(−1)≫n−1; hence proving Theorem 4.
Proof of Claim 7.1. The proof follows from basic facts:
(1) For the central binomial coefficient, we have [MN08, p. 96, Proposition 3.6.2]:
(m2m)≍22m⋅m−1/2.
(2) For 0⩽2i/m⩽1/2, the following expression holds:
Here we have used Jensen's inequality ln(1−u)⩾−ln4⋅u, when u∈[0,1/2].
(3) Finally, by definition:
(m+i2m)⩽(m+1+i2m+1)⩽2(m+i2m).
These three inequalities can be put together to prove the claim.
Case: Even n. Suppose n=2m and wn=⌊m+n⌋. Define in=wn−m=⌊n⌋. Now, when 2in/m⩽1/2 (which holds for n⩾56), we have
(wnn)≫2n⋅n−1/2.
Case: Odd n. Suppose n=2m+1 and wn=⌊m+1/2+n⌋. Define in=wn−(m+1)=⌊n−1/2⌋. Now, when 2in/m⩽1/2 (which holds for n⩾57), we have
(wnn)≍(m+in2m)≫2n⋅n−1/2.
This completes the proof of Claim 7.1.
Proof of Claim 7.2. Recall X denotes the uniform distribution over Swn, and consider the binary representation of the integer X=X12n−1+⋯+Xn−121+Xn20, where X1,…,Xn∈{0,1}. The random variable Xi denotes the i-th most significant bit in the n-bit binary expansion of the integer X.
Because of the special form of N=2n−1, note that the binary representation of the fraction X/N∈[0,1) has the repeating pattern
0.X1X2…Xn−1Xn2.
For every integer 0<u⩽n, let θu denote the random variable corresponding to the number 0.X1X2…Xu
As our first reduction, we claim:
Claim 7.3.
∣E[eN(X)]−E[exp(2π⋅θu)]∣≪2−u.
Thus, it will suffice to estimate E[exp(2π⋅θu)] instead. For the second reduction, we consider the following new random variable: Y is the random variable Y12−1+⋯+Yu2−u, where each Yj is independently set to 1 with probability pn:=wn/n; 0, otherwise. For brevity, we just write this as the random variable 0.Y1…Yu. Our second reduction claims:
Claim 7.4.
∣E[exp(2π⋅θu)]−E[exp(2π⋅0.Y1⋯Yu)]∣≪u2⋅n−1.
Note that the following quantity P(u) is identical to E[exp(2π⋅0.Y1⋯Yu)]
P(u):=j=1∏u((1−pn)+pn⋅exp(2j2π))
This quantity is estimated below.
Claim 7.5.
∣P(u)∣≫∣1−2pn∣≫n−1/2.
By Claim 7.3, Claim 7.4, and Claim 7.5, there exist absolute constants c,C>0 such that
∣E[eN(X)]∣⩾Cn−1/2−c(2−u+nu2).
Taking u=⌈log2n⌉, the second term is o(n−1/2), and hence
∣E[eN(X)]∣≫n−1/2.
This gives us Claim 7.2.
Proof of Claim 7.3. Since X/N=0.X1⋯Xn2, we have
0⩽NX−θu⩽2−u.
Therefore, using ∣exp(2πx)−exp(2πy)∣⩽2π⋅∣x−y∣,
∣E[eN(X)]−E[exp(2πθu)]∣⩽2π⋅2−u.
Proof of Claim 7.4. The only difference between the two experiments is that θu corresponds to a “sampling without replacement” and 0.Y1⋯Yu corresponds to a “sampling with replacement” experiment.
Let us formalize it further. Consider n balls, wn of them are labeled 1 and the remaining (n−wn) are labeled 0. The θu experiment corresponds to sampling u balls sequentially without replacement and writing down the labels of the balls as the binary sequence 0.X1⋯Xu. Instead, if the balls are chosen with replacement, then their labels form the binary sequence 0.Y1⋯Yu.
Let C denote the collision event that some ball is picked twice. Conditioned on C not happening (i.e., no ball is picked twice), the distribution of 0.Y1⋯Yu is identical to the
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
distribution of θu. Denote the probability of collision by p(C); the complementary, no-collision, probability by p(¬C). Therefore, we conclude:
E[exp(2π⋅0.Y1⋯Yu)]=E[1(¬C)⋅exp(2π⋅0.Y1⋯Yu)]+E[1(C)⋅exp(2π⋅0.Y1⋯Yu)](separating the count based on C occurring or not)=p(¬C)⋅E[exp(2π⋅θu)]+E[1(C)⋅exp(2π⋅0.Y1⋯Yu)](conditioned on no collision, it’s identical to the hypergeometric experiment)=E[exp(2π⋅θu)]−p(C)⋅E[exp(2π⋅θu)]+E[1(C)⋅exp(2π⋅0.Y1⋯Yu)].
Since we are computing the expectation of only unimodular objects, we conclude that
∣E[exp(2π⋅θu)]−E[exp(2π⋅0.Y1⋯Yu)]∣⩽2⋅p(C).
Now, the collision probability, by the union bound, is upper-bounded by p(C)⩽(2u)⋅n1. This proves Claim 7.4.
[Aar18] James Aaronson. Functions with large additive energy supported on a Hamming sphere. 2018. arXiv:1805.05295. ↑7
[AB14] Noga Alon and Jean Bourgain. Additive patterns in multiplicative subgroups. Geometric and Functional Analysis, 24(3):721–739, 2014. doi:10.1007/s00039-014-0270-y. ↑4, 5
[AS03] Jean-Paul Allouche and Jeffrey Shallit. Automatic Sequences: Theory, Applications, Generalizations. Cambridge University Press, Cambridge, 2003. doi:10.1017/CB09780511546563. ↑7
[BP94] Abraham Berman and Robert J. Plemons. Nonnegative Matrices in the Mathematical Sciences, volume 9 of Classics in Applied Mathematics. Society for Industrial and Applied Mathematics (SIAM), Philadelphia, PA, 1994. doi:10.1137/1.9781611971262. ↑6, 7, 18
[Cha02] Mei-Chu Chang. A polynomial bound in Freiman's theorem. Duke Math. J., 113(3):399–419, 2002. doi:10.1215/S0012-7094-02-11331-3. ↑5
[Cus26] Thomas W. Cusick. Proof of the Tu–Deng conjecture, 2026. arXiv:2608.14821. ↑7
[dDPGIM23] Jaume de Dios Pont, Rachel Greenfeld, Paata Ivanisvili, and José Madrid. Additive energies on discrete cubes. Discrete Anal., pages Paper No. 13, 16, 2023. doi:10.19086/da.84737. ↑7
[Del73] P. Delsarte. An algebraic approach to the association schemes of coding theory. Philips Res. Rep. Suppl., (10):vi+97, 1973. Thesis, Université Catholique de Louvain, June 1973. URL: https://users.wpi.edu/~martin/RESEARCH/philips.pdf. ↑7
[DF09] Persi Diaconis and Jason Fulman. Carries, shuffling, and an amazing matrix. The American Mathematical Monthly, 116(9):788–803, 2009. doi:10.4169/000298909X474864. ↑7
[Fil16] Yuval Filmus. An orthogonal basis for functions over a slice of the Boolean hypercube. The Electronic Journal of Combinatorics, 23(1):P1.23, 2016. doi:10.37236/4567. ↑7
[FMM+24] Sebastian Faust, Loïc Masure, Elena Micheli, Maximilian Orlt, and François-Xavier Standaert. Connecting leakage-resilient secret sharing to practice: Scaling trends and physical dependencies of prime field masking. In Marc Joye and Gregor Leander, editors, Advances in Cryptology - EUROCRYPT 2024 - 43rd Annual International Conference on the Theory and Applications of Cryptographic Techniques, Zurich, Switzerland, May 26-30, 2024, Proceedings, Part IV, volume 14654 of Lecture Notes in Computer Science, pages 316–344. Springer, 2024. doi:10.1007/978-3-031-58737-5_12. ↑2
[Gel68] A. O. Gelfond. Sur les nombres qui ont des propriétés additives et multiplicatives données. Acta Arithmetica, 13(3):259–265, 1968. URL: http://eudml.org/doc/204828, doi:10.4064/AA-13-3-259-265. ↑2
[Gre25] Ben Green. Waring's problem with restricted digits. Compositio Mathematica, 161(2):341–364, 2025. doi:10.1112/S0010437X24007723. ↑2, 5
[HKP15] Clemens Heuberger, Sara Kropf, and Helmut Prodinger. Output sum of transducers: limiting distribution and periodic fluctuation. Electron. J. Combin., 22(2):Paper 2.19, 53, 2015. doi:10.37236/5026. ↑7
[Hol97] John M. Holte. Carries, combinatorics, and an amazing matrix. Amer. Math. Monthly, 104(2):138–149, 1997. doi:10.1080/00029890.1997.11990612. ↑7
[Kon01] Sergei Vladimirovich Konyagin. Arithmetic properties of integers with missing digits: distribution in residue classes. Periodica Mathematica Hungarica, 42(1-2):145–162, 2001. doi:10.1023/A:1015256809636. ↑2, 5
[Kov23] Vjekoslav Kovač. On binomial sums, additive energies, and lazy random walks. J. Math. Anal. Appl., 528(1):Article 127510, 13, 2023. doi:10.1016/j.jmaa.2023.127510. ↑7
[KS99] Sergei V. Konyagin and Igor E. Shparlinski. Character sums with exponential functions and their applications, volume 136 of Cambridge Tracts in Mathematics. Cambridge University Press, Cambridge, 1999. doi:10.1017/CB09780511542930. ↑4
[KS20] Naomi Kirshner and Alex Samorodnitsky. On the ℓ4:ℓ2 ratio of functions with restricted Fourier support. J. Combin. Theory Ser. A, 172:105202, 25 pp., 2020. doi:10.1016/j.jcta.2019.105202. ↑7
[KT17] Daniel Kane and Terence Tao. A bound on partitioning clusters. Electronic Journal of Combinatorics, 24(2):Paper No. 2.31, 13, 2017. doi:10.37236/6797. ↑7
[May19] James Maynard. Primes with restricted digits. Invent. Math., 217(1):127–218, 2019. doi:10.1007/s00222-019-00865-6. ↑2, 5
[MN08] Jiří Matoušek and Jaroslav Nešetril. Invitation to Discrete Mathematics. Oxford University Press, Oxford, 2 edition, 2008. URL: https://global.oup.com/academic/product/an-invitation-to-discrete-mathematics-9780198570424. ↑20
[MPS05] Christian Mauduit, Carl Pomerance, and András Sárközy. On the distribution in residue classes of integers with a fixed sum of digits. Ramanujan J., 9(1-2):45–62, 2005. doi:10.1007/s11139-005-0824-6. ↑2, 5
A. BISWAS, J. HWANG, H. K. MAJI, I. D. SHKREDOV, AND X. YE
[MR10] Christian Mauduit and Joël Rivat. Sur un problème de Gelfond: la somme des chiffres des nombres premiers. Annals of Mathematics, 171(3):1591–1646, 2010. doi:10.4007/annals.2010.171.1591. ↑2, 5
[MRS17] Christian Mauduit, Joël Rivat, and András Sárközy. On the digits of sumsets. Canad. J. Math., 69(3):595–612, 2017. doi:10.4153/CJM-2016-007-2. ↑2, 5
[MS77] Florence J. MacWilliams and Neil J. A. Sloane. The Theory of Error-Correcting Codes, volume 16 of North-Holland Mathematical Library. North-Holland Publishing Co., Amsterdam-New York-Oxford, 1977. ↑7
[MS97] Christian Mauduit and András Sárközy. On the arithmetic structure of the integers whose sum of digits is fixed. Acta Arith., 81(2):145–173, 1997. URL: https://eudml.org/doc/207059, doi:10.4064/aa-81-2-145-173. ↑2, 5
[Pol19] Yury Polyanskiy. Hypercontractivity of spherical averages in Hamming space. SIAM Journal on Discrete Mathematics, 33(2):731–754, 2019. doi:10.1137/15M1046575. ↑7
[Sha26] Xuancheng Shao. Additive energies of subsets of discrete cubes. Proc. Roy. Soc. Edinburgh Sect. A, 156(3):944–965, 2026. doi:10.1017/prm.2024.126. ↑7
[TV06] Terence Tao and Van Vu. Additive combinatorics, volume 105 of Cambridge Studies in Advanced Mathematics. Cambridge University Press, Cambridge, 2006. doi:10.1017/CB09780511755149. ↑4
DEPARTMENT OF COMPUTER SCIENCE, PURDUE UNIVERSITY, WEST LAFAYETTE, IN 47907, USA
Email address: biswas62@purdue.edu
DEPARTMENT OF COMPUTER SCIENCE, PURDUE UNIVERSITY, WEST LAFAYETTE, IN 47907, USA
Email address: hwang102@purdue.edu
DEPARTMENT OF COMPUTER SCIENCE, PURDUE UNIVERSITY, WEST LAFAYETTE, IN 47907, USA
Email address: hmaji@purdue.edu
DEPARTMENT OF MATHEMATICS, PURDUE UNIVERSITY, WEST LAFAYETTE, IN 47907, USA
Email address: ishkredo@purdue.edu
DEPARTMENT OF COMPUTER SCIENCE, PURDUE UNIVERSITY, WEST LAFAYETTE, IN 47907, USA
Email address: ye151@purdue.edu