For each sign, we prove that ≫X/logX squarefree moduli in (X,2X] with at most three prime factors have a normalized Kloosterman sum of that sign with magnitude bounded below by a positive constant. The bound extends to short arithmetic progressions, uniformly for nonzero coefficients in a small power range. The proof combines Sato–Tate marginals for complementary blocks of prime factors with a centered linear divisor weight.
Introduction
Write e(t)=e2πit. For integers A, B and a positive modulus n, set
The sum is over units, and x is the inverse of x mod n. The substitution x↦−x shows that S(A,B;n) is real. For n>1, let P−(n) be its least prime factor and let ω(n) count its distinct prime factors.
Theorem 1.1. There are positive constants c,κ,ϵ,σ,δ,α such that for every sufficiently large X, every X1−σ≤Y≤X, every positive integer m≤Xδ, every reduced class amodm, every pair of nonzero integers A,B with ∣AB∣≤Xα, and each sign s∈{−1,1}, at least cY/(ϕ(m)logX) integers n satisfy
X<n≤X+Y,n≡a(modm),μ2(n)=1,
ω(n)≤3,P−(n)>Xϵ,sKA,B(n)>κ.
Fouvry and Michel [3] initiated the study of these signs on almost primes. Matomäki [6] and Xi [10] developed lower bounds for absolute moments from Sato–Tate marginals. Xiao and Li [9 Theorem 1.1] give ≫X/logX moduli of each sign with at most four prime factors in (X,2X]. For two prime factors, Drappeau and Maynard [1 Corollary 1.3] obtain sign changes given sufficiently close exceptional zeros.
We partition the prime factors to minimize the difference between the two sums of logarithms. A periodic-coefficient estimate and the multiplicative large sieve give second moments for the two parts. A linear divisor weight then separates the contributions from at most three factors, with its quadratic and cubic terms accounting for the two parity biases of an exceptional character.
Moments on prime boxes
For a nonzero integer C write KC(n)=K1,C(n) and Kl(t;p)=K1,t(p). The Weil bound gives ∣KC(n)∣≤τ(n). For squarefree n=p1⋯pr, the Chinese remainder theorem gives
KC(n)=i=1∏rZi,Zi=Kl(Cn/pi2;pi).(1)
The Sato–Tate law ν on [−2,2] has density (2π)−14−z2. Its second moment is 1, and its first absolute moment is ρ=8/(3π).
Consider disjoint prime intervals Ii⊂[Pi,2Pi] in decreasing order, with a prescribed unit class modulo m in each. Put X0=∏iPi≍X, bi=logPi/logX0, and b(I)=∑i∈Ibi. We take r fixed and b in compact subsets of b1>⋯>br>0, away from the equality cases below. In each such subset the nonconstant Chebyshev tests below have sums O(X1−η) for some η>0, uniformly in the residue restrictions and C with pi∤C. Thus the limiting assertions hold on boxes containing ≫X1−η/2 tuples. Expectations are uniform averages over one box.
Lemma 2.1. The coordinates (Zi)i∈I have limiting law ν⊗∣I∣ if
b(I)<21or21bj<b(I)−bj<21(1−bj)for some j∈I.(2)
Proof. By polynomial approximation it suffices to test products of Uk(Zi/2), where Uk is the Chebyshev polynomial of the second kind and ∫Uk(z/2)dν(z)=0 for k≥1. Over Fp, the function Uk(Kl(C/u2;p)/2) is the trace of the k-th symmetric power of the inverse-square pullback of Katz’s Kloosterman sheaf, up to a constant sign. Pullback by the finite étale map u↦C/u2 preserves the connected geometric monodromy SL2 for p>2. For k≥1 the symmetric power is geometrically irreducible of rank k+1 and bounded conductor. Its complete sums against every multiplicative character are Ok(p), uniformly for C≡0(modp), by the trace formula and Deligne’s bound [11 Lemma 3.2, (3.3)].
For the first inequality in (2), put the degree-zero coordinates in the complement and write q=∏i∈Ipi≍Q, u=n/q≍M for the resulting blocks. Chinese remaindering gives multiplicative Fourier coefficients O(q−1/2) for the test as a function of u mod q. The principal coefficient gives a saving of order Q−1/2. A character of conductor ℓ∣q agrees with its inducing primitive character on the support of u, since the prime intervals are disjoint. In a range ℓ≍D there are O(Q/D) possible q for each conductor. The coefficient is O(D−1/2). With γu the indicator of the product of the complementary primes, Cauchy–Schwarz and the multiplicative large sieve [5 Theorem 25.15] give the bound
Here ∥γ∥2≪M by unique factorization in disjoint intervals. Each nonprincipal conductor contains a prime from the box, and Q/M is smaller than a fixed negative power of X by (2). The O(logX) conductor ranges therefore give a power saving.
For the second inequality in (2), a test of degree zero at j reduces to the first case. Otherwise fix p=pj and put v=∏i∈I∖{j}pi≍N, u=∏i∈/Ipi≍M, including all degree-zero coordinates in these products. Each of the other tests in I is periodic in u modulo its own prime divisor of v. The estimate of Fouvry and Michel [3 Proposition 7.2] for a bounded coefficient periodic in u mod v, with the remaining test at p, gives
≪MN(p−1/8+p1/8N−1/4+N/M).
Both p1/2<N and N<M hold with power margins.
For general C, the four off-diagonal pullbacks in [3 §7.2] have arguments
C[dui(ui−z)]−2,C[dz(ui−z)]−2(i=1,2),
where p∤du1u2(u1−u2). Over the algebraic closure, d is replaced by d/C, so the loci of nontrivial projective wild inertia are still {u1},{0,u1},{u2},{0,u2}. The separable pullbacks retain geometric monodromy SL2. The distinct loci rule out rank-one twist identifications, so the same Goursat–Kolchin–Ribet argument gives product monodromy. The tensor of the four nontrivial symmetric powers has no invariant and bounded conductor, giving the complete bound Ok(p). The Weil bound handles the diagonal, and summation over pj gives the saving.
Suppose b1<1/2. Let I be the heavier part of a partition minimizing ∣2b(I)−1∣, and write t=b(I)>1/2. Moving any j∈I to the complement shows bj≥2t−1, with equality excluded by the compact cuts. Since ∣I∣≥2, the smallest bj in I also satisfies t−bj≥bj. Thus I satisfies the second criterion of (2), and its complement satisfies the first. Cauchy–Schwarz, using the two product marginals, bounds the mean of ∣KC∣ by 1+o(1). For b1>1/2, apply Weil at p1 and use the product marginal on its complement. In all,
On D2, Lemma 2.1 gives the law of Z2. To test Z1, fix p1=p and sum over p2. Expanding a residue-class indicator modulo m gives additive phases with total coefficient norm one. For each phase write e(vp2/m)=e(kp2/p)e(θp2) with ∣θ∣≤1/(2p). The first twist preserves the bounded conductor and geometric irreducibility of rank k′+1≥2 for a test of degree k′. At endpoints y≍P2, the prime trace estimate [2 Theorem 1.5, (1.3)] is Ok,γ(y(1+p/y)1/12p−γ/2) for γ<1/24. It saves a power for P2>p3/4 with a power margin. Differencing the endpoints and applying partial summation to e(θp2) costs O(1+P2/p).
On D3, the pair {2,3} satisfies (2) with j=3, since b3/2<b2<b1. For Z1, fix p1 and use the bilinear trace estimate [2 Theorem 1.17, (1.6)] over p2,p3. The term p11/4P2−1/2(logp1)1/2 saves a power because b2>b1/2. The other terms, p1−1/4 and P3−1/2, do so as well. This gives the law of Z1 and the product law for Z2,Z3 as separate marginals.
Matomäki’s rearrangement bound [6 Lemma 2.3] lower-bounds the mean of a product of two nonnegative variables by the integral of their oppositely ordered quantiles. Xi’s numerical lower bounds for the cosine normalization [10 §4.2], multiplied by 4 and 8, give
On S, also {1,3} satisfies (2) with j=1 because b1/2<b3<b2. In a joint weak limit, each of Z1,Z2 consequently has law ν conditional on Z3. Applying the two-variable rearrangement bound to their conditional coupling and integrating against ∣Z3∣ gives E∣KC∣≥c2ρ−o(1) there.
The linear divisor weight
On the ordered simplex Δr={b1>⋯>br>0,∑ibi=1} put
Take μ1 to have unit mass at b1=1. Following the logarithmic centering in Drapeau and Maynard [1 §2 and (4.5)], set
H=6043H2+17H3,Hj(t)=(1/2−t)+j.(5)
If r≡j(mod2), pairing complementary subsets shows that 2DrHj is the r-th difference of the polynomial (1/2−t)j. Thus DrHj=0 when also r>j. For b1>1/2 the subsets containing index 1 contribute zero, and the other terms form a difference of order r−1 of the same polynomial. In that region DrHj=0 for r≥j+2.
For r≤3 the differences are nonnegative. In rank one D1Hj=Hj(0). In ranks two and three the differences are
On D2 we have 0<x=1/2−b2<1/14. The quotient of the cubic weight by b1b2 is x+1/(4(1/2+x)), so
E2=14c2,E3=c2(3921+41log(8/7)).(6)
For the quadratic triple weight, the part of D3 with b1>1/2 contributes 2log(4/3)−1/2 to the integral. Indeed, with z=b3, the inner integral of 2/(1−z−b2) over (1−z)/3<b2<1/2−z is 2log(4(1−z)/3), which is integrated over 0<z<1/4. Every triple with b1<1/2 belongs to D3, since b2≥(1−b1)/2. There set xi=1−2bi, with elementary symmetric functions e2,e3. The quotient D3H2/∏bi is 4e2/(e2−e3)≥4. By symmetry and the Jacobian 1/4, this region contributes at least
61∫xi>0∑ixi=1(1+3e3)dx2dx3=807,
using e2≤1/3. The (b2,b3)-areas of D3 and S are 1/24 and 1/120. Integrate from max(b3,(1−b3)/3) or max(b3,1−3b3) to (1−b3)/2, respectively, wherever the interval is nonempty. The region S lies in b1<1/2. Consequently
O2≥c3(2log(4/3)−33/80)+(c2ρ−c3)/30,
O3=c3/8+(c2ρ−c3)/40.(7)
Write Vr,j=∫Δr∣DrHj∣dμr. Above three factors the quadratic weight contributes only on odd r in b1≤1/2. The cubic weight contributes only on even r, and only for r=4 can it contribute in b1>1/2. There D4H3=6b2b3b4, and its integral is 21∫01(1−x)2dx/x=(log2−5/8)/2. Since 2ρ3<1.224, the upper bounds in (3) give the following costs for r≥4. The inequalities are proved in Appendix § 5.
T2=r≥5rodd∑Vr,2<0.0642,(8)
T3=r≥4reven∑Vr,3+0.224(log2−5/8)/2<0.0958.(9)
For parity multipliers 1+w and 1−w, the lower contribution from r≤3 minus the upper contribution from r≥4 is at least
Indeed the two coefficients exceed 0.00011 and 0.00013, respectively, by (6)–(9). For the rational comparisons use ρ>28/33 and three terms each of 2arctanh(1/7) and 2arctanh(1/15). The disjoint parities above three factors allow the absolute values in (8) and (9) to be used directly for H.
Intervals and progressions
Let J=(X,X+Y], L=logX, and M0=Y/(φ(m)L). Set C=AB. We will choose α<ϵ, so P−(n)>Xϵ ensures (n,AB)=1. On those integers, substituting y=Axmodn gives KA,B(n)=KC(n).
Smoothing and signed cancellation
Fix a smooth cutoff ψ with values in [0,1], zero for v≤2 and one for v≥3. For 0<h<1/8, set Hj,h(t)=Hj(t)ψ((1/2−t)/h) on t≥0 and Hh=(43H2,h+17H3,h)/60. Use a common compactly supported extension on the left for each pair Hj,Hj,h.
Define
f(u)=u2∣sin(u/2)∣(u>0),F(s)=∫0∞e−suf(u)du(s>0).
Then F(s)≤1/s. Integrating over successive periods of 2∣sin(u/2)∣ gives
−F′(s)=s2+1/4coth(πs),−sF′(s)≤4/π.(11)
The inequality follows from xcothx≤1+x2/3, by comparing coefficients in xcoshx≤(1+x2/3)sinhx, and π2<12.
Lemma 4.1. For j=2,3,
r≥1∑∫Δr∣Dr(Hj−Hj,h)∣dμr≪hj−4/π.
Proof. The defect is a translate and rescaling of hjv+j(1−ψ(v)), so its Fourier transform is O(hj+1(1+h∣t∣)−j−1). The absolute finite-difference factor at frequency t>0 is ∏i2∣sin(tbi/2)∣. On the full simplex its integral against ∏ibi−1db2⋯dbr is tf∗r(t), by ui=tbi, with convolution on R+. The ordered integral is 1/r! times this. Thus Fourier inversion bounds the sum by
≪hj+1∫0∞(1+ht)j+1tG(t)dt,G(t)=r≥1∑r!f∗r(t).
By (11), F(1/T)≤(4/π)logT+O(1) for T≥1. The Laplace transform of G is eF(s)−1, so
∫0TG(t)dt≤e(eF(1/T)−1)≪T4/π.
The range t≤1/h and the dyadic ranges above it give the stated bound, as j>4/π.
:::
Set Wh(n)=∑d∣nμ(d)Hh(logd/logn) for n∈(X,2X]. Nonzero terms have d≤(2X)1/2−2h≤X1/2−h for large X.
Lemma 4.2. For fixed 0<h<1/8, m≤Xh/8, (a,m)=1, and 1≤∣C∣≤Xh/100,
Proof. Expand μ2(n)=∑v2∣nμ(v). For v≤Xh/5 put q=[d,v2]. A nonempty congruence condition requires (q,m)=1 and has the form n≡qc(modqm), with c≡aqˉ(modm). Steiner’s estimate [7 Theorem 18] for prefix sums of S(1,C;n)/n is bounded, up to Xo(1), by
∣C∣(X1/6q−1/3+m1/2(1+qmX)2ϑ),0≤ϑ≤7/64.
In that theorem the two spectral coefficient factors are O(∣C∣7/12) and O(∣C∣1/2), and the exceptional-spectrum factor is O(∣C∣3ϑ/2(1+X/(qm))2ϑ). The first coefficient 1 makes the common divisor of the two coefficients equal to one. Partial summation to KC(n) costs X. Since q≥d, summation over d≤D=X1/2−h, for each v, gives at most
∣C∣X1/2+o(1)(X1/6D2/3+m1/2D+m1/2X2ϑD1−4ϑ).
Before the factors ∣C∣ and Xh/5 from summing over v, the saving is at least h/2, since 1−4ϑ≥9/16 and m1/2≤Xh/16. For v>Xh/5 the Weil and divisor bounds give at most
Xo(1)Xh/5<v≤2X∑(2X/v2+1)≪X1−h/5+o(1).
Both contributions satisfy the lemma.
Each coefficient Hh(logd/logt) on [X,2X] has bounded supremum and total variation, by monotonicity of logd/logt and smoothness of Hh. For δ<h/8, δ+σ<h/6, and α<h/100, Lemma 4.2 thus gives o(M0) for ∑n∈J,n≡amodmμ2(n)Wh(n)KC(n).
The absolute contribution from p∣n with p≤Xϵ is Oh(ϵM0). To prove this, Fourier inversion in Wh multiplies the factors 1−eitlogp/logn over p∣n on squarefree integers. With u=1+∣t∣, their product times ∣KC(n)∣ is bounded by the multiplicative function fu given by
fu(p)=4min(1,ulogp/L),fu(pk)=0(k≥2).
Extract p≤Xϵ, p∤m, and apply Shiu’s theorem [5 Theorem 20.3] to the remaining factor in the class apˉ(modm) and interval of length Y/p. Here 0≤fu≤τ4, the endpoint is (X+Y)/p, and Y/(pm)≥((X+Y)/p)1/2 for large X when ϵ,δ,σ<1/10. The bound is
≪pM0expℓ≤2Xℓprime∑ℓfu(ℓ)≪pM0u4.
The first inequality uses Mertens’ estimate on the excluded local factors in Shiu’s exponential. For the second, split the prime sum at X1/u. The part below the split is O(1) by ∑ℓ≤z(logℓ)/ℓ≪logz, and the part above is at most 4logu+O(1) by Mertens’ theorem. If X1/u<2, then u≫L gives the same bound. Now ∑p≤Xϵfu(p)/p≪uϵ, and integration against ∣Hh(t)∣ gives the assertion. In particular, on the set N of squarefree n∈J in the class a(modm) with P−(n)>Xϵ, we have
n∈N∑Wh(n)KC(n)≤(Oh(ϵ)+o(1))M0.(12)
Prime counts in boxes
For fixed ϵ there are at most R=⌈2/ϵ⌉ prime factors in N. Partition the prime variables into bins (P,P(1+Δ)] with Δ=X−ξ, and take σ<ξ. For each m, denote its possible exceptional real character and zero by χ∗ and β, in the sense of Thorner and Zaman [8 Theorem 1.1]. In a reduced class u mod m, for any fixed tolerance ζ>0 the count in a bin is
The exceptional term is absent when there is no such zero. To apply the estimate at P≫Xϵ, use 1−χ∗(u)tP≫m−1/2 by [8 (1.2)]. The weighted length divided by φ(m) exceeds (P(1+Δ))32/37+η0 if ξ+3δ/2<ϵ(1−32/37−η0), for fixed sufficiently small η0>0. The denominator in the exponential error is logm+O(L2/3(logL)1/3), giving tolerance ζ after decreasing δ. Division by logP removes the prime logarithms with a relative error o(1). For m=1 count the unit class modulo 2.
A box with product comparable to X has ≫X1−r(ξ+3δ/2)L−r tuples for every prescribed pattern of unit classes. Taking R(ξ+3δ/2)<η/2 makes this sufficient for the uniform trace estimates of § 2 on each compact region there. Summing the modeled counts over unit patterns u1⋯ur=a(modm) gives the density factor
Every nonempty proper subset in the expansion has character average zero, by varying a slot in the subset against one outside it. The full subset contributes χ∗(a). The errors in (13) cost OR(ζ) in this factor, since each slot multiplier is at most two. Moreover ∏itPi=Xβ−1+OR(1/L), by averaging (∏ivi)β−1 and using sup0≤t≤1tX−t≪1/L with ∏ivi≍X. Write w=χ∗(a)Xβ−1, with w=0 when the exceptional term is absent.
For decreasing prime factors put b(n)=(logpi/logn)i=1r. The change of variables z=∏ivi, bi=logvi/logz, gives
i∏logvidvi=logzdzdμr.(14)
Each squarefree integer has one decreasing tuple. Summing ∏iBPi corresponds to integrating (14), giving total mass Oϵ(Y/L) for the boxes meeting J. The boxes crossing an endpoint lie in product strips of width OR(XΔ), so their class count is OR,ϵ(XΔ/(φ(m)L))=o(M0). The cutoff is br>ϵ+Oϵ(1/L). At fixed ϵ, strips about the comparison hyperplanes have arbitrarily small μr-measure. In such strips count by (13), allowing all tuples in coincident bins, and use ∣KC∣≤2R.
Off these strips, freeze the weights within each bin and sum (13). A fixed bounded, piecewise continuous weight in b(n) then contributes its integral over Δr∩{br>ϵ} times M0(1+(−1)rw), up to an arbitrarily small fixed error times M0 and o(M0). For a nonnegative weight multiplied by ∣KC∣, insert the corresponding bounds of § 2. In particular the ordinary count satisfies ∣N∣≪ϵM0.
Counting each sign
On N let W(n)=DrH(b(n)), where r=ω(n). The smoothed weight Wh(n) is the same finite difference with Hh. Since the box means of ∣KC∣ are at most 2+o(1), including the Weil bound at r=1, and 1+(−1)rw≤2, the comparison applied to ∣Dr(H−Hh)∣ costs at most
4M0r≥1∑∫Δr∣Dr(H−Hh)∣dμr
up to the fixed tolerance and o(M0). Lemma 4.1 bounds this by O(h2−4/πM0).
Choose h first to make the smoothing error small compared to (10). Then choose ϵ to make Oh(ϵ) in (12) and the loss from br≤ϵ in the lower integrals small. The latter follows from (6) and the bounded triple quotients D3Hj/∏bi, since 0≤D3H2≤2b2b3 and b1≥1/3. Fix the compact regions and the tolerance next. Finally choose the exponents ξ,δ,σ,α>0 satisfying the previous strict inequalities and α<ϵ.
Write A≤3 and A≥4 for the sums of ∣WKC∣ on N with the indicated numbers of prime factors, and S for the full sum of WKC on N. By (10), (12), and the bounds for smoothing and transfer,
A≤3−A≥4−∣S∣≫M0.
Let S≤3 be the signed sum over at most three prime factors. On these integers W≥0, and the weighted absolute mass of sign s is
21(A≤3+sS≤3)≥21(A≤3−A≥4−∣S∣)≫M0.
Here ∣S≤3∣≤A≥4+∣S∣. The bound ∣N∣≪ϵM0, together with boundedness of W on the first three ranks, permits discarding ∣KC∣≤κ for a sufficiently small fixed κ>0. Each remaining summand on these ranks is bounded by a constant, by ∣KC∣≤8. This proves Theorem 1.1.
Bounds for the simplex integrals
If r≥j+1 has the parity of j+1, Fourier inversion gives DrHj, up to a sign, as
πj!∫0∞tj−1i∏2sin(tbi/2)dt(15)
Indeed the (j+1)-st distributional derivative of Hj is a signed atom of magnitude j! at 1/2. The differences cancel the centering phase and annihilate polynomials of degree at most j. Taking absolute values and integrating on the simplex gives tf∗r(t)/r! for the absolute sine product, as in Lemma 4.1. The Laplace integral for t−j and Tonelli’s theorem yield
Inclusion and exclusion gives DrHj/(j!∏bi) as the (r−1−j)-th derivative at zero of the density of the sum of independent uniforms on [−bi/2,bi/2]. The density is even and nonincreasing on the positive half-line because convolution with a centered uniform preserves this property. Its value and second derivative give D4H3≥0, D5H2≤0, and D6H3≤0. Integrate the signed kernel in (15) at these pairs to obtain equality in (16) with F(s) replaced by 2arctan(1/(2s)).
Let Bk=∫0π/2ukcotudu. Substituting s=21cotu and integrating by parts gives
These give V4,3<0.081300, V5,2<0.035710, and V6,3<0.004908, using 3.14159<π<3.14160 from Machin’s formula, eight terms of the arctanh series for log2, and the first 100 terms of the zeta series with their integral-test remainders. Also (log2−5/8)/2<0.034074.
Apply Cauchy–Schwarz to r!Vr,2 on the full simplex with squared factors ∏ibis−1 and ∣DrH2∣2∏ibi1−s. The first may be integrated over maxbi≤1/2, since DrH2 vanishes elsewhere. Its integral is (1−pr)Γ(s)r/6, since the excluded events bi>1/2 are disjoint and 1−bi has beta law B(4−s,s) under the Dirichlet probability density.
For the second integral, put xi=bi/br for i<r, xr=1, and T=∑ixi. The Jacobian is T−r and the centered quadratic difference has degree two, so the total radial factor is Trs−4=1. In the square of (15) write the two frequencies as t,ut with 0<u<1, and double the integral. The substitution yi=txi gives r−1 copies of the integral below and leaves t−5+(r−1)sdt=t−1−sdt, giving the last copy. The integral in question is
The integral with absolute values is Os(us) by 2∣sin(uy/2)∣≤min(2,uy), so Fubini applies since rs=4. The second squared factor integrates to 8/π2 times the integral of the r-th power of this kernel against du/u3. Euler’s reflection formula gives
Vr,22≤(1−pr)12(r!)2srsinr(πs/2)πr−2Ir.(17)
The substitution x=((1−u)/(1+u))1/r gives the positive series
The sum over k≥40 before multiplication by 8rr! is at most 2(2/r)r+1392−r/(r−2) by (2k+2)≤2k2 and the integral test. For pr, expand (1−v)s−1 in the beta integral to get
where (1−s)k denotes the rising factorial. Inserting these bounds in (17) gives the following upper bounds. Use six terms of the alternating sine series, with the lower endpoint for π in positive terms and the upper endpoint in negative terms. For 2s, use eight terms of the exponential series at s times the six-term lower bound for log2.
r
7
9
11
13
15
17
106Vr,2 upper bound
16030
6800
3026
1382
641
301
Table 1 (PDF p. 9).
The two tails
Let Rm(v)=∑r≥mr≡mmod2vr/r!. By (16), the two tails are bounded by
πj∫0∞sj−1Rm(F(s))ds,(j,m)∈{(2,19),(3,8)}.
Put b=1/16, π−=3.14159 and P8(v)=∑k=18vk/k!. Split each dyadic interval in [b,16] into eight equal cells. At their endpoints bound −F′(x) by
A(x)=x2+1/41+2/P8(2π−x).
Since −F′ is the Laplace transform of the nonnegative function 2∣sin(u/2)∣, it is convex. Starting with U(16)=1/16, set
U(x)=U(y)+⌈(y−x)(A(x)+A(y))/2⌉9
on successive cells [x,y] from right to left. The ceiling is to a multiple of 10−9. The trapezoid bound gives F(x)≤U(x), and the recurrence gives U(b)<9/2. On [0,9/2],
Both F and Rm are convex, and Rm is increasing. Thus the piecewise linear interpolant Lm of the endpoint values Qm(U(x)) majorizes Rm(F(s)) on [b,16].
For 0<s<b, use F(s)≤U(b)+(4/π−)log(b/s). With u=U(b) and q=4/(jπ−), termwise integration after s=be−t gives the upper bound
In fact the integrated r-th term is (bj/j)∑k=0rukqr−k/k!. Summing first over r of the chosen parity gives the formula, with the exponential tail for k>m bounded geometrically. On s≥16, F(s)≤1/s gives Rm(F(s))≤2s−m/m!.
The middle integral is a sum over the 64 cells. With the finite contributions this gives (8) and (9).
Acknowledgment. The author used OpenAI’s GPT-6.2 Astra to formulate the results, develop and review the proofs, and draft the manuscript.
References
[1]S. Drapeau and J. Maynard, Sign changes of Kloosterman sums and exceptional characters, Proc. Amer. Math. Soc. 147 (2019), 61–75.
[2]É. Fouvry, E. Kowalski and P. Michel, Algebraic trace functions over the primes, Duke Math. J. 163 (2014), 1683–1736.
[3]É. Fouvry and P. Michel, Sur le changement de signe des sommes de Kloosterman, Ann. of Math. (2) 165 (2007), 675–715.
[5]D. Koukoulopoulos, The Distribution of Prime Numbers, Grad. Stud. Math. 203, American Mathematical Society, 2019.DOI
[6]K. Matomäki, A note on signs of Kloosterman sums, Bull. Soc. Math. France 139 (2011), 287–295.DOI
[7]R. S. Steiner, Kloosterman sums do not correlate with periodic functions, Mathematika 70 (2024), e12232. arXiv:2302.06409.DOI
[8]J. Thorner and A. Zaman, Refinements to the prime number theorem for arithmetic progressions, Math. Z. 306 (2024), Paper No. 54.DOI
[9]Y. Xiao and H. Li, Selberg sieve weights and sign changes of Kloosterman sums. II. Square-free moduli with at most four prime factors, arXiv:2609.24255v2, 2026.arxiv.org/abs/2609.24255
[10]P. Xi, Sign changes of Kloosterman sums with almost prime moduli, Monatsh. Math. 177 (2015), 141–163.arxiv.org/abs/1310.8623