\documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern,amsmath,amssymb,amsthm,booktabs} \usepackage[a4paper,margin=28mm]{geometry} \usepackage{microtype,xcolor} \usepackage[unicode,colorlinks=true,linkcolor=blue!55!black,citecolor=blue!55!black,urlcolor=blue!55!black]{hyperref} \hypersetup{pdftitle={Sign changes of Kloosterman sums on moduli with at most three prime factors},pdfauthor={Yilin Liu}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newcommand{\Kl}{\operatorname{Kl}} \newcommand{\E}{\mathbb E} \newcommand{\dd}{\,\mathrm d} \setlength{\emergencystretch}{1em} \clubpenalty=10000 \widowpenalty=10000 \displaywidowpenalty=10000 \allowdisplaybreaks[1] \title{Sign changes of Kloosterman sums on moduli\\ with at most three prime factors} \author{Yilin Liu} \date{23 November 2026} \begin{document} \makeatletter \begin{center} {\LARGE\bfseries\parbox{.99\linewidth}{\centering\@title}\par} \vspace{.8em} {\large\@author\par} \vspace{.4em} {\small\@date\par} \end{center} \makeatother \begin{abstract} For each sign, we prove that \(\gg X/\log X\) 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. \end{abstract} \section{Introduction} Write \(e(t)=e^{2\pi i t}\). For integers \(A,B\) and a positive modulus \(n\), set \[ S(A,B;n)=\sum_{x\bmod n}^{*} e\big((Ax+B\bar x)/n\big), \qquad K_{A,B}(n)=\frac{S(A,B;n)}{\sqrt n}. \] The sum is over units, and \(\bar x\) is the inverse of \(x\bmod n\). The substitution \(x\mapsto-x\) shows that \(S(A,B;n)\) is real. For \(n>1\), let \(P^-(n)\) be its least prime factor and let \(\omega(n)\) count its distinct prime factors. \begin{theorem}\label{thm:main} There are positive constants \(c,\kappa,\epsilon,\sigma,\delta,\alpha\) such that for every sufficiently large \(X\), every \(X^{1-\sigma}\le Y\le X\), every positive integer \(m\le X^\delta\), every reduced class \(a\bmod m\), every pair of nonzero integers \(A,B\) with \(|AB|\le X^\alpha\), and each sign \(s\in\{-1,1\}\), at least \(cY/(\varphi(m)\log X)\) integers \(n\) satisfy \[ \begin{gathered} XX^\epsilon,\qquad sK_{A,B}(n)>\kappa . \end{gathered} \] \end{theorem} Fouvry and Michel~\cite{FM} initiated the study of these signs on almost primes. Matom\"aki~\cite{Matomaki} and Xi~\cite{Xi15} developed lower bounds for absolute moments from Sato--Tate marginals. Xiao and Li~\cite[Theorem~1.1]{XL} give \(\gg X/\log X\) moduli of each sign with at most four prime factors in \((X,2X]\). For two prime factors, Drappeau and Maynard~\cite[Corollary~1.3]{DM} 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. \section{Moments on prime boxes}\label{sec:boxes} For a nonzero integer \(C\) write \(K_C(n)=K_{1,C}(n)\) and \(\Kl(t;p)=K_{1,t}(p)\). The Weil bound gives \(|K_C(n)|\le\tau(n)\). For squarefree \(n=p_1\cdots p_r\), the Chinese remainder theorem gives \begin{equation}\label{eq:crt} K_C(n)=\prod_{i=1}^r Z_i,\qquad Z_i=\Kl\big(C\overline{n/p_i}^{\,2};p_i\big). \end{equation} The Sato--Tate law \(\nu\) on \([-2,2]\) has density \((2\pi)^{-1}\sqrt{4-z^2}\). Its second moment is \(1\), and its first absolute moment is \(\rho=8/(3\pi)\). Consider disjoint prime intervals \(I_i\subset[P_i,2P_i]\) in decreasing order, with a prescribed unit class modulo \(m\) in each. Put \(X_0=\prod_i P_i\asymp X\), \(b_i=\log P_i/\log X_0\), and \(b(I)=\sum_{i\in I}b_i\). We take \(r\) fixed and \(\mathbf b\) in compact subsets of \(b_1>\cdots>b_r>0\), away from the equality cases below. In each such subset the nonconstant Chebyshev tests below have sums \(O(X^{1-\eta})\) for some \(\eta>0\), uniformly in the residue restrictions and \(C\) with \(p_i\nmid C\). Thus the limiting assertions hold on boxes containing \(\gg X^{1-\eta/2}\) tuples. Expectations are uniform averages over one box. \begin{lemma}\label{lem:blocks} The coordinates \((Z_i)_{i\in I}\) have limiting law \(\nu^{\otimes |I|}\) if \begin{equation}\label{eq:blocks} b(I)<\tfrac12 \quad\text{or}\quad \tfrac12 b_j2\). For \(k\ge1\) the symmetric power is geometrically irreducible of rank \(k+1\) and bounded conductor. Its complete sums against every multiplicative character are \(O_k(\sqrt p)\), uniformly for \(C\not\equiv0\bmod p\), by the trace formula and Deligne's bound~\cite[Lemma~3.2, (3.3)]{Xi20}. For the first inequality in \eqref{eq:blocks}, put the degree-zero coordinates in the complement and write \(q=\prod_{i\in I}p_i\asymp Q\), \(u=n/q\asymp M\) for the resulting blocks. Chinese remaindering gives multiplicative Fourier coefficients \(O(q^{-1/2})\) for the test as a function of \(u\bmod q\). The principal coefficient gives a saving of order \(Q^{-1/2}\). A character of conductor \(\ell\mid q\) agrees with its inducing primitive character on the support of \(u\), since the prime intervals are disjoint. In a range \(\ell\asymp D\) there are \(O(Q/D)\) possible \(q\) for each conductor. The coefficient is \(O(D^{-1/2})\). With \(\gamma_u\) the indicator of the product of the complementary primes, Cauchy--Schwarz and the multiplicative large sieve~\cite[Theorem~25.15]{Kouk} give the bound \[ \frac{Q}{D^{3/2}}\sum_{\ell\asymp D}\ \sum_{\chi\bmod\ell}^{\rm prim} \left|\sum_u\gamma_u\chi(u)\right| \ll \frac{Q}{\sqrt D}(M+D^2)^{1/2}\|\gamma\|_2 \ll QM\sqrt{D^{-1}+D/M}. \] Here \(\|\gamma\|_2\ll\sqrt 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 \eqref{eq:blocks}. The \(O(\log X)\) conductor ranges therefore give a power saving. For the second inequality in \eqref{eq:blocks}, a test of degree zero at \(j\) reduces to the first case. Otherwise fix \(p=p_j\) and put \(v=\prod_{i\in I\setminus\{j\}}p_i\asymp N\), \(u=\prod_{i\notin I}p_i\asymp 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~\cite[Proposition~7.2]{FM} for a bounded coefficient periodic in \(u\bmod v\), with the remaining test at \(p\), gives \[ \ll MN\left(p^{-1/8}+p^{1/8}N^{-1/4}+\sqrt{N/M}\right). \] Both \(p^{1/2}1/2\). Moving any \(j\in I\) to the complement shows \(b_j\ge2t-1\), with equality excluded by the compact cuts. Since \(|I|\ge2\), the smallest \(b_j\) in \(I\) also satisfies \(t-b_j\ge b_j\). Thus \(I\) satisfies the second criterion of \eqref{eq:blocks}, and its complement satisfies the first. Cauchy--Schwarz, using the two product marginals, bounds the mean of \(|K_C|\) by \(1+o(1)\). For \(b_1>1/2\), apply Weil at \(p_1\) and use the product marginal on its complement. In all, \begin{equation}\label{eq:upper} \E |K_C|\le \begin{cases} 1+o(1),& b_1<1/2,\\ 2\rho^{r-1}+o(1),& b_1>1/2 \end{cases} \qquad(r\ge2). \end{equation} For two and three prime factors use the regions \[ \mathcal D_2=\{b_2>3b_1/4\},\qquad \mathcal D_3=\{b_2>b_1/2\},\qquad \mathcal S=\{b_3>b_1/2\}\subset\mathcal D_3. \] On \(\mathcal D_2\), Lemma~\ref{lem:blocks} gives the law of \(Z_2\). To test \(Z_1\), fix \(p_1=p\) and sum over \(p_2\). Expanding a residue-class indicator modulo \(m\) gives additive phases with total coefficient norm one. For each phase write \(e(vp_2/m)=e(kp_2/p)e(\theta p_2)\) with \(|\theta|\le1/(2p)\). The first twist preserves the bounded conductor and geometric irreducibility of rank \(k'+1\ge2\) for a test of degree \(k'\). At endpoints \(y\asymp P_2\), the prime trace estimate~\cite[Theorem~1.5, (1.3)]{FKM} is \(O_{k',\gamma}(y(1+p/y)^{1/12}p^{-\gamma/2})\) for \(\gamma<1/24\). It saves a power for \(P_2>p^{3/4}\) with a power margin. Differencing the endpoints and applying partial summation to \(e(\theta p_2)\) costs \(O(1+P_2/p)\). On \(\mathcal D_3\), the pair \(\{2,3\}\) satisfies \eqref{eq:blocks} with \(j=3\), since \(b_3/2b_1/2\). The other terms, \(p_1^{-1/4}\) and \(P_3^{-1/2}\), do so as well. This gives the law of \(Z_1\) and the product law for \(Z_2,Z_3\) as separate marginals. Matom\"aki's rearrangement bound~\cite[Lemma~2.3]{Matomaki} 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~\cite[\S4.2]{Xi15}, multiplied by \(4\) and \(8\), give \begin{equation}\label{eq:lower} \E |K_C|\ge c_2-o(1)\quad\text{on }\mathcal D_2,\qquad \E |K_C|\ge c_3-o(1)\quad\text{on }\mathcal D_3,\qquad (c_2,c_3)=(0.44416,0.28448). \end{equation} On \(\mathcal S\), also \(\{1,3\}\) satisfies \eqref{eq:blocks} with \(j=1\) because \(b_1/2\cdots>b_r>0,\ \sum_i b_i=1\}\) put \[ \dd\mu_r=\frac{\dd b_2\cdots\dd b_r}{\prod_i b_i}, \qquad D_rH(\mathbf b)=\sum_{I\subseteq\{1,\ldots,r\}}(-1)^{|I|}H(b(I)). \] Take \(\mu_1\) to have unit mass at \(b_1=1\). Following the logarithmic centering in Drappeau and Maynard~\cite[\S2 and (4.5)]{DM}, set \begin{equation}\label{eq:profile} H=\frac{43H_2+17H_3}{60},\qquad H_j(t)=(1/2-t)_+^j . \end{equation} If \(r\equiv j\bmod 2\), pairing complementary subsets shows that \(2D_rH_j\) is the \(r\)-th difference of the polynomial \((1/2-t)^j\). Thus \(D_rH_j=0\) when also \(r>j\). For \(b_1>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 \(D_rH_j=0\) for \(r\ge j+2\). For \(r\le3\) the differences are nonnegative. In rank one \(D_1H_j=H_j(0)\). In ranks two and three the differences are \[ \begin{array}{c@{\qquad}cc} & H_2 & H_3\\ \midrule r=2 & b_1b_2 & 1/8-(1/2-b_2)^3\\[2pt] r=3 & \begin{cases}2b_2b_3,&b_1\ge1/2,\\ 1/2-\sum_i b_i^2,&b_1\le1/2\end{cases} & 3b_1b_2b_3 . \end{array} \] Define the lower contributions \[ E_j=c_2\int_{\mathcal D_2}D_2H_j\dd\mu_2,\qquad O_j=c_3\int_{\mathcal D_3}D_3H_j\dd\mu_3+ (c_2\rho-c_3)\int_{\mathcal S}D_3H_j\dd\mu_3 . \] On \(\mathcal D_2\) we have \(01/2\) contributes \(2\log(4/3)-1/2\) to the integral. Indeed, with \(z=b_3\), the inner integral of \(2/(1-z-b_2)\) over \((1-z)/30\\\sum_i x_i=1}}(1+3e_3)\dd x_2\dd x_3 =\frac7{80}, \] using \(e_2\le1/3\). The \((b_2,b_3)\)-areas of \(\mathcal D_3\) and \(\mathcal S\) are \(1/24\) and \(1/120\). Integrate from \(\max(b_3,(1-b_3)/3)\) or \(\max(b_3,1-3b_3)\) to \((1-b_3)/2\), respectively, wherever the interval is nonempty. The region \(\mathcal S\) lies in \(b_1<1/2\). Consequently \begin{equation}\label{eq:odd} \begin{split} O_2&\ge c_3\big(2\log(4/3)-33/80\big)+(c_2\rho-c_3)/30,\\ O_3&=c_3/8+(c_2\rho-c_3)/40 . \end{split} \end{equation} Write \(V_{r,j}=\int_{\Delta_r}|D_rH_j|\dd\mu_r\). Above three factors the quadratic weight contributes only on odd \(r\) in \(b_1\le1/2\). The cubic weight contributes only on even \(r\), and only for \(r=4\) can it contribute in \(b_1>1/2\). There \(D_4H_3=6b_2b_3b_4\), and its integral is \(\frac12\int_{1/2}^1(1-x)^2\dd x/x=(\log 2-5/8)/2\). Since \(2\rho^3<1.224\), the upper bounds in \eqref{eq:upper} give the following costs for \(r\ge4\). The inequalities are proved in Appendix~\ref{sec:bounds}. \begin{align} T_2&=\sum_{\substack{r\ge5\\r\text{ odd}}}V_{r,2}<0.0642, \label{eq:t2}\\ T_3&=\sum_{\substack{r\ge4\\r\text{ even}}}V_{r,3} +0.224\,(\log 2-5/8)/2<0.0958. \label{eq:t3} \end{align} For parity multipliers \(1+w\) and \(1-w\), the lower contribution from \(r\le3\) minus the upper contribution from \(r\ge4\) is at least \begin{equation}\label{eq:gap} (1+w)\frac{43E_2+17(E_3-T_3)}{60} +(1-w)\frac{43(O_2-T_2)+17O_3}{60} > 0.00022\qquad(-1\le w\le1). \end{equation} Indeed the two coefficients exceed \(0.00011\) and \(0.00013\), respectively, by \eqref{eq:even}--\eqref{eq:t3}. For the rational comparisons use \(\rho>28/33\) and three terms each of \(2\operatorname{arctanh}(1/7)\) and \(2\operatorname{arctanh}(1/15)\). The disjoint parities above three factors allow the absolute values in \eqref{eq:t2} and \eqref{eq:t3} to be used directly for \(H\). \section{Intervals and progressions} Let \(J=(X,X+Y]\), \(L=\log X\), and \(M_0=Y/(\varphi(m)L)\). Set \(C=AB\). We will choose \(\alpha<\epsilon\), so \(P^-(n)>X^\epsilon\) ensures \((n,AB)=1\). On those integers, substituting \(y=Ax\bmod n\) gives \(K_{A,B}(n)=K_C(n)\). \subsection{Smoothing and signed cancellation} Fix a smooth cutoff \(\psi\) with values in \([0,1]\), zero for \(v\le2\) and one for \(v\ge3\). For \(00),\qquad F(s)=\int_0^\infty e^{-su}f(u)\dd u\quad(s>0). \] Then \(F(s)\le1/s\). Integrating over successive periods of \(2|\sin(u/2)|\) gives \begin{equation}\label{eq:fprime} -F'(s)=\frac{\coth(\pi s)}{s^2+1/4},\qquad -sF'(s)\le4/\pi. \end{equation} The inequality follows from \(x\coth x\le 1+x^2/3\), by comparing coefficients in \(x\cosh x\le(1+x^2/3)\sinh x\), and \(\pi^2<12\). \begin{lemma}\label{lem:smooth} For \(j=2,3\), \[ \sum_{r\ge1}\int_{\Delta_r}|D_r(H_j-H_{j,h})|\dd\mu_r\ll h^{j-4/\pi}. \] \end{lemma} \begin{proof} The defect is a translate and rescaling of \(h^j v_+^j(1-\psi(v))\), so its Fourier transform is \(O(h^{j+1}(1+h|t|)^{-j-1})\). The absolute finite-difference factor at frequency \(t>0\) is \(\prod_i2|\sin(tb_i/2)|\). On the full simplex its integral against \(\prod_i b_i^{-1}\dd b_2\cdots\dd b_r\) is \(t f^{*r}(t)\), by \(u_i=tb_i\), with convolution on \(\mathbb R_+\). The ordered integral is \(1/r!\) times this. Thus Fourier inversion bounds the sum by \[ \ll h^{j+1}\int_0^\infty\frac{tG(t)}{(1+ht)^{j+1}}\dd t,\qquad G(t)=\sum_{r\ge1} f^{*r}(t)/r! . \] By \eqref{eq:fprime}, \(F(1/T)\le(4/\pi)\log T+O(1)\) for \(T\ge1\). The Laplace transform of \(G\) is \(e^{F(s)}-1\), so \(\int_0^T G(t)\dd t\le e(e^{F(1/T)}-1)\ll T^{4/\pi}\). The range \(t\le1/h\) and the dyadic ranges above it give the stated bound, as \(j>4/\pi\). \end{proof} Set \(W_h(n)=\sum_{d\mid n}\mu(d)H_h(\log d/\log n)\) for \(n\in(X,2X]\). Nonzero terms have \(d\le(2X)^{1/2-2h}\le X^{1/2-h}\) for large \(X\). \begin{lemma}\label{lem:signed} For fixed \(0X^{h/5}\) the Weil and divisor bounds give at most \(X^{o(1)}\sum_{X^{h/5}X^\epsilon\), we have \begin{equation}\label{eq:roughsigned} \left|\sum_{n\in\mathcal N}W_h(n)K_C(n)\right| \le \bigl(O_h(\epsilon)+o(1)\bigr)M_0. \end{equation} \subsection{Prime counts in boxes} For fixed \(\epsilon\) there are at most \(R=\lceil 2/\epsilon\rceil\) prime factors in \(\mathcal N\). Partition the prime variables into bins \((P,P(1+\Delta)]\) with \(\Delta=X^{-\xi}\), and take \(\sigma<\xi\). For each \(m\), denote its possible exceptional real character and zero by \(\chi_*\) and \(\beta\), in the sense of Thorner and Zaman~\cite[Theorem~1.1]{TZ}. In a reduced class \(u\bmod m\), for any fixed tolerance \(\zeta>0\) the count in a bin is \begin{equation}\label{eq:pnt} \frac{B_P}{\varphi(m)}(1-\chi_*(u)t_P)(1+O(\zeta)),\qquad B_P=\int_P^{P(1+\Delta)}\frac{\dd v}{\log v},\qquad t_P=\frac1{P\Delta}\int_P^{P(1+\Delta)}v^{\beta-1}\dd v. \end{equation} The exceptional term is absent when there is no such zero. To apply the estimate at \(P\gg X^\epsilon\), use \(1-\chi_*(u)t_P\gg m^{-1/2}\) by \cite[(1.2)]{TZ}. The weighted length divided by \(\varphi(m)\) exceeds \((P(1+\Delta))^{32/37+\eta_0}\) if \(\xi+3\delta/2<\epsilon(1-32/37-\eta_0)\), for fixed sufficiently small \(\eta_0>0\). The denominator in the exponential error is \(\log m+O(L^{2/3}(\log L)^{1/3})\), giving tolerance \(\zeta\) after decreasing \(\delta\). Division by \(\log P\) 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 \(\gg X^{1-r(\xi+3\delta/2)}L^{-r}\) tuples for every prescribed pattern of unit classes. Taking \(R(\xi+3\delta/2)<\eta/2\) makes this sufficient for the uniform trace estimates of Section~\ref{sec:boxes} on each compact region there. Summing the modeled counts over unit patterns \(u_1\cdots u_r=a\bmod m\) gives the density factor \[ \frac1{\varphi(m)^{r-1}}\sum_{u_1\cdots u_r=a} \prod_i(1-\chi_*(u_i)t_{P_i}) =1+(-1)^r\chi_*(a)\prod_i t_{P_i}. \] 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 \(\chi_*(a)\). The errors in \eqref{eq:pnt} cost \(O_R(\zeta)\) in this factor, since each slot multiplier is at most two. Moreover \(\prod_i t_{P_i}=X^{\beta-1}+O_R(1/L)\), by averaging \((\prod_i v_i)^{\beta-1}\) and using \(\sup_{0\le t\le1}tX^{-t}\ll1/L\) with \(\prod_i v_i\asymp X\). Write \(w=\chi_*(a)X^{\beta-1}\), with \(w=0\) when the exceptional term is absent. For decreasing prime factors put \(\mathbf b(n)=(\log p_i/\log n)_{i=1}^r\). The change of variables \(z=\prod_i v_i\), \(b_i=\log v_i/\log z\), gives \begin{equation}\label{eq:jacobian} \prod_i\frac{\dd v_i}{\log v_i}=\frac{\dd z}{\log z}\dd\mu_r . \end{equation} Each squarefree integer has one decreasing tuple. Summing \(\prod_i B_{P_i}\) corresponds to integrating \eqref{eq:jacobian}, giving total mass \(O_\epsilon(Y/L)\) for the boxes meeting \(J\). The boxes crossing an endpoint lie in product strips of width \(O_R(X\Delta)\), so their class count is \(O_{R,\epsilon}(X\Delta/(\varphi(m)L))=o(M_0)\). The cutoff is \(b_r>\epsilon+O_\epsilon(1/L)\). At fixed \(\epsilon\), strips about the comparison hyperplanes have arbitrarily small \(\mu_r\)-measure. In such strips count by \eqref{eq:pnt}, allowing all tuples in coincident bins, and use \(|K_C|\le2^R\). Off these strips, freeze the weights within each bin and sum \eqref{eq:pnt}. A fixed bounded, piecewise continuous weight in \(\mathbf b(n)\) then contributes its integral over \(\Delta_r\cap\{b_r>\epsilon\}\) times \(M_0(1+(-1)^r w)\), up to an arbitrarily small fixed error times \(M_0\) and \(o(M_0)\). For a nonnegative weight multiplied by \(|K_C|\), insert the corresponding bounds of Section~\ref{sec:boxes}. In particular the ordinary count satisfies \(|\mathcal N|\ll_\epsilon M_0\). \subsection{Counting each sign} On \(\mathcal N\) let \(W(n)=D_rH(\mathbf b(n))\), where \(r=\omega(n)\). The smoothed weight \(W_h(n)\) is the same finite difference with \(H_h\). Since the box means of \(|K_C|\) are at most \(2+o(1)\), including the Weil bound at \(r=1\), and \(1+(-1)^r w\le2\), the comparison applied to \(|D_r(H-H_h)|\) costs at most \[ 4M_0\sum_{r\ge1}\int_{\Delta_r}|D_r(H-H_h)|\dd\mu_r \] up to the fixed tolerance and \(o(M_0)\). Lemma~\ref{lem:smooth} bounds this by \(O(h^{2-4/\pi}M_0)\). Choose \(h\) first to make the smoothing error small compared to \eqref{eq:gap}. Then choose \(\epsilon\) to make \(O_h(\epsilon)\) in \eqref{eq:roughsigned} and the loss from \(b_r\le\epsilon\) in the lower integrals small. The latter follows from \eqref{eq:even} and the bounded triple quotients \(D_3H_j/\prod b_i\), since \(0\le D_3H_2\le2b_2b_3\) and \(b_1\ge1/3\). Fix the compact regions and the tolerance next. Finally choose the exponents \(\xi,\delta,\sigma,\alpha>0\) satisfying the previous strict inequalities and \(\alpha<\epsilon\). Write \(A_{\le3}\) and \(A_{\ge4}\) for the sums of \(|W K_C|\) on \(\mathcal N\) with the indicated numbers of prime factors, and \(S\) for the full sum of \(W K_C\) on \(\mathcal N\). By \eqref{eq:gap}, \eqref{eq:roughsigned}, and the bounds for smoothing and transfer, \[ A_{\le3}-A_{\ge4}-|S|\gg M_0 . \] Let \(S_{\le3}\) be the signed sum over at most three prime factors. On these integers \(W\ge0\), and the weighted absolute mass of sign \(s\) is \[ \tfrac12(A_{\le3}+sS_{\le3}) \ \ge\ \tfrac12(A_{\le3}-A_{\ge4}-|S|) \ \gg\ M_0 . \] Here \(|S_{\le3}|\le A_{\ge4}+|S|\). The bound \(|\mathcal N|\ll_\epsilon M_0\), together with boundedness of \(W\) on the first three ranks, permits discarding \(|K_C|\le\kappa\) for a sufficiently small fixed \(\kappa>0\). Each remaining summand on these ranks is bounded by a constant, by \(|K_C|\le8\). This proves Theorem~\ref{thm:main}. \appendix \section{Bounds for the simplex integrals}\label{sec:bounds} If \(r\ge j+1\) has the parity of \(j+1\), Fourier inversion gives \(D_rH_j\), up to a sign, as \begin{equation}\label{eq:fourier} \frac{j!}{\pi}\int_0^\infty t^{-j-1}\prod_i2\sin(tb_i/2)\dd t . \end{equation} Indeed the \((j+1)\)-st distributional derivative of \(H_j\) 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 \(t f^{*r}(t)/r!\) for the absolute sine product, as in Lemma~\ref{lem:smooth}. The Laplace integral for \(t^{-j}\) and Tonelli's theorem yield \begin{equation}\label{eq:laplace} V_{r,j}\le\frac{j}{\pi r!}\int_0^\infty s^{j-1}F(s)^r\dd s. \end{equation} Convergence follows from \(F(s)\le1/s\) and \eqref{eq:fprime}. \subsection{Three exact integrals} Inclusion and exclusion gives \(D_rH_j/(j!\prod b_i)\) as the \((r-1-j)\)-th derivative at zero of the density of the sum of independent uniforms on \([-b_i/2,b_i/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 \(D_4H_3\ge0\), \(D_5H_2\le0\), and \(D_6H_3\le0\). Integrate the signed kernel in \eqref{eq:fourier} at these pairs to obtain equality in \eqref{eq:laplace} with \(F(s)\) replaced by \(2\arctan(1/(2s))\). Let \(B_k=\int_0^{\pi/2}u^k\cot u\dd u\). Substituting \(s=\tfrac12\cot u\) and integrating by parts gives \[ V_{4,3}=\frac{3B_1-B_3-\pi^3/16}{3\pi},\qquad V_{5,2}=\frac{80B_3-\pi^5/8}{60\pi},\qquad V_{6,3}=\frac{10B_3-B_5-\pi^5/64}{15\pi}. \] For \(k=1,3,5\), integrate \(u^k\cot u\) by parts and use the Abel limit of the Fourier series for \(\log(2\sin u)\) to obtain \[ B_1=\frac{\pi\log2}{2},\qquad B_3=\frac{\pi^3\log2}{8}-\frac{9\pi}{16}\zeta(3),\qquad B_5=\frac{\pi^5\log2}{32}-\frac{15\pi^3}{32}\zeta(3) +\frac{225\pi}{64}\zeta(5). \] These give \(V_{4,3}<0.081300\), \(V_{5,2}<0.035710\), and \(V_{6,3}<0.004908\), using \(3.14159<\pi<3.14160\) from Machin's formula, eight terms of the \(\operatorname{arctanh}\) series for \(\log 2\), and the first \(100\) terms of the zeta series with their integral-test remainders. Also \((\log2-5/8)/2<0.034074\). \subsection{Quadratic second moments} For odd \(r\ge7\) put \(s=4/r\) and \[ I_r=\int_0^1\frac{((1+u)^s-(1-u)^s)^r}{u^3}\dd u,\qquad p_r=\frac{r}{\mathrm B(4-s,s)}\int_0^{1/2}v^{3-s}(1-v)^{s-1}\dd v. \] Apply Cauchy--Schwarz to \(r!V_{r,2}\) on the full simplex with squared factors \(\prod_i b_i^{s-1}\) and \(|D_rH_2|^2\prod_i b_i^{-1-s}\). The first may be integrated over \(\max b_i\le1/2\), since \(D_rH_2\) vanishes elsewhere. Its integral is \((1-p_r)\Gamma(s)^r/6\), since the excluded events \(b_i>1/2\) are disjoint and \(1-b_i\) has beta law \(\mathrm B(4-s,s)\) under the Dirichlet probability density. For the second integral, put \(x_i=b_i/b_r\) for \(im\) bounded geometrically. On \(s\ge16\), \(F(s)\le1/s\) gives \(R_m(F(s))\le 2s^{-m}/m!\). The resulting rational comparisons are \[ \frac{j}{\pi_-}\left( B_{j,m}+\int_b^{16}s^{j-1}L_m(s)\dd s+ \frac{2\cdot16^{j-m}}{m!(m-j)}\right) < \begin{cases} 0.00027,&(j,m)=(2,19),\\ 0.00192,&(j,m)=(3,8). \end{cases} \] The middle integral is a sum over the \(64\) cells. With the finite contributions this gives \eqref{eq:t2} and \eqref{eq:t3}. \par\medskip\noindent\textbf{Acknowledgment.}\enspace The author used OpenAI's GPT-6.2 Astra to formulate the results, develop and review the proofs, and draft the manuscript. \begin{thebibliography}{99} \bibitem{DM} S. Drappeau and J. Maynard, \href{https://doi.org/10.1090/proc/14239}{Sign changes of Kloosterman sums and exceptional characters}, \emph{Proc. Amer. Math. Soc.} 147 (2019), 61--75. \bibitem{FKM} \'E. Fouvry, E. Kowalski and P. Michel, \href{https://doi.org/10.1215/00127094-2690587}{Algebraic trace functions over the primes}, \emph{Duke Math. J.} 163 (2014), 1683--1736. \bibitem{FM} \'E. Fouvry and P. Michel, \href{https://doi.org/10.4007/annals.2007.165.675}{Sur le changement de signe des sommes de Kloosterman}, \emph{Ann. of Math.} (2) 165 (2007), 675--715. \bibitem{Katz} N. M. Katz, \emph{Gauss Sums, Kloosterman Sums, and Monodromy Groups}, Ann. of Math. Stud. 116, Princeton University Press, 1988. \bibitem{Kouk} D. Koukoulopoulos, \href{https://doi.org/10.1090/gsm/203}{The Distribution of Prime Numbers}, Grad. Stud. Math. 203, American Mathematical Society, 2019. \bibitem{Matomaki} K. Matom\"aki, \href{https://doi.org/10.24033/bsmf.2609}{A note on signs of Kloosterman sums}, \emph{Bull. Soc. Math. France} 139 (2011), 287--295. \bibitem{Steiner} R. S. Steiner, \href{https://doi.org/10.1112/mtk.12232}{Kloosterman sums do not correlate with periodic functions}, \emph{Mathematika} 70 (2024), e12232. \href{https://arxiv.org/abs/2302.06409}{arXiv:2302.06409}. \bibitem{TZ} J. Thorner and A. Zaman, \href{https://doi.org/10.1007/s00209-023-03414-3}{Refinements to the prime number theorem for arithmetic progressions}, \emph{Math. Z.} 306 (2024), Paper No. 54. \bibitem{XL} Y. Xiao and H. Li, \emph{Selberg sieve weights and sign changes of Kloosterman sums. II. Square-free moduli with at most four prime factors}, \href{https://arxiv.org/abs/2609.24255v2}{arXiv:2609.24255v2}, 2026. \bibitem{Xi15} P. Xi, \href{https://doi.org/10.1007/s00605-014-0653-z}{Sign changes of Kloosterman sums with almost prime moduli}, \emph{Monatsh. Math.} 177 (2015), 141--163. \bibitem{Xi20} P. Xi, \href{https://doi.org/10.1007/s00222-019-00924-y}{When Kloosterman sums meet Hecke eigenvalues}, \emph{Invent. Math.} 220 (2020), 61--127. \end{thebibliography} \end{document}