\section{The quadratic twist and the centered sums} \label{sec:analytic-setup} \teamanchor{proof.weighted-twist}% Fix \(M=18480\) and an integer \(k\ge13\), and put \begin{equation}\label{eq:analytic-precision} \Delta=\frac1k,\qquad \beta_k=\frac12+\Delta,\qquad \varepsilon=\varepsilon_k=\frac{1}{16k}. \end{equation} Write \(\Lambda\) for the von Mangoldt function, \(\varphi\) for Euler's totient function, and \(v_+=\max(v,0)\) for real \(v\). \subsection{Fixed progressions and the boundary of the strip} \teamanchor{proof.fixed-modulus-pnt}% \begin{lemma}[Prime number theorem in a fixed progression] For each fixed positive integer \(u\), each reduced class \(r\bmod u\) and each \(B>0\), as real \(t\to\infty\), \begin{equation}\label{eq:weighted-fixed-pnt} \sum_{\substack{n\le t\\ n\equiv r\bmod u}}\Lambda(n) =\frac{t}{\varphi(u)}+O_{u,B}\bigl(t(\log t)^{-B-1}\bigr). \end{equation} \end{lemma} \begin{proof} For \(2\le u\le\log t\), take the logarithmic range exponent equal to one in the Siegel--Walfisz theorem. This and the prime number theorem for \(u=1\) bound the error by \(O(te^{-c\sqrt{\log t}})\) for some \(c>0\) \cite[Corollary~11.19, p.~381, and Theorem~6.9, (6.12), p.~179]{z6montgomery-vaughan}. The range eventually includes each fixed \(u\), and \(e^{-c\sqrt{\log t}}\ll_B(\log t)^{-B-1}\). \end{proof} \teamanchor{proof.centered-ramp-count}% For \(|b(n)|\ll\Lambda(n)\) and a constant \(a_b\), set \[ A_b(t)=\sum_{n\le t}b(n),\qquad H_b(t)=A_b(t)-a_b t,\qquad D_b(s)=\sum_{n\ge1}b(n)n^{-s}\quad(\Re s>1), \] and for \(y\ge1\) and a constant \(c\) write \[ \mathcal R_b(y)=\sum_{n\ge1}b(n)(1/n-1/y)_+-a_b\log y-c . \] Integrating the step function \(A_b\) gives \begin{equation}\label{eq:common-ramp-count} \mathcal R_b(y)+c=\int_1^y H_b(t)t^{-2}\,dt,\qquad \int_1^\infty H_b(t)t^{-s-1}\,dt =\frac{D_b(s)}{s}-\frac{a_b}{s-1}\quad(\Re s>1). \end{equation} In the integral up to \(y\), each term \(b(n)\) with \(n\le y\) is integrated over \([n,y]\). In the integral up to infinity the interval for each term is \([n,\infty)\), and \(\sum_n |b(n)|n^{-\sigma}/\sigma<\infty\) for \(\sigma=\Re s>1\) justifies exchanging the sum and integral. The integral up to \(y\) gives continuity on \([1,\infty)\) and \(\mathcal R_b(1)=-c\). \teamanchor{proof.mellin-ramp-kernel}% Put \(C_b(s)=D_b(s)-a_b s/(s-1)\). For \(\sigma=\Re s>1\), the integral of \(|H_b(t)|t^{-2}y^{-\sigma}\) over \(1\le t\le y\) is \((\sigma-1)^{-1}\int_1^\infty |H_b(t)|t^{-\sigma-1}\,dt\), which is finite since \(H_b(t)=O(t\log(2t))\). Integrating the first identity of \eqref{eq:common-ramp-count} against \(y^{-s}\), with the \(y\)-integral first, and using the second identity gives \begin{equation}\label{eq:common-ramp-mellin} \int_1^\infty y\mathcal R_b(y)y^{-s-1}\,dy =\frac{-c+\int_1^\infty H_b(t)t^{-s-1}\,dt}{s-1} =\frac{C_b(s)/s-c}{s-1}. \end{equation} If \(C_b\) is holomorphic at \(1\) and \(c=C_b(1)\), the last expression is holomorphic at \(1\). \teamanchor{proof.centered-ramp-tail}% Suppose \(\int_1^\infty |H_b(t)|t^{-2}\,dt<\infty\). The identity \[ C_b(s)=s\int_1^\infty H_b(t)t^{-s-1}\,dt \qquad(\Re s>1) \] extends \(C_b\) continuously to \(\Re s\ge1\) by dominated convergence, with \(C_b(1)=\int_1^\infty H_b(t)t^{-2}\,dt\). With \(c=C_b(1)\), \eqref{eq:common-ramp-count} gives \begin{equation}\label{eq:common-ramp-tail} \mathcal R_b(y)=-\int_y^\infty H_b(t)t^{-2}\,dt . \end{equation} \teamanchor{proof.dirichlet-zero-free-line}% Extend each character \(\xi\bmod u\) by zero on the nonunits modulo \(u\). Write \(\delta_\xi=1\) for the principal character and \(\delta_\xi=0\) otherwise. Define \(\widetilde L_\xi(s)=(s-1)^{\delta_\xi}L(s,\xi)\). For every character of modulus \(u\), the Euler product \(\prod_p(1-\xi(p)p^{-s})^{-1}\) converges absolutely to \(L(s,\xi)\ne0\) on \(\Re s>1\). A nonprincipal character has entire \(L\)-function. For the principal character the only pole is simple, at \(1\), with residue \(\varphi(u)/u\) \cite[\S25.15(i), (25.15.1)--(25.15.2)]{dlmf}. Thus \(\widetilde L_\xi\) extends holomorphically across \(1\). At modulus one the Laurent expansion is \(\zeta(s)=(s-1)^{-1}+\gamma+O(s-1)\), where \(\gamma\) is Euler's constant \cite[(25.2.4)--(25.2.5)]{dlmf}. Differentiating the Euler product gives, for \(\Re s>1\), \begin{equation}\label{eq:common-character-series} \sum_{n\ge1}\frac{\Lambda(n)\xi(n)}{n^s} =-\frac{L'(s,\xi)}{L(s,\xi)} =\delta_\xi\frac{s}{s-1} -\frac{\widetilde L_\xi'(s)}{\widetilde L_\xi(s)}-\delta_\xi . \end{equation} \teamanchor{proof.fixed-character-count}% Let \(H_\xi(t)=\sum_{n\le t}\Lambda(n)\xi(n)-\delta_\xi t\). Summing \eqref{eq:weighted-fixed-pnt} against \(\xi\) gives \(H_\xi(t)=O_{u,B}(t(\log t)^{-B-1})\) for each \(B>0\). Apply the \hyperlink{proof.centered-ramp-tail}{continuous extension of \(C_b\)} with \(b=\Lambda\xi\) and \(a_b=\delta_\xi\). Then \(C_b=-\widetilde L_\xi'/\widetilde L_\xi-\delta_\xi\) has finite boundary values. A zero of \(\widetilde L_\xi\) on \(\Re s=1\) would give its logarithmic derivative a pole there. Hence \(\widetilde L_\xi\) is nonzero on \(\Re s\ge1\). \subsection{A single prime for the twisted characters} \teamanchor{proof.weighted-twist-density}% \begin{proposition}\label{prop:common-quadratic-twist} There is a prime \(d=d_k\equiv9239\bmod M\) such that, for \(\chi_d(n)=(n/d)\) and all \(\xi\bmod M\), \begin{equation}\label{eq:weighted-twist-free} L(s,\xi\chi_d)\ne0 \qquad\bigl(\Re s\ge\beta_k,\ |\Im s|\le k\bigr). \end{equation} Here \(\xi\chi_d\) is taken at modulus \(Md\). The prime satisfies \(d\equiv7\bmod8\), \(M\mid 2(d+1)\) and \(M\nmid d+1\). \end{proposition} \begin{proof} Let \(r_0=M/2-1=9239\). Since \(16\mid M\), one has \(r_0^2\equiv1\bmod M\), and every prime in this class has the stated congruences. \teamanchor{proof.coprime-character-product}% If two primitive characters have coprime conductors \(f_1,f_2\), their product is primitive modulo \(f_1f_2\). By the Chinese remainder theorem, descent to a proper divisor would force one factor to descend to a proper divisor of its own conductor. \teamanchor{proof.dirichlet-change-of-conductor}% If a character \(\eta\bmod u\) is induced from a primitive \(\eta^*\) of conductor \(f_\eta\), their Euler products give \begin{equation}\label{eq:common-character-conductor} L(s,\eta)=L(s,\eta^*)\prod_{\substack{p\mid u\\p\nmid f_\eta}} (1-\eta^*(p)p^{-s}). \end{equation} The finite factors are nonzero on \(\Re s>0\) since \(|\eta^*(p)p^{-s}|<1\) there. The identity holds by continuation throughout that half-plane. \teamanchor{proof.weighted-twist-conductor}% Fix \(\xi\bmod M\), with primitive associate \(\xi^*\) of conductor \(f_\xi\mid M\). For a prime \(d\equiv r_0\bmod M\), the Legendre symbol \(\chi_d\) is real and primitive of conductor \(d\). By the coprime-conductor argument, \(\psi_d=\xi^*\chi_d\) is primitive of conductor \(q=f_\xi d>1\) and induces the nonprincipal character \(\xi\chi_d\bmod Md\). By \eqref{eq:common-character-conductor}, \(L(s,\xi\chi_d)\) and \(L(s,\psi_d)\) have the same zeros on \(\Re s>0\). The Euler product excludes zeros on \(\Re s>1\). \teamanchor{proof.weighted-twist-exceptions}% For integers \(X\ge3\) let \(\mathcal P_X\) be the primes up to \(X\) in the class \(r_0\). Let \(\mathcal B_{\xi,X}\) be those \(d\in\mathcal P_X\) for which \(L(s,\psi_d)\) has a zero in the box \(\beta_k\le\Re s\le1,\ |\Im s|\le k\). We show that \(\#\mathcal B_{\xi,X}\ll_{M,k} X^{1-\Delta^2/16}\). \teamanchor{proof.weighted-mollified-zero-test}% Put \(U=\lfloor X^{\Delta/4}\rfloor\), \(P=\lfloor X/U\rfloor\) and \(N=UP\le X\). Since \(U^2\le X\), we have \(P\ge U\). For a primitive character \(\psi\) of conductor \(q>1\), the P\'olya--Vinogradov inequality \cite[(9.16), p.~307]{z6montgomery-vaughan} gives \(\lvert A_\psi(t)\rvert\le\sqrt q\log q\), where \(A_\psi(t)=\sum_{n\le t}\psi(n)\). For \(\Re s>0\), partial summation gives \[ L(s,\psi)-\sum_{n\le P}\psi(n)n^{-s} =-A_\psi(P)P^{-s}+s\int_P^\infty A_\psi(t)t^{-s-1}\,dt . \] At a zero \(\rho\) of \(L(s,\psi_d)\) in the box, \(q\le MX\), \(\Re\rho\ge\beta_k\) and \(|\rho|\ll_k1\), so the truncated series at \(\rho\) is \(O_{M,k}(X^{1/2}P^{-\beta_k}\log(2X))\). The finite sum \(\mathcal M_U(s,\psi_d)=\sum_{m\le U}\mu(m)\psi_d(m)m^{-s}\), with \(\mu\) the M\"obius function, satisfies \(|\mathcal M_U(\rho,\psi_d)|\ll_k U^{1-\beta_k}\). Since \(P\asymp X/U\), its product with the truncated series at \(\rho\) is \[ O_{M,k}\bigl(X^{-\Delta}U\log(2X)\bigr) =O_{M,k}\bigl(X^{-3\Delta/4}\log(2X)\bigr). \] The coefficient of \(n^{-s}\) in the product is \(b_{U,P}(n)\psi_d(n)\), where \[ b_{U,P}(n)=\sum_{\substack{m\mid n\\m\le U,\ n/m\le P}}\mu(m). \] It satisfies \(b_{U,P}(1)=1\), \(b_{U,P}(n)=0\) for \(10\), that \begin{equation}\label{eq:quadratic-large-sieve} \sum_{\chi\in S(Q_0)}\left|\sum_{n\le N}a_n\chi(n)\right|^2 \ll_\eta (Q_0N)^\eta(Q_0+N) \sum_{\substack{n,m\le N\\nm\text{ a square}}}|a_n a_m|. \end{equation} Take \(Q_0=X\) and restrict the sum to the distinct \(\chi_d\). Use \(a_n=b_{U,P}(n)\xi^*(n)n^{-s}\) on \(U0\) gives \begin{equation}\label{eq:twist-mean-square} \sum_{d\in\mathcal P_X}|E_d(s)|^2 \ll_{\Delta,\omega} X^{1+\omega}U^{-\Delta/2} \qquad (\Re s\ge1/2+\Delta/2). \end{equation} Choose one zero \(\rho_d\) in the box for each \(d\in\mathcal B_{\xi,X}\). Its disk of radius \(\Delta/2\) lies in the common rectangle \[ \mathcal D=\{s:1/2+\Delta/2\le\Re s\le1+\Delta/2,\ |\Im s|\le k+\Delta/2\}. \] Expand the entire function \(E_d\) in powers of \(s-\rho_d\) and integrate on circles. The mean of \(|E_d|^2\) on the disk is at least \(|E_d(\rho_d)|^2\). Summing the disk estimates, enlarging each disk to \(\mathcal D\) and using \eqref{eq:weighted-mollified-zero-test} and \eqref{eq:twist-mean-square} yields \[ \frac{\#\mathcal B_{\xi,X}}4\le \frac{4}{\pi\Delta^2}\int_{\mathcal D} \sum_{d\in\mathcal P_X}|E_d(s)|^2\,dA(s) \ll_{M,k,\omega} X^{1+\omega}U^{-\Delta/2}. \] Here \(dA\) is planar area measure. Since \(U\asymp X^{\Delta/4}\), \(\omega=\Delta^2/16\) gives the asserted exceptional count. \teamanchor{proof.weighted-twist-choice}% The union over the finitely many \(\xi\bmod M\) has size \(O_{M,k}(X^{1-\Delta^2/16})=o(X/\log X)\). In class \(r_0\bmod M\) the estimate \eqref{eq:weighted-fixed-pnt} gives von Mangoldt weight asymptotic to \(X/\varphi(M)\). Proper prime powers contribute \(O(\sqrt X\log X)\), since their prime bases are at most \(\sqrt X\) and each contributes at most \(\log X\). As each prime contributes at most \(\log X\), there are \(\gg_M X/\log X\) primes in the class up to \(X\). For large \(X\) one can choose \(d_k\) outside the union, giving \eqref{eq:weighted-twist-free} for every \(\xi\bmod M\). \end{proof} \subsection{The centered sums} \teamanchor{proof.weighted-prime-series}% Fix a prime \(d=d_k\) as in Proposition~\ref{prop:common-quadratic-twist}. For \(Q\in\{M,1\}\) use the nonnegative weights and sums \begin{equation}\label{eq:weighted-ramp-weights} \lambda_{d,Q}(n)=\mathbf 1_{n\equiv1\bmod Q}\Lambda(n)(1-\chi_d(n)), \qquad S_{d,Q}(y)=\sum_{n\ge1}\lambda_{d,Q}(n)(1/n-1/y)_+ \quad(y\ge1). \end{equation} For either \(Q\), the primitive conductor \(f_\xi\) of a character \(\xi\bmod Q\) divides \(M\). Thus \(\xi\chi_d\) has conductor \(f_\xi d>1\) by the coprime-conductor argument, so is nonprincipal. Define \(F_{d,Q}(s)=\sum_n \lambda_{d,Q}(n)n^{-s}\) for \(\Re s>1\). Character orthogonality gives, on every integer \(n\), \[ \varphi(Q)\mathbf 1_{n\equiv1\bmod Q}(1-\chi_d(n)) =\sum_{\xi\bmod Q}\bigl(\xi(n)-(\xi\chi_d)(n)\bigr). \] At a multiple of \(d\) the twisted term vanishes, and the untwisted term is included. Equation \eqref{eq:common-character-series} gives \begin{equation}\label{eq:weighted-series} F_{d,Q}(s)=\frac{s}{\varphi(Q)(s-1)}+G_{d,Q}(s), \end{equation} where the quotient of regularized \(L\)-functions \[ \mathcal L_{d,Q}(s)= \prod_{\xi\bmod Q} \frac{\widetilde L_\xi(s)}{\widetilde L_{\xi\chi_d}(s)} \] gives the centered series by \begin{equation}\label{eq:weighted-centered-log-derivative} G_{d,Q}(s)=-\frac{1}{\varphi(Q)} \left(\frac{\mathcal L_{d,Q}'(s)}{\mathcal L_{d,Q}(s)}+1\right). \end{equation} The single untwisted principal character accounts for both the pole term and the subtraction of \(1\). Since the regularized \(L\)-functions are nonzero at \(1\), \(G_{d,Q}\) is holomorphic there. By \eqref{eq:weighted-series}, \(G_{d,Q}\) is real on the real axis to the right of \(1\). Define the real constant and the centered sum by \begin{equation}\label{eq:weighted-centered-ramp} c_{d,Q}=G_{d,Q}(1),\qquad R_{d,Q}(y)=S_{d,Q}(y)-\frac{\log y}{\varphi(Q)}-c_{d,Q}. \end{equation} At \(Q=1\) the untwisted function is \((s-1)\zeta(s)\), whose logarithmic derivative at \(1\) is \(\gamma\). Thus \begin{equation}\label{eq:weighted-modulus-one-center} \ell_d=\gamma-\Re\!\left(\frac{L'(1,\chi_d)}{L(1,\chi_d)}\right), \qquad c_{d,1}=-1-\ell_d . \end{equation} The logarithmic derivative of \(L(s,\chi_d)\) at \(1\) is real, since \(\chi_d\) is real and \(L(1,\chi_d)\ne0\). \teamanchor{proof.weighted-fixed-scale-tail}% The same character identity gives the centered count \[ H_{d,Q}(t):=\sum_{n\le t}\lambda_{d,Q}(n)-\frac{t}{\varphi(Q)} =\frac1{\varphi(Q)}\sum_{\xi\bmod Q}\bigl(H_\xi(t)-H_{\xi\chi_d}(t)\bigr). \] The \hyperlink{proof.fixed-character-count}{fixed-character estimate} bounds this by \(O_{Q,d,B}(t(\log t)^{-B-1})\) for every \(B>0\). Here \(C_b=G_{d,Q}\) for \(b=\lambda_{d,Q}\) and \(a_b=1/\varphi(Q)\), so \eqref{eq:common-ramp-tail} yields, as \(y\to\infty\), \begin{equation}\label{eq:weighted-fixed-remainder} R_{d,Q}(y)=-\int_y^\infty H_{d,Q}(t)t^{-2}\,dt =O_{Q,d,B}\bigl((\log y)^{-B}\bigr). \end{equation} \teamanchor{proof.weighted-square-scale}% With \(d=d_k\) and \(\varepsilon=\varepsilon_k<1/100\) fixed, the arithmetic construction takes any sufficiently large integer square \(x\), with the threshold depending on \(d,\varepsilon\).