alphaFeedback

You’re reading v1 — jump to latest

WorksMathematics

The Pólya–Vinogradov inequality with log⁡log⁡q\log\log q

AI contributions
  • OpenAI ChatGPT GPT SOL 6.1 Ultra
View details

Abstract

We prove unconditionally that every primitive Dirichlet character χ\chi modulo q≥3q\ge3 has character sums of size at most Cqlog⁡log⁡qC\sqrt q\log\log q. Montgomery and Vaughan proved this bound under the generalised Riemann hypothesis, and Paley showed that it is optimal. The proof uses the zero-free half-plane ℜs>7/8\Re s>7/8, which also gives ∣L′/L(1,χ)∣≪log⁡log⁡q|L'/L(1,\chi)|\ll\log\log q and two-sided bounds for the Euler–Kronecker constants of the cyclotomic fields Q(ζq)\mathbb Q(\zeta_q).

Introduction

Let χ\chi be a primitive Dirichlet character modulo q≥3q \ge3. The Pólya–Vinogradov inequality states that ∣∑n≤xχ(n)∣≪qlog⁡q\left|\sum_{n\le x}\chi(n)\right| \ll\sqrt{q}\log q uniformly in xx.1 Paley proved that the factor log⁡q\log q cannot be replaced by anything smaller than log⁡log⁡q\log\log q: for infinitely many primitive quadratic characters the maximum over xx exceeds cqlog⁡log⁡qc\sqrt{q}\log\log q.2 Montgomery and Vaughan [2] proved the upper bound qlog⁡log⁡q\sqrt{q}\log\log q under the generalised Riemann hypothesis. Without hypothesis, Granville and Soundararajan lowered the exponent of log⁡q\log q for characters of fixed odd order.3 We prove the bound of Montgomery and Vaughan for every primitive character.

Theorem 1.1. There is an absolute constant CC such that for every primitive character χ\chi modulo q≥3q \ge3 and every x≥1x \ge1,

∣∑n≤xχ(n)∣≤Cqlog⁡log⁡q.\left|\sum_{n\le x}\chi(n)\right| \le C\sqrt{q}\log\log q.

By Paley’s theorem, Theorem 1.1 is optimal up to the value of CC. The input that replaces the Riemann hypothesis is the following theorem.

Theorem 1.2 ([3]). If χ\chi is a nonprincipal Dirichlet character, then L(s,χ)≠0L(s,\chi) \ne0 for Re⁡s>7/8\operatorname{Re}s > 7/8.

Theorem 1.2 is proved, and formalised in Lean 4, in [3]. It is the only result we use without proof; everything else is proved below from first principles, and the constants are effective.

Montgomery and Vaughan use the Riemann hypothesis in one place: on the major arcs, for prime sums of the characters χψ\chi\psi twisted by additive characters, where ψ\psi runs over the characters of a small modulus rr. A power saving in these sums is enough there, and Theorem 1.2 provides one (Corollary 3.8). On the minor arcs they use their unconditional bound for exponential sums with multiplicative coefficients. A weaker form of it suffices, and we prove that form in § 4 with Selberg’s sieve as the only arithmetic input. Figure 1 shows how the parts fit together.

Structure of the proofs

Figure 1. The structure of the proofs. The left branch proves Theorem 1.1: the Fourier expansion of a character sum reduces it to the sums ∑m≤Hχ(m)e(mβ)/m\sum_{m\le H}\chi(m)e(m\beta)/m, which are bounded on the major arcs by the half-plane and on the minor arcs by bilinear forms and the sieve. The right branch proves Theorem 1.3.

The same half-plane controls the logarithmic derivative of L(s,χ)L(s,\chi) at s=1s = 1. For a number field KK write ζK(s)=c−1(s−1)−1+c0+O(s−1)\zeta_K(s) = c_{-1}(s - 1)^{-1} + c_0 + O(s - 1) near s=1s = 1; the Euler–Kronecker constant of KK is γK=c0/c−1\gamma_K = c_0/c_{-1}. Let γq\gamma_q be the Euler–Kronecker constant of Q(ζq)\mathbb{Q}(\zeta_q). For a prime qq the factorisation ζQ(ζq)(s)=ζ(s)∏χ≠χ0L(s,χ)\zeta_{\mathbb{Q}(\zeta_q)}(s)=\zeta(s)\prod_{\chi\ne\chi_0}L(s,\chi), the product over the nonprincipal characters modulo qq,4 gives

γq=γ+∑χ≠χ0L′L(1,χ),(1)\gamma_q=\gamma+\sum_{\chi\ne\chi_0}\frac{L'}{L}(1,\chi), \tag*{(1)}

where γ\gamma is Euler’s constant.

Theorem 1.3. There is an absolute constant CC with the following properties.

(i) For every nonprincipal character χ\chi modulo qq,

∣L′L(1,χ)∣≤Clog⁡log⁡q.\left|\frac{L'}{L}(1,\chi)\right|\le C\log\log q.

(ii) For every prime q≥3q\ge3, −Clog⁡qlog⁡log⁡q≤γq≤Clog⁡q-C\log q\log\log q\le\gamma_q\le C\log q.

Under the generalised Riemann hypothesis the bound (i) is classical, Ihara proved γq≤(2+o(1))log⁡q\gamma_q\le(2+o(1))\log q and Badzyan proved a lower bound of the order of (ii);5 Ford, Luca and Moree proved the two bounds of (ii) without hypothesis for a set of primes qq of density one.6 For all primes the best unconditional bound we know is ∣γq∣≪εqε|\gamma_q|\ll_\varepsilon q^\varepsilon, due to Ihara, Murty and Shimura [1]. The upper bound in (ii) needs only Chebyshev’s bound. The lower bound needs an upper bound for the prime powers n≤q17n\le q^{17} with n≡1(modq)n\equiv1\pmod q, which we obtain from Selberg’s sieve applied in dyadic blocks (Lemma 6.3).

We have not found Theorem 1.1 or Theorem 1.3 among the consequences of Theorem 1.2 drawn in [3] or in the work that followed it. The arguments work, with other constants, whenever L(s,χ)≠0L(s,\chi)\ne0 on Re⁡s>θ\operatorname{Re}s>\theta for all nonprincipal χ\chi and some fixed θ<1\theta<1.

The paper is organised as follows. Section 2 collects Chebyshev’s bounds and Selberg’s sieve. Section 3 bounds Riesz means of χΛ\chi\Lambda by a contour shift. Section 4 proves the bound for exponential sums with multiplicative coefficients, Section 5 proves Theorem 1.1 and Section 6 proves Theorem 1.3.

Preliminaries

Throughout, pp and ℓ\ell denote primes, Λ\Lambda is the von Mangoldt function, θ(x)=∑p≤xlog⁡p\theta(x)=\sum_{p\le x}\log p, ψ(x)=∑n≤xΛ(n)\psi(x)=\sum_{n\le x}\Lambda(n), e(x)=e2πixe(x)=e^{2\pi ix}, and ∥x∥\lVert x\rVert is the distance from xx to the nearest integer. We write ω(n)\omega(n) for the number of prime factors of nn, τ3(n)\tau_3(n) for the number of ordered factorisations n=abcn=abc, and P(n)P(n) for the largest prime factor of n≥2n\ge2, with P(1)=1P(1)=1.

Lemma 2.1. For x≥1x\ge1 and integers N≥2N\ge2,

(i) θ(x)≤xlog⁡4\theta(x)\le x\log4;

(ii) ψ(x)−θ(x)≤2xlog⁡x\psi(x)-\theta(x)\le2\sqrt{x}\log x and ψ(x)≤4x\psi(x)\le4x;

(iii) ∑p≤Nlog⁡pp≤log⁡N+log⁡4\sum_{p\le N}\frac{\log p}{p}\le\log N+\log4;

(iv) ∑p≤N1p≤log⁡log⁡N+10\sum_{p\le N}\frac{1}{p}\le\log\log N+10.

Proof. (i) It suffices to treat integers m≥1m\ge1, and we use induction on mm. The cases m=1,2m=1,2 are clear, and for even m>2m>2 we have θ(m)=θ(m−1)\theta(m)=\theta(m-1). Let m=2n+1m=2n+1. The primes in (n+1,2n+1](n+1,2n+1] divide (2n+1n)\binom{2n+1}{n}, and 2(2n+1n)≤22n+12\binom{2n+1}{n}\le2^{2n+1} because (2n+1n)\binom{2n+1}{n} and (2n+1n+1)\binom{2n+1}{n+1} are equal terms of the binomial expansion of (1+1)2n+1(1+1)^{2n+1}. Hence θ(2n+1)≤θ(n+1)+nlog⁡4≤(2n+1)log⁡4\theta(2n+1)\le\theta(n+1)+n\log4\le(2n+1)\log4.

(ii) We have ψ(x)−θ(x)=∑k≥2θ(x1/k)\psi(x)-\theta(x)=\sum_{k\ge2}\theta(x^{1/k}), where only k≤log⁡x/log⁡2k\le\log x/\log2 contribute. Each term is at most xlog⁡4\sqrt{x}\log4 by (i), so the sum is at most (log⁡x/log⁡2)xlog⁡4=2xlog⁡x(\log x/\log2)\sqrt{x}\log4=2\sqrt{x}\log x. Since log⁡x≤x\log x\le\sqrt{x}, ψ(x)≤(log⁡4+2)x≤4x\psi(x)\le(\log4+2)x\le4x.

(iii) By Legendre’s formula and (i),

Nlog⁡N≥log⁡N!≥∑p≤N⌊Np⌋log⁡p≥N∑p≤Nlog⁡pp−Nlog⁡4.N\log N\ge\log N!\ge\sum_{p\le N}\left\lfloor\frac{N}{p}\right\rfloor\log p\ge N\sum_{p\le N}\frac{\log p}{p}-N\log4.

(iv) Let A(u)=∑p≤ulog⁡p/pA(u)=\sum_{p\le u}\log p/p. Partial summation and (iii) give

∑p≤N1p=A(N)log⁡N+∫2NA(u)ulog⁡2u du≤1+log⁡4log⁡2+∫2N(1ulog⁡u+log⁡4ulog⁡2u) du,\sum_{p\le N}\frac{1}{p}=\frac{A(N)}{\log N}+\int_2^N\frac{A(u)}{u\log^2u}\,du\le1+\frac{\log4}{\log2}+\int_2^N\left(\frac{1}{u\log u}+\frac{\log4}{u\log^2u}\right)\,du,

and the integral is at most log⁡log⁡N−log⁡log⁡2+2\log\log N-\log\log2+2. □

We use Selberg’s upper bound sieve in the following form.7

Lemma 2.2. Let a1,…,aXa_1,\ldots,a_X be integers, PP a squarefree integer, ν\nu a multiplicative function with $0<\nu(p)<1$ for p∣Pp\mid P, and y≥1y\ge1. For d∣Pd\mid P put Rd=#{n≤X:d∣an}−ν(d)XR_d=\#\{n\le X:d\mid a_n\}-\nu(d)X, and for l∣Pl\mid P put $g(l)=\prod_{p\mid l}\nu(p)/(1-

ν(p))\nu(p)). Then

#{n≤X:(an,P)=1}≤XS+∑d∣Pd≤y3ω(d)∣Rd∣,S=∑l∣Pl≤yg(l).\#\{n \le X : (a_n,P)=1\} \le\frac{X}{S}+\sum_{\substack{d\mid P\\d\le y}}3^{\omega(d)}|R_d|,\qquad S=\sum_{\substack{l\mid P\\l\le\sqrt{y}}}g(l).

Proof. Let DD be the set of divisors dd of PP with d≤yd\le\sqrt{y}, and let (λd)d∈D(\lambda_d)_{d\in D} be real numbers with λ1=1\lambda_1=1. If (an,P)=1(a_n,P)=1 then ∑d∈D,d∣anλd=1\sum_{\substack{d\in D,\,d\mid a_n}}\lambda_d=1, and otherwise this sum is real, so

#{n:(an,P)=1}≤∑n≤X(∑d∈Dd∣anλd)2=X∑d1,d2∈Dλd1λd2ν([d1,d2])+∑d1,d2∈Dλd1λd2R[d1,d2].\begin{aligned} \#\{n:(a_n,P)=1\}\le\sum_{n\le X}\left(\sum_{\substack{d\in D\\d\mid a_n}}\lambda_d\right)^2 \\ &=X\sum_{d_1,d_2\in D}\lambda_{d_1}\lambda_{d_2}\nu([d_1,d_2])+\sum_{d_1,d_2\in D}\lambda_{d_1}\lambda_{d_2}R_{[d_1,d_2]}. \end{aligned}

Write QQ for the double sum in the first term. Since ν\nu is multiplicative and d1,d2d_1,d_2 are squarefree, ν([d1,d2])=ν(d1)ν(d2)/ν((d1,d2))\nu([d_1,d_2])=\nu(d_1)\nu(d_2)/\nu((d_1,d_2)). Let hh be the multiplicative function on the divisors of PP with h(p)=1/ν(p)−1=1/g(p)h(p)=1/\nu(p)-1=1/g(p); then 1/ν(m)=∑l∣mh(l)1/\nu(m)=\sum_{l\mid m}h(l) for m∣Pm\mid P, and

Q=∑l∣Ph(l)(∑d∈Dl∣dλdν(d))2=∑l∈Dyl2g(l),yl=∑d∈Dl∣dλdν(d).Q=\sum_{l\mid P}h(l)\left(\sum_{\substack{d\in D\\l\mid d}}\lambda_d\nu(d)\right)^2 =\sum_{l\in D}\frac{y_l^2}{g(l)},\qquad y_l=\sum_{\substack{d\in D\\l\mid d}}\lambda_d\nu(d).

Möbius inversion gives λdν(d)=∑l∈D,d∣lμ(l/d)yl\lambda_d\nu(d)=\sum_{\substack{l\in D,\,d\mid l}}\mu(l/d)y_l, so the condition λ1=1\lambda_1=1 reads ∑l∈Dμ(l)yl=1\sum_{l\in D}\mu(l)y_l=1. By Cauchy’s inequality

1≤(∑l∈Dyl2g(l))(∑l∈Dg(l))=QS,1\le\left(\sum_{l\in D}\frac{y_l^2}{g(l)}\right)\left(\sum_{l\in D}g(l)\right)=QS,

with equality for yl=μ(l)g(l)/Sy_l=\mu(l)g(l)/S. We make this choice, so that Q=1/SQ=1/S. Then, writing l=del=de,

λd=1ν(d)S∑l∈Dd∣lμ(l/d)μ(l)g(l)=μ(d)g(d)ν(d)S∑e∈D,(e,d)=1de≤yg(e).\lambda_d=\frac{1}{\nu(d)S}\sum_{\substack{l\in D\\d\mid l}}\mu(l/d)\mu(l)g(l) =\frac{\mu(d)g(d)}{\nu(d)S}\sum_{\substack{e\in D,\,(e,d)=1\\de\le\sqrt{y}}}g(e).

Since g(d)/ν(d)=∏p∣d(1−ν(p))−1=∏p∣d(1+g(p))=∑f∣dg(f)g(d)/\nu(d)=\prod_{p\mid d}(1-\nu(p))^{-1}=\prod_{p\mid d}(1+g(p))=\sum_{f\mid d}g(f), we get ∣λd∣≤S−1∑f∣d∑eg(fe)|\lambda_d|\le S^{-1}\sum_{f\mid d}\sum_e g(fe), and the products fefe are distinct elements of DD; hence ∣λd∣≤1|\lambda_d|\le1. Finally [d1,d2]≤d1d2≤y[d_1,d_2]\le d_1d_2\le y, and every d∣Pd\mid P is the least common multiple of at most 3ω(d)3^{\omega(d)} pairs (d1,d2)(d_1,d_2), so the second term is at most ∑d∣Pd≤y3ω(d)∣Rd∣\sum_{\substack{d\mid P\\d\le y}}3^{\omega(d)}|R_d|.

Riesz means of prime sums

For an arithmetic function aa and x≥1x \ge1 put

S(a;x)=∑n≤xa(n)(1−nx),S(χ;x)=S(χΛ;x)=∑n≤xχ(n)Λ(n)(1−nx).S(a;x)=\sum_{n\le x}a(n)\left(1-\frac{n}{x}\right),\qquad S(\chi;x)=S(\chi\Lambda;x)=\sum_{n\le x}\chi(n)\Lambda(n)\left(1-\frac{n}{x}\right).

The weight 1−n/x1-n/x makes the Mellin kernel absolutely integrable, which keeps the contour shift below free of truncation errors. The aim of this section is Proposition 3.7.

Lemma 3.1. Let a:N→Ca:\mathbb{N}\to\mathbb{C} satisfy ∑n∣a(n)∣n−σ<∞\sum_n |a(n)|n^{-\sigma}<\infty for σ>1\sigma>1, and let F(s)=∑na(n)n−sF(s)=\sum_n a(n)n^{-s} for Re⁡s>1\operatorname{Re}s>1.

(i) For Re⁡s>1\operatorname{Re}s>1,

∫1∞S(a;x)x−s−1 dx=F(s)s(s+1).\int_1^\infty S(a;x)x^{-s-1}\,dx=\frac{F(s)}{s(s+1)}.

(ii) For x>0x>0,

S(a;x)=12π∫−∞∞F(2+it)x2+it(2+it)(3+it) dt.S(a;x)=\frac{1}{2\pi}\int_{-\infty}^{\infty}F(2+it)\frac{x^{2+it}}{(2+it)(3+it)}\,dt.

In other words the following square commutes, and (ii) inverts its right column on the line Re⁡s=2\operatorname{Re}s=2:

a→Riesz meanS(a;⋅)Dirichlet series↓↓Mellin transformF→×1s(s+1)F(s)s(s+1)\begin{CD} a @>{\text{Riesz mean}}>> S(a;\cdot) \\ @V{\text{Dirichlet series}}VV @VV{\text{Mellin transform}}V \\ F @>{\times\frac{1}{s(s+1)}}>> \frac{F(s)}{s(s+1)} \end{CD}

Proof. (i) For n≥1n\ge1, ∫n∞(1−n/x)x−s−1 dx=n−s/s−n−s/(s+1)=n−s/(s(s+1))\int_n^\infty(1-n/x)x^{-s-1}\,dx=n^{-s}/s-n^{-s}/(s+1)=n^{-s}/(s(s+1)). Since ∑n∣a(n)∣∫n∞x−σ−1 dx=σ−1∑n∣a(n)∣n−σ<∞\sum_n|a(n)|\int_n^\infty x^{-\sigma-1}\,dx=\sigma^{-1}\sum_n|a(n)|n^{-\sigma}<\infty, the sum and the integral may be exchanged.

(ii) For y>0y>0 let k(y)=12πi∫(2)ysdss(s+1)k(y)=\frac{1}{2\pi i}\int_{(2)}y^s\frac{ds}{s(s+1)}. If y≥1y\ge1, moving the line of integration to Re⁡s=−U\operatorname{Re}s=-U and letting U→∞U\to\infty picks up the residues 11 at s=0s=0 and −1/y-1/y at s=−1s=-1, so k(y)=1−1/yk(y)=1-1/y; if y<1y<1, moving it to the right gives k(y)=0k(y)=0. As ∣s(s+1)∣−1|s(s+1)|^{-1} is integrable on Re⁡s=2\operatorname{Re}s=2 and ∑n∣a(n)∣n−2<∞\sum_n|a(n)|n^{-2}<\infty, summation and integration may be exchanged, and the right side equals ∑na(n)k(x/n)=S(a;x)\sum_n a(n)k(x/n)=S(a;x).

Lemma 3.2. Let χ\chi be nonprincipal modulo qq. For Re⁡s=σ>0\operatorname{Re}s=\sigma>0, ∣L(s,χ)∣≤q∣s∣/σ|L(s,\chi)|\le q|s|/\sigma.

Proof. Put A(t)=∑n≤tχ(n)A(t)=\sum_{n\le t}\chi(n); then ∣A(t)∣≤q|A(t)|\le q, and partial summation gives L(s,χ)=s∫1∞A(t)t−s−1 dtL(s,\chi)=s\int_1^\infty A(t)t^{-s-1}\,dt for σ>0\sigma>0. Hence ∣L(s,χ)∣≤q∣s∣∫1∞t−σ−1 dt=q∣s∣/σ|L(s,\chi)|\le q|s|\int_1^\infty t^{-\sigma-1}\,dt=q|s|/\sigma.

Lemma 3.3. Let A0=32∑ℓℓ−3/2A_0=\frac{3}{2}\sum_\ell\ell^{-3/2}. For every Dirichlet character χ\chi the series E(s)=−∑ℓlog⁡(1−χ(ℓ)ℓ−s)E(s)=-\sum_\ell\log(1-\chi(\ell)\ell^{-s}) is holomorphic on Re⁡s>1\operatorname{Re}s>1, eE(s)=L(s,χ)e^{E(s)}=L(s,\chi) there, and ∣E(s)∣≤A0|E(s)|\le A_0 for Re⁡s≥3/2\operatorname{Re}s\ge3/2.

Proof. For Re⁡s≥1\operatorname{Re}s \ge1 we have ∣χ(ℓ)ℓ−s∣≤1/2|\chi(\ell)\ell^{-s}| \le1/2, and ∣log⁡(1−w)∣≤∑k∣w∣k/k≤32∣w∣|\log(1-w)| \le\sum_k |w|^k/k \le\frac{3}{2}|w| for ∣w∣≤1/2|w| \le1/2. The series therefore converges locally uniformly on Re⁡s>1\operatorname{Re}s > 1 and is bounded by A0A_0 on Re⁡s≥3/2\operatorname{Re}s \ge3/2, and the Euler product gives eE=Le^E=L.

Lemma 3.4 (Borel–Carathéodory). Let hh be holomorphic on a neighbourhood of the disc ∣z−c∣≤R|z-c| \le R and let 0<r<R0<r<R. Then

max⁡∣z−c∣≤r∣h(z)−h(c)∣≤2rR−rmax⁡∣w−c∣=RRe⁡(h(w)−h(c)).\max_{|z-c|\le r}|h(z)-h(c)|\le\frac{2r}{R-r}\max_{|w-c|=R}\operatorname{Re}(h(w)-h(c)).

Proof. Put g(z)=h(c+z)−h(c)g(z)=h(c+z)-h(c) and A=max⁡∣w∣=RRe⁡g(w)A=\max_{|w|=R}\operatorname{Re}g(w). The mean of Re⁡g\operatorname{Re}g over the circle ∣w∣=R|w|=R is Re⁡g(0)=0\operatorname{Re}g(0)=0, so A≥0A\ge0. If A=0A=0, then Re⁡g\operatorname{Re}g vanishes on the circle, hence on the disc, and gg is an imaginary constant equal to g(0)=0g(0)=0. Let A>0A>0. By the maximum principle Re⁡g≤A\operatorname{Re}g\le A on ∣z∣≤R|z|\le R, so ∣2A−g∣≥A|2A-g|\ge A there and ϕ=g/(2A−g)\phi=g/(2A-g) is holomorphic. Since ∣g∣2−∣2A−g∣2=4A(Re⁡g−A)≤0|g|^2-|2A-g|^2=4A(\operatorname{Re}g-A)\le0, we have ∣ϕ∣≤1|\phi|\le1, and ϕ(0)=0\phi(0)=0. Schwarz’s lemma gives ∣ϕ(z)∣≤∣z∣/R|\phi(z)|\le|z|/R, and from g=2Aϕ/(1+ϕ)g=2A\phi/(1+\phi) we get ∣g(z)∣≤2A∣z∣/(R−∣z∣)|g(z)|\le2A|z|/(R-|z|).

Lemma 3.5. Let 0<δ<1/10000<\delta<1/1000, 1/2≤a≤11/2\le a\le1, and let χ\chi be nonprincipal modulo qq with L(s,χ)≠0L(s,\chi)\ne0 for Re⁡s>a+2δ\operatorname{Re}s>a+2\delta. Put K1=(1+2A0)/(2δ2)K_1=(1+2A_0)/(2\delta^2). For a+8δ≤σ≤2a+8\delta\le\sigma\le2 and t∈Rt\in\mathbb{R},

∣L′L(σ+it,χ)∣≤K1log⁡(2q(3+∣t∣)2).\left|\frac{L'}{L}(\sigma+it,\chi)\right|\le K_1\log\left(2q(3+|t|)^2\right).

Proof. Let c=2+itc=2+it, R=2−a−3δR=2-a-3\delta, r=2−a−6δr=2-a-6\delta and Λ0=log⁡(2q(3+∣t∣)2)≥log⁡18>1\Lambda_0=\log(2q(3+|t|)^2)\ge\log18>1. On the disc ∣z−c∣<2−a−2δ|z-c|<2-a-2\delta we have Re⁡z>a+2δ\operatorname{Re}z>a+2\delta, so L(z,χ)L(z,\chi) has no zero there and has a holomorphic logarithm hh. On ∣z−c∣<1/2|z-c|<1/2 both hh and the function EE of Lemma 3.3 are logarithms of LL, so they differ by a constant in 2πiZ2\pi i\mathbb{Z}; we choose h=Eh=E there. Then ∣h(c)∣≤A0|h(c)|\le A_0.

If ∣z−c∣≤R|z-c|\le R, then Re⁡z≥a+3δ≥1/2\operatorname{Re}z\ge a+3\delta\ge1/2 and ∣z∣≤∣c∣+3/2≤4+∣t∣|z|\le|c|+3/2\le4+|t|, so Lemma 3.2 gives Re⁡h(z)=log⁡∣L(z,χ)∣≤log⁡(2q(4+∣t∣))≤Λ0\operatorname{Re}h(z)=\log|L(z,\chi)|\le\log(2q(4+|t|))\le\Lambda_0. Lemma 3.4 gives, for ∣z−c∣≤r|z-c|\le r,

∣h(z)−h(c)∣≤2rR−r(Λ0+A0)≤Λ0+A0δ,|h(z)-h(c)|\le\frac{2r}{R-r}(\Lambda_0+A_0)\le\frac{\Lambda_0+A_0}{\delta},

as r≤3/2r\le3/2 and R−r=3δR-r=3\delta. Hence ∣h(z)∣≤A0+(Λ0+A0)/δ≤(1+2A0)Λ0/δ|h(z)|\le A_0+(\Lambda_0+A_0)/\delta\le(1+2A_0)\Lambda_0/\delta on ∣z−c∣≤r|z-c|\le r. For w=σ+itw=\sigma+it with a+8δ≤σ≤2a+8\delta\le\sigma\le2 we have ∣w−c∣=2−σ≤r−2δ|w-c|=2-\sigma\le r-2\delta, so the circle ∣z−w∣=2δ|z-w|=2\delta lies in ∣z−c∣≤r|z-c|\le r, and Cauchy’s estimate gives ∣L′/L(w,χ)∣=∣h′(w)∣≤(1+2A0)Λ0/(2δ2)|L'/L(w,\chi)|=|h'(w)|\le(1+2A_0)\Lambda_0/(2\delta^2).

Lemma 3.6. For q≥1q\ge1, t∈Rt\in\mathbb{R} and s=σ+its=\sigma+it with σ≥1/2\sigma\ge1/2,

log⁡(2q(3+∣t∣)2)≤10log⁡(q+2)(1+∣t∣)1/2,∣s(s+1)∣≥18(1+∣t∣)2.\log\left(2q(3+|t|)^2\right)\le10\log(q+2)(1+|t|)^{1/2},\qquad|s(s+1)|\ge\frac{1}{8}(1+|t|)^2.

Proof. We have log⁡(2q)≤2log⁡(q+2)\log(2q) \le2\log(q+2), and log⁡y≤2y1/2\log y \le2y^{1/2} with 3+∣t∣≤4(1+∣t∣)3+|t| \le4(1+|t|) gives log⁡(3+∣t∣)≤4(1+∣t∣)1/2\log(3+|t|) \le4(1+|t|)^{1/2}; the first bound follows from log⁡(q+2)≥1\log(q+2) \ge1. For the second, ∣s∣≥max⁡(σ,∣t∣)≥(1+∣t∣)/4|s| \ge\max(\sigma,|t|) \ge(1+|t|)/4 and ∣s+1∣≥max⁡(σ+1,∣t∣)≥(1+∣t∣)/2|s+1| \ge\max(\sigma+1,|t|) \ge(1+|t|)/2.

Proposition 3.7. Let 0<δ<1/10000 < \delta< 1/1000. There is K=K(δ)K=K(\delta) such that the following holds. Let 1/2≤a≤11/2 \le a \le1 and let χ\chi be nonprincipal modulo qq with L(s,χ)≠0L(s,\chi) \ne0 for Re⁡s>a+2δ\operatorname{Re}s > a+2\delta. Then for x≥1x \ge1,

∣S(χ;x)∣≤Kxa+8δlog⁡(q+2).|S(\chi;x)| \le Kx^{a+8\delta}\log(q+2).

Proof. Put σ0=a+8δ\sigma_0=a+8\delta and

Φ(s)=−L′L(s,χ)xss(s+1).\Phi(s)=-\frac{L'}{L}(s,\chi)\frac{x^s}{s(s+1)}.

For Re⁡s>1\operatorname{Re}s>1, −L′/L(s,χ)=∑nχ(n)Λ(n)n−s-L'/L(s,\chi)=\sum_n\chi(n)\Lambda(n)n^{-s}, so Lemma 3.1(ii) gives S(χ;x)=12π∫RΦ(2+it) dtS(\chi;x)=\frac{1}{2\pi}\int_{\mathbb{R}}\Phi(2+it)\,dt. The function Φ\Phi is holomorphic on σ0≤Re⁡s≤2\sigma_0 \le\operatorname{Re}s \le2, and by Lemmas 3.5 and 3.6,

∣Φ(σ+it)∣≤80K1log⁡(q+2)xσ(1+∣t∣)−3/2(σ0≤σ≤2).|\Phi(\sigma+it)| \le80K_1\log(q+2)x^\sigma(1+|t|)^{-3/2}\qquad(\sigma_0 \le\sigma\le2).

This tends to 00 as ∣t∣→∞|t| \to\infty uniformly in σ\sigma, so Cauchy’s theorem on the rectangles [σ0,2]×[−T,T][\sigma_0,2]\times[-T,T], T→∞T\to\infty, moves the integral to Re⁡s=σ0\operatorname{Re}s=\sigma_0 (Figure 2). Since ∫R(1+∣t∣)−3/2 dt=4\int_{\mathbb{R}}(1+|t|)^{-3/2}\,dt=4, we get ∣S(χ;x)∣≤160K1πxσ0log⁡(q+2)|S(\chi;x)| \le\frac{160K_1}{\pi}x^{\sigma_0}\log(q+2).

Contour shift in the proof of Proposition 3.7

Figure 2. The contour shift in the proof of Proposition 3.7. The zeros of L(s,χ)L(s,\chi) lie in the strip 0≤Re⁡s≤7/80 \le\operatorname{Re}s \le7/8 (dots), the kernel xs/(s(s+1))x^s/(s(s+1)) has poles at 00 and −1-1 (crosses), and the line of integration moves from Re⁡s=2\operatorname{Re}s=2 to Re⁡s=σ0\operatorname{Re}s=\sigma_0 inside the zero-free half-plane.

From now on fix δ=1/2000\delta=1/2000 and a=7/8−1/1000a=7/8-1/1000, so that a+2δ=7/8a+2\delta=7/8 and

σ0=a+8δ=78+31000.\sigma_0=a+8\delta=\frac{7}{8}+\frac{3}{1000}.

and let KK be the constant of Proposition 3.7 for this δ\delta. By Theorem 1.2, Proposition 3.7 applies to every nonprincipal character.

Corollary 3.8. There is an absolute constant C3C_3 such that for every nonprincipal character ξ\xi modulo kk:

(i) ∣S(ξ;x)∣≤Kxσ0log⁡(k+2)|S(\xi; x)| \le Kx^{\sigma_0}\log(k+2) for x≥1x \ge1;

(ii) ∣∑p≤xξ(p)log⁡p∣≤C3x19/20log⁡(k+2)\left|\sum_{p\le x}\xi(p)\log p\right| \le C_3x^{19/20}\log(k+2) for x≥1x \ge1;

(iii) for integers 2≤A≤B2 \le A \le B and γ∈R\gamma\in\mathbb{R},

∣∑A<p≤Bξ(p)e(pγ)∣≤2C3B19/20log⁡(k+2)(2+2π∣γ∣B)log⁡A.(2)\left|\sum_{A<p\le B}\xi(p)e(p\gamma)\right| \le\frac{2C_3 B^{19/20}\log(k+2)(2+2\pi|\gamma|B)}{\log A}. \tag*{(2)}

Proof. (i) is Proposition 3.7. For (ii) put T(y)=yS(ξ;y)T(y)=yS(\xi;y), that is, T(y)=∑n≤yξ(n)Λ(n)(y−n)T(y)=\sum_{n\le y}\xi(n)\Lambda(n)(y-n), and let 0<h≤x0<h\le x. Then

T(x+h)−T(x)=h∑n≤xξ(n)Λ(n)+∑x<n≤x+hξ(n)Λ(n)(x+h−n),T(x+h)-T(x)=h\sum_{n\le x}\xi(n)\Lambda(n)+\sum_{x<n\le x+h}\xi(n)\Lambda(n)(x+h-n),

and the last sum has at most h+1h+1 terms, each of modulus at most hlog⁡(2x)h\log(2x). With ∣T(y)∣≤Ky1+σ0log⁡(k+2)|T(y)|\le Ky^{1+\sigma_0}\log(k+2) this gives

∣∑n≤xξ(n)Λ(n)∣≤2K(2x)1+σ0log⁡(k+2)h+(h+1)log⁡(2x).\left|\sum_{n\le x}\xi(n)\Lambda(n)\right|\le\frac{2K(2x)^{1+\sigma_0}\log(k+2)}{h}+(h+1)\log(2x).

Take h=x47/50h=x^{47/50}. Since 1+σ0−47/50<19/201+\sigma_0-47/50<19/20 and log⁡(2x)≤1+100x1/100\log(2x)\le1+100x^{1/100}, the right side is at most (8K+202)x19/20log⁡(k+2)(8K+202)x^{19/20}\log(k+2). The prime powers contribute at most ψ(x)−θ(x)≤2xlog⁡x≤200x19/20\psi(x)-\theta(x)\le2\sqrt{x}\log x\le200x^{19/20} by Lemma 2.1(ii), and (ii) follows with C3=8K+402C_3=8K+402.

(iii) Let Π(u)=∑p≤uξ(p)log⁡p\Pi(u)=\sum_{p\le u}\xi(p)\log p and f(u)=e(uγ)/log⁡uf(u)=e(u\gamma)/\log u. Partial summation gives

∑A<p≤Bξ(p)e(pγ)=f(B)Π(B)−f(A)Π(A)−∫ABΠ(u)f′(u) du,\sum_{A<p\le B}\xi(p)e(p\gamma)=f(B)\Pi(B)-f(A)\Pi(A)-\int_A^B\Pi(u)f'(u)\,du,

and ∣f′(u)∣≤2π∣γ∣/log⁡A+1/(ulog⁡2u)|f'(u)|\le2\pi|\gamma|/\log A+1/(u\log^2u) for u≥Au\ge A. By (ii) the right side is at most C3B19/20log⁡(k+2)(3+2π∣γ∣B)/log⁡AC_3B^{19/20}\log(k+2)(3+2\pi|\gamma|B)/\log A, which gives (2). □\square

Exponential sums with multiplicative coefficients

For M>0M>0 put wM(θ)=Mw_M(\theta)=M if ∥θ∥<1/M\lVert\theta\rVert<1/M and wM(θ)=1/∥θ∥w_M(\theta)=1/\lVert\theta\rVert otherwise; then 0≤wM(θ)≤M0\le w_M(\theta)\le M and wM(−θ)=wM(θ)w_M(-\theta)=w_M(\theta).

Theorem 4.1. There is an absolute constant C1C_1 with the following property. Let ff be completely multiplicative with ∣f(n)∣≤1|f(n)|\le1, let α∈R\alpha\in\mathbb{R}, and let a,ra,r be coprime integers with r≥1r\ge1, ∣α−a/r∣≤r−2|\alpha-a/r|\le r^{-2} and 2≤R≤r≤N/R2\le R\le r\le N/R. Then

∣∑n≤Nf(n)e(nα)∣≤C1(Nlog⁡N+N(log⁡N)2R1/4).\left|\sum_{n\le N}f(n)e(n\alpha)\right|\le C_1\left(\frac{N}{\log N}+\frac{N(\log N)^2}{R^{1/4}}\right).

:::`

Montgomery and Vaughan [2 Corollary 1] proved this for multiplicative ff with N(log⁡R)3/2R−1/2N(\log R)^{3/2}R^{-1/2} in place of N(log⁡N)2R−1/4N(\log N)^2R^{-1/4}. The proof below follows their approach, a bilinear decomposition together with the spacing of the multiples of α\alpha and an upper bound for prime pairs, with cruder estimates, which suffice for Theorem 1.1.

Lemma 4.2. Let a,ra,r be coprime with r≥2r \ge2 and ∣α−a/r∣≤r−2|\alpha-a/r| \le r^{-2}, and let H≥0H \ge0 be an integer.

(i) ∥kα∥≥1/(2r)\|k\alpha\| \ge1/(2r) for every integer kk with 0<∣k∣≤r/20 < |k| \le r/2.

(ii) #{1≤h≤H:∥hα∥<t}≤(4H/r+1)(4rt+1)\#\{1 \le h \le H : \|h\alpha\| < t\} \le(4H/r+1)(4rt+1) for every t≥0t \ge0.

(iii) For M>0M > 0 and every integer K≥0K \ge0 with M≤2KM \le2^K,

∑h≤HwM(hα)≤(4Hr+1)(3M+4r+8rK),\sum_{h \le H} w_M(h\alpha) \le\left(\frac{4H}{r}+1\right)(3M+4r+8rK),
∑h≤HwM(hα)2≤(4Hr+1)(20rM+3M2).\sum_{h \le H} w_M(h\alpha)^2 \le\left(\frac{4H}{r}+1\right)(20rM+3M^2).

Proof. (i) Let zz be the integer nearest to kαk\alpha. Since 0<∣k∣<r0<|k|<r and (a,r)=1(a,r)=1, r∤kar\nmid ka, so ∣ka/r−z∣≥1/r|ka/r-z|\ge1/r and ∥kα∥≥1/r−∣k∣∣α−a/r∣≥1/(2r)\|k\alpha\|\ge1/r-|k||\alpha-a/r|\ge1/(2r).

(ii) Let L=⌊r/2⌋L=\lfloor r/2\rfloor, so L≥r/4L\ge r/4. For kk in a block of LL consecutive integers let yk=kα−zky_k=k\alpha-z_k with zkz_k the integer nearest to kαk\alpha. For k≠k′k\ne k' in the block, 0<∣k−k′∣<L≤r/20<|k-k'|<L\le r/2 and yk−yk′≡(k−k′)α(mod1)y_k-y_{k'}\equiv(k-k')\alpha\pmod1, so ∣yk−yk′∣≥1/(2r)|y_k-y_{k'}|\ge1/(2r) by (i). Points of (−t,t)(-t,t) at mutual distances at least 1/(2r)1/(2r) number at most 4rt+14rt+1, and [1,H][1,H] is covered by at most H/L+1≤4H/r+1H/L+1\le4H/r+1 blocks.

(iii) If ∥θ∥≥1/M\|\theta\|\ge1/M, let k≥1k\ge1 be least with ∥θ∥<2k/M\|\theta\|<2^k/M; then k≤Kk\le K because ∥θ∥≤1/2<2K/M\|\theta\|\le1/2<2^K/M, and ∥θ∥≥2k−1/M\|\theta\|\ge2^{k-1}/M, so wM(θ)≤21−kMw_M(\theta)\le2^{1-k}M. Hence

wM(θ)j≤Mj[∥θ∥<1/M]+∑k=1K(21−kM)j[∥θ∥<2k/M](j=1,2).w_M(\theta)^j\le M^j[\|\theta\|<1/M]+\sum_{k=1}^{K}(2^{1-k}M)^j[\|\theta\|<2^k/M]\qquad(j=1,2).

Summing over h≤Hh\le H with (ii), the first sum is at most (4H/r+1)(4r+M+∑k≤K(8r+21−kM))(4H/r+1)(4r+M+\sum_{k\le K}(8r+2^{1-k}M)) and the second at most (4H/r+1)(4rM+M2+∑k≥1(16rM2−k+4M24−k))(4H/r+1)(4rM+M^2+\sum_{k\ge1}(16rM2^{-k}+4M^24^{-k})).

Lemma 4.3

Let θ,α∈R\theta,\alpha\in\mathbb{R}, U>0U>0, and let A,B,NA,B,N be nonnegative integers with B≤A+UB\le A+U.

(i)

∣∑A<x≤Be(xθ)∣≤wU(θ).\left|\sum_{A<x\le B}e(x\theta)\right|\le w_U(\theta).

(ii) For a finite set VV of positive integers and b:V→Cb:V\to\mathbb{C},

∑A<u≤B∣∑v∈Vuv≤Nb(v)e(uvα)∣2≤∑v,v′∈V∣b(v)∣∣b(v′)∣wU((v−v′)α).\sum_{A<u\le B}\left|\sum_{\substack{v\in V\\uv\le N}}b(v)e(uv\alpha)\right|^2 \le\sum_{v,v'\in V}|b(v)||b(v')|w_U((v-v')\alpha).

(iii) For M>0M > 0 and an integer H≥0H \ge0,

∑1≤m,m′≤HwM((m−m′)α)≤H(M+2∑h≤HwM(hα)).\sum_{1 \le m,m' \le H} w_M((m-m')\alpha) \le H\left(M+2\sum_{h \le H}w_M(h\alpha)\right).

Proof. (i) If ∥θ∥<1/U\lVert\theta\rVert< 1/U, the sum has at most UU terms of modulus 1. Otherwise θ∉Z\theta\notin\mathbb{Z}, the sum has modulus at most ∣e((B−A)θ)−1∣/∣e(θ)−1∣\lvert e((B-A)\theta)-1\rvert/\lvert e(\theta)-1\rvert, and ∣e(θ)−1∣=2∣sin⁡πθ∣≥4∥θ∥\lvert e(\theta)-1\rvert=2\lvert\sin\pi\theta\rvert\ge4\lVert\theta\rVert, so the modulus is at most 1/(2∥θ∥)1/(2\lVert\theta\rVert). (ii) Expanding the square gives ∑v,v′b(v)b(v′)∑ue(u(v−v′)α)\sum_{v,v'}b(v)b(v')\sum_u e(u(v-v')\alpha), where uu runs over the integers of (A,min⁡(B,N/v,N/v′)](A,\min(B,N/v,N/v')], an interval of length at most UU; apply (i). (iii) For fixed mm, the term m′=mm'=m is wM(0)=Mw_M(0)=M, and each h=∣m−m′∣∈[1,H]h=\lvert m-m'\rvert\in[1,H] arises from at most two m′m'.

Lemma 4.4. Let C5=1+4ζ(3/2)C_5=1+4\zeta(3/2). For every completely multiplicative ff with ∣f(n)∣≤1\lvert f(n)\rvert\le1, every α∈R\alpha\in\mathbb{R} and every integer N≥1N\ge1, the sum S=∑n≤Nf(n)e(nα)S=\sum_{n\le N}f(n)e(n\alpha) satisfies

∣Slog⁡N−∑p≤Nlog⁡pf(p)∑m≤N/pf(m)e(pmα)∣≤C5N.\left\lvert S\log N-\sum_{p\le N}\log p f(p)\sum_{m\le N/p}f(m)e(pm\alpha)\right\rvert\le C_5N.

Proof. Write Slog⁡N=S1+S2S\log N=S_1+S_2 with S1=∑n≤Nf(n)e(nα)log⁡nS_1=\sum_{n\le N}f(n)e(n\alpha)\log n and S2=∑n≤Nf(n)e(nα)log⁡(N/n)S_2=\sum_{n\le N}f(n)e(n\alpha)\log(N/n). Then ∣S2∣≤Nlog⁡N−log⁡N!≤N\lvert S_2\rvert\le N\log N-\log N!\le N, since NN/N!≤eNN^N/N!\le e^N. In S1S_1 write log⁡n=∑d∣nΛ(d)\log n=\sum_{d\mid n}\Lambda(d) and n=dmn=dm; complete multiplicativity gives ∑d≤NΛ(d)f(d)∑m≤N/df(m)e(dmα)\sum_{d\le N}\Lambda(d)f(d)\sum_{m\le N/d}f(m)e(dm\alpha). The terms with dd prime form the sum in the statement, and the others have modulus at most N∑p∑k≥2log⁡p/pk≤2N∑plog⁡p/p2≤4ζ(3/2)NN\sum_p\sum_{k\ge2}\log p/p^k\le2N\sum_p\log p/p^2\le4\zeta(3/2)N, since log⁡p≤2p\log p\le2\sqrt p.

Let G(h)=∏p∣hp/(p−1)G(h)=\prod_{p\mid h}p/(p-1).

Lemma 4.5. (i) For every integer X≥2X\ge2 and every even h≥2h\ge2,

#{0≤n<X:n and n+h prime}≤400G(h)X(log⁡X)2+3X3/5.\#\{0\le n<X:n\text{ and }n+h\text{ prime}\}\le\frac{400G(h)X}{(\log X)^2}+3X^{3/5}.

(ii) ∑h≤XG(h)4≤e30X\sum_{h\le X}G(h)^4\le e^{30}X for every X≥1X\ge1.

Proof. (i) Apply Lemma 2.2 to an=n(n+h)a_n=n(n+h), 0≤n<X0\le n<X, with y=X1/5y=X^{1/5}, z=⌊y⌋z=\lfloor y\rfloor, PP the product of the primes p≤zp\le z with p∤hp\nmid h, and ν(d)=2ω(d)/d\nu(d)=2^{\omega(d)}/d. Every p∣Pp\mid P is odd, so ν(p)=2/p<1\nu(p)=2/p<1. For d∣Pd\mid P the residues nn with d∣n(n+h)d\mid n(n+h) form 2ω(d)2^{\omega(d)} classes modulo dd (namely n≡0n\equiv0 or −h(modp)-h\pmod p for each p∣dp\mid d, distinct as p∤hp\nmid h), and each class contains between X/d−1X/d-1 and X/d+1X/d+1 of the integers 0≤n<X0\le n<X; hence ∣Rd∣≤2ω(d)\lvert R_d\rvert\le2^{\omega(d)}. Since the prime factors of dd are at least 3, 3ω(d)∣Rd∣≤6ω(d)≤d2≤y23^{\omega(d)}\lvert R_d\rvert\le6^{\omega(d)}\le d^2\le y^2, and the error term is at most y3=X3/5y^3=X^{3/5}.

Let M\mathcal{M} be the set of m≤ym\le\sqrt y whose prime factors divide PP. Since

ν(p)1−ν(p)=∑k≥1ν(p)k\frac{\nu(p)}{1-\nu(p)}=\sum_{k\ge1}\nu(p)^k

and ν(m)=2Ω(m)/m\nu(m)=2^{\Omega(m)}/m for these mm, g(l)g(l) is the sum of 2Ω(m)/m2^{\Omega(m)}/m over the mm whose set of prime factors is that of ll. An m∈Mm \in\mathcal{M} is counted in g(l)g(l) for ll the product of its prime factors, and l≤m≤yl \le m \le\sqrt{y}. Hence, with τ(m)≤2Ω(m)\tau(m) \le2^{\Omega(m)} the number of divisors of mm,

S≥∑m∈M2Ω(m)m≥∑m∈Mτ(m)m.S \ge\sum_{m\in\mathcal{M}} \frac{2^{\Omega(m)}}{m} \ge\sum_{m\in\mathcal{M}} \frac{\tau(m)}{m}.

Let T=⌊y1/4⌋T=\lfloor y^{1/4}\rfloor and let BB be the set of b≤Tb\le T that are prime to hh; these bb are odd. For b,b′∈Bb,b'\in B the product bb′bb' lies in M\mathcal{M}, and a given mm is a product bb′bb' in at most τ(m)\tau(m) ways, so S≥(∑b∈B1/b)2S\ge(\sum_{b\in B}1/b)^2. If EE is a set of primes and p∉Ep\notin E, every b≤Tb\le T prime to EE is uniquely pkb′p^k b' with b′b' prime to E∪{p}E\cup\{p\}, so the sum of 1/b1/b over the b≤Tb\le T prime to EE is at most p/(p−1)p/(p-1) times the same sum for E∪{p}E\cup\{p\}. Adding the prime factors of hh one at a time gives

∑b∈B1b≥1G(h)∑b≤T1b≥log⁡(T+1)G(h).\sum_{b\in B}\frac{1}{b}\ge\frac{1}{G(h)}\sum_{b\le T}\frac{1}{b}\ge\frac{\log(T+1)}{G(h)}.

As T+1>y1/4=X1/20T+1>y^{1/4}=X^{1/20}, we get S≥(log⁡X)2/(400G(h)2)S\ge(\log X)^2/(400G(h)^2), that is, X/S≤400G(h)2X/(log⁡X)2X/S\le400G(h)^2X/(\log X)^2. Finally, if n<Xn<X and n,n+hn,n+h are prime, then n≤zn\le z or (n(n+h),P)=1(n(n+h),P)=1, so the count is at most z+1+X/S+y3≤400G(h)2X/(log⁡X)2+3X3/5z+1+X/S+y^3\le400G(h)^2X/(\log X)^2+3X^{3/5}.

(ii) For t=p−1≥1t=p-1\ge1, (t+1)5≤(t+31)t4(t+1)^5\le(t+31)t^4, that is, (p/(p−1))4≤1+30/p(p/(p-1))^4\le1+30/p. Hence G(h)4≤∑d30ω(d)/dG(h)^4\le\sum_{d}30^{\omega(d)}/d over the squarefree d∣hd\mid h, and

∑h≤XG(h)4≤∑d≤Xμ(d)230ω(d)d⋅Xd≤X∏p(1+30p2)≤Xexp⁡(30∑n≥21n2)≤e30X.\begin{aligned} \sum_{h\le X}G(h)^4\le\sum_{d\le X}\mu(d)^2\frac{30^{\omega(d)}}{d}\cdot\frac{X}{d}\le X\prod_p\left(1+\frac{30}{p^2}\right) \\ &\le X\exp\left(30\sum_{n\ge2}\frac{1}{n^2}\right)\le e^{30}X. \end{aligned}

Proof of Theorem 4.1. Let S=∑n≤Nf(n)e(nα)S=\sum_{n\le N}f(n)e(n\alpha), L=log⁡NL=\log N and ℓ=⌊log⁡2N⌋\ell=\lfloor\log_2N\rfloor. Since N≥rR≥4N\ge rR\ge4, L≥1L\ge1. If ℓ<64\ell<64, then L<64log⁡2<45L<64\log2<45 and ∣S∣≤N≤45N/L|S|\le N\le45N/L. Let ℓ≥64\ell\ge64, I=⌊log⁡2ℓ⌋+1I=\lfloor\log_2\ell\rfloor+1 and J=ℓ+1−4IJ=\ell+1-4I. Then 16I>ℓ416^I>\ell^4, 1≤J≤ℓ≤2L1\le J\le\ell\le2L, I≤ℓ≤2LI\le\ell\le2L, 2I≤2ℓ2I\le2\ell, N<2ℓ+1=2J24IN<2^{\ell+1}=2^J2^{4I} and J22J≤(ℓ+1)22ℓ+1ℓ−4≤2NJ^22^J\le(\ell+1)2^{2\ell+1}\ell^{-4}\le2N. By Lemma 4.4, ∣S∣L≤C5N+∣T1∣+∣T2∣|S|L\le C_5N+|T_1|+|T_2|, where T1T_1 and T2T_2 are the parts of ∑plog⁡pf(p)∑m≤N/pf(m)e(pmα)\sum_p\log p f(p)\sum_{m\le N/p}f(m)e(pm\alpha) with p≤2Jp\le2^J and with p>2Jp>2^J.

The small primes. Let 0≤j<J0\le j<J, U=2jU=2^j, H=⌊N/U⌋H=\lfloor N/U\rfloor, and for U<x≤2UU<x\le2U let B(x)=∑m≤H,  xm≤Nf(m)e(xmα)B(x)=\sum_{m\le H,\;xm\le N}f(m)e(xm\alpha); the inner sum for a prime p∈(U,2U]p\in(U,2U] is B(p)B(p). By Cauchy’s inequality, Lemma 4.3(ii), (iii) and Lemma 4.2(iii) with M=UM=U, K=jK=j,

∑U<p≤2Ulog⁡p ∣B(p)∣≤(Ulog⁡2(2U))1/2Qj1/2,\sum_{U<p\le2U}\log p\,|B(p)|\le\left(U\log^2(2U)\right)^{1/2}Q_j^{1/2},

where Qj=H(U+2(4H/r+1)(3U+4r+8rj))Q_j = H(U + 2(4H/r + 1)(3U + 4r + 8rj)). Since HU≤NHU \le N, UQj≤7NU+(8+16j)Nr+24N2/r+(32+64j)N2/UUQ_j \le7NU + (8 + 16j)Nr + 24N^2/r + (32 + 64j)N^2/U, and log⁡(2U)≤j+1\log(2U) \le j + 1. Summing over j<Jj < J with j+1≤Jj+1 \le J,

∑j<J2j/2≤3⋅2J/2,(32+64j)2−j≤8(j+1)(3/4)j\sum_{j<J} 2^{j/2} \le3\cdot2^{J/2}, \qquad\sqrt{(32+64j)2^{-j}} \le8(j+1)(3/4)^j

and ∑j≥0(j+1)2(3/4)j=112\sum_{j\ge0}(j+1)^2(3/4)^j = 112,

∣T1∣≤37JN2J+J2N24/r+896N+J224JNr.|T_1| \le3\sqrt{7J}\sqrt{N2^J} + J^2N\sqrt{24/r} + 896N + J^2\sqrt{24JNr}.

Now J22J≤2NJ^22^J \le2N gives 37JN2J≤12N3\sqrt{7J}\sqrt{N2^J} \le12N; r≥R≥Rr \ge R \ge\sqrt{R} gives 24/r≤5R−1/4\sqrt{24/r} \le5R^{-1/4}; and rR≤rR≤Nr\sqrt{R} \le rR \le N gives 24JNr≤5JNR−1/4\sqrt{24JNr} \le5JNR^{-1/4}. With J≤2LJ \le2L and L≥1L \ge1, ∣T1∣≤908N+60L3NR−1/4|T_1| \le908N + 60L^3NR^{-1/4}.

The large primes. For p>2Jp > 2^J we have N/p<16IN/p < 16^I, so the mm in T2T_2 lie in (0,16I−1](0,16^I-1], the union of the blocks (16i−1,16i+1−1](16^i-1,16^{i+1}-1] with 0≤i<I0 \le i < I. Fix ii, let A=16i−1A = 16^i-1, U=15⋅16iU = 15\cdot16^i and X=⌊N/16i⌋X = \lfloor N/16^i\rfloor, and assume X≥1X \ge1, the block being empty otherwise. Only the primes p∈(2J,X]p \in(2^J,X] contribute, since p≥X+1p \ge X+1 and m≥16im \ge16^i give pm>Npm > N. Let VV be the set of these primes, which are odd, and B(m)=∑p∈V,pm≤Nlog⁡p f(p)e(pmα)B(m) = \sum_{\substack{p\in V,\,pm\le N}}\log p\, f(p)e(pm\alpha). The block is ∑A<m≤A+Uf(m)B(m)\sum_{A<m\le A+U} f(m)B(m), and by Cauchy’s inequality, Lemma 4.3(ii) and log⁡p≤λ=log⁡(X+1)\log p \le\lambda= \log(X+1), its square is at most Uλ2WU\lambda^2W, where

W=∑p,p′∈VwU((p−p′)α)=∣V∣U+2∑h=1XwU(hα)#{p∈V:p+h∈V}.W = \sum_{p,p'\in V}w_U((p-p')\alpha) = |V|U + 2\sum_{h=1}^{X}w_U(h\alpha)\#\{p\in V:p+h\in V\}.

The count vanishes for odd hh, and for even hh Lemma 4.5(i), applied to X+1X+1, bounds it by 400G(h)(X+1)λ−2+3(X+1)3/5400G(h)(X+1)\lambda^{-2} + 3(X+1)^{3/5}. By Cauchy’s inequality, Lemma 4.5(ii) and Lemma 4.2(iii), ∑h≤XG(h)2wU(hα)≤e15XQ1/2\sum_{h\le X}G(h)^2w_U(h\alpha) \le e^{15}\sqrt{X}Q^{1/2} with Q=(4X/r+1)(20rU+3U2)Q = (4X/r + 1)(20rU + 3U^2), and ∑h≤XwU(hα)≤XU\sum_{h\le X}w_U(h\alpha) \le XU. Hence Uλ2W≤A1+800e15Z+A3U\lambda^2W \le A_1 + 800e^{15}Z + A_3, where

A1=U2λ2X,Z=U(X+1)XQ1/2,A3=6U2λ2(X+1)3/5X.A_1 = U^2\lambda^2X,\qquad Z = U(X+1)\sqrt{X}Q^{1/2},\qquad A_3 = 6U^2\lambda^2(X+1)^{3/5}X.

Let κ=log⁡(N+1)≥λ\kappa= \log(N+1) \ge\lambda and Ti=4iκ(N(2N)3/5)1/2T_i = 4^i\kappa\bigl(N(2N)^{3/5}\bigr)^{1/2}. Since U2X=225⋅16i(16iX)≤225⋅16iNU^2X = 225\cdot16^i(16^iX) \le225\cdot16^iN and X+1≤2NX+1 \le2N, we get A1≤225Ti2A_1 \le225T_i^2 and A3≤1350Ti2≤372Ti2A_3 \le1350T_i^2 \le37^2T_i^2. With w=UX≤15Nw = UX \le15N, X≤N/16iX \le N/16^i and R≤r≤N/RR \le r \le N/R,

Z2≤4U2X3Q=320w3X+48w4r+80rw3+12Uw3≤320⋅153N416i+48⋅154N4R+80⋅153N4R+180⋅153⋅16iN3,\begin{aligned} Z^2 \le4U^2X^3Q = 320w^3X + \frac{48w^4}{r} + 80rw^3 + 12Uw^3 \\ &\le\frac{320\cdot15^3N^4}{16^i} + \frac{48\cdot15^4N^4}{R} + \frac{80\cdot15^3N^4}{R} + 180\cdot15^3\cdot16^iN^3, \end{aligned}

and every coefficient is at most 40440^4, so Z1/2≤40(N2−i+2NR−1/4+2iN3/4)Z^{1/2} \le40(N2^{-i} + 2NR^{-1/4} + 2^iN^{3/4}). The block is therefore at most

15Ti+40800e15(N2−i+2NR−1/4+2iN3/4)+37Ti≤Kb(N2−i+NR−1/4+2iN3/4+Ti).\begin{aligned} 15T_i + 40\sqrt{800e^{15}}(N2^{-i} + 2NR^{-1/4} + 2^iN^{3/4}) + 37T_i \\ &\le K_b(N2^{-i} + NR^{-1/4} + 2^iN^{3/4} + T_i). \end{aligned}

with Kb=80800e15+52K_b = 80\sqrt{800e^{15}} + 52. Summing over i<Ii < I,

∣T2∣≤Kb(2N+INR−1/4+2IN3/4+4Iκ(N(2N)3/5)1/2).|T_2| \le K_b\left(2N + INR^{-1/4} + 2^I N^{3/4} + 4^I\kappa\left(N(2N)^{3/5}\right)^{1/2}\right).

Here I≤2L3I \le2L^3; 2I≤4L≤16N1/42^I \le4L \le16N^{1/4}; 4I≤16L24^I \le16L^2 and κ≤2L\kappa\le2L; and log⁡x≤15x1/15\log x \le15x^{1/15} gives L3(N(2N)3/5)1/2≤2⋅153NL^3\left(N(2N)^{3/5}\right)^{1/2} \le2\cdot15^3N. Hence ∣T2∣≤Kb(216018N+2L3NR−1/4)|T_2| \le K_b(216018N + 2L^3NR^{-1/4}).

Altogether ∣S∣L≤(C5+908+216018Kb)N+(60+2Kb)L3NR−1/4|S|L \le(C_5 + 908 + 216018K_b)N + (60 + 2K_b)L^3NR^{-1/4}, and dividing by LL gives the theorem with C1=45+C5+908+216018Kb+60+2KbC_1 = 45 + C_5 + 908 + 216018K_b + 60 + 2K_b. □

Proof of Theorem 1.1

In this section χ\chi is a primitive character modulo q≥3q \ge3.

Lemma 5.1. Let B≥0B \ge0 be such that ∣∑m≤Hχ‾(m)e(mβ)/m∣≤B\left|\sum_{m\le H}\overline{\chi}(m)e(m\beta)/m\right| \le B for every integer H≤q/2H \le q/2 and every β∈R\beta\in\mathbb{R}. Then ∣∑n≤xχ(n)∣≤q(B+6)\left|\sum_{n\le x}\chi(n)\right| \le\sqrt{q}(B+6) for every x≥0x \ge0.

Proof. We may take x=Tx=T to be an integer. Let τ=∑a mod qχ‾(a)e(a/q)\tau=\sum_{a\bmod q}\overline{\chi}(a)e(a/q). Since χ‾\overline{\chi} is primitive, ∑aχ‾(a)e(an/q)=χ(n)τ\sum_a\overline{\chi}(a)e(an/q)=\chi(n)\tau for every nn, and summing the squares of the moduli of these identities over nn mod qq gives qφ(q)=∣τ∣2φ(q)q\varphi(q)=|\tau|^2\varphi(q), so ∣τ∣=q|\tau|=\sqrt q. Summing over 1≤n≤T1\le n\le T,

τ∑n≤Tχ(n)=∑0<∣a∣≤q/2χ‾(a)e(aT/q)−11−e(−a/q).\tau\sum_{n\le T}\chi(n)=\sum_{0<|a|\le q/2}\overline{\chi}(a)\frac{e(aT/q)-1}{1-e(-a/q)}.

where aa runs over the integers with −q/2<a≤q/2-q/2<a\le q/2, a≠0a\ne0. For 0<∣θ∣≤1/20<|\theta|\le1/2 put r(θ)=(1−e(−θ))−1−(2πiθ)−1r(\theta)=(1-e(-\theta))^{-1}-(2\pi i\theta)^{-1}; then ∣1−e(−θ)∣=2∣sin⁡πθ∣≥4∣θ∣|1-e(-\theta)|=2|\sin\pi\theta|\ge4|\theta|. If 2π∣θ∣≤12\pi|\theta|\le1, then ∣e(−θ)−1+2πiθ∣≤(2πθ)2|e(-\theta)-1+2\pi i\theta|\le(2\pi\theta)^2 and ∣r(θ)∣≤(2πθ)2/(4∣θ∣⋅2π∣θ∣)<3|r(\theta)|\le(2\pi\theta)^2/(4|\theta|\cdot2\pi|\theta|)<3; otherwise ∣r(θ)∣≤1/(4∣θ∣)+1/(2π∣θ∣)<3|r(\theta)|\le1/(4|\theta|)+1/(2\pi|\theta|)<3. The terms with r(a/q)r(a/q) contribute at most 6q6q. Writing a=±ma=\pm m with 1≤m≤q/21\le m\le q/2, the remaining terms are q/(2πi)q/(2\pi i) times a combination, with coefficients of modulus at most 11, of four sums ∑m≤Hχ‾(m)e(mβ)/m\sum_{m\le H}\overline{\chi}(m)e(m\beta)/m with H≤q/2H\le q/2, so they contribute at most 2qB/π2qB/\pi. Dividing by ∣τ∣|\tau| gives the claim. □

Lemma 5.2. For Y≥2Y\ge2 and H≥1H\ge1,

∑n≤HP(n)≤Y1n≤e11log⁡Y.\sum_{\substack{n\le H\\P(n)\le Y}}\frac{1}{n}\le e^{11}\log Y.

Proof. The sum is at most ∏p≤Y(1−1/p)−1≤exp⁡(∑p≤Y1p−1)\prod_{p\le Y}(1-1/p)^{-1}\le\exp\left(\sum_{p\le Y}\frac{1}{p-1}\right), and ∑p(1p−1−1p)≤1\sum_p\left(\frac{1}{p-1}-\frac{1}{p}\right)\le1; apply Lemma 2.1(iv). □

Lemma 5.3. There is an absolute constant C2C_2 such that for 0<r<q0<r<q, b∈Zb\in\mathbb{Z}, β∈R\beta\in\mathbb{R}, integers Y≥max⁡(2,r)Y\geq\max(2,r) and t≥1t\geq1,

∣∑n≤tP(n)>Yχ(n)e(n(br+β))∣≤C2rlog⁡(qr+2)(2+2π∣β∣t)Y1/20log⁡Y.\left|\sum_{\substack{n\leq t\\P(n)>Y}}\chi(n)e\left(n\left(\frac{b}{r}+\beta\right)\right)\right|\leq C_2\frac{r\log(qr+2)(2+2\pi|\beta|t)}{Y^{1/20}\log Y}.

Proof. Every n≤tn\leq t with P(n)>YP(n)>Y is uniquely n=pmn=pm with p=P(n)p=P(n) prime, Y<p≤t/mY<p\leq t/m and P(m)≤pP(m)\leq p, and then m≤t/Ym\leq t/Y. For such pp we have p>rp>r, so p∤rp\nmid r, and on the units modulo rr the function u↦e(umb/r)u\mapsto e(umb/r) equals ∑ψcψψ(u)\sum_\psi c_\psi\psi(u), the sum over the characters ψ\psi modulo rr, with ∣cψ∣≤1|c_\psi|\leq1.

The character χψ\chi\psi modulo qrqr is nonprincipal. Otherwise χ(n)=ψ‾(n)\chi(n)=\overline{\psi}(n) for every nn prime to qrqr. Let d=(q,r)d=(q,r) and let nn be prime to qq with n≡1(modd)n\equiv1\pmod d. By the Chinese remainder theorem there is n′n' prime to qrqr with n′≡n(modq)n'\equiv n\pmod q and n′≡1(modr)n'\equiv1\pmod r, and then χ(n)=χ(n′)=ψ‾(n′)=1\chi(n)=\chi(n')=\overline{\psi}(n')=1. So χ\chi is trivial on the units congruent to 11 modulo dd, and is induced by a character modulo d≤r<qd\leq r<q, which contradicts primitivity.

Applying (2) to ξ=χψ\xi=\chi\psi with γ=mβ\gamma=m\beta, A=max⁡(Y,P(m)−1)A=\max(Y,P(m)-1) and B=⌊t/m⌋B=\lfloor t/m\rfloor (the inner sum is empty if A≥BA\geq B) gives

∣∑n≤tP(n)>Yχ(n)e(n(br+β))∣≤2C3rlog⁡(qr+2)(2+2π∣β∣t)log⁡Y∑m≤t/Y(tm)19/20.\left|\sum_{\substack{n\leq t\\P(n)>Y}}\chi(n)e\left(n\left(\frac{b}{r}+\beta\right)\right)\right|\leq2C_3r\frac{\log(qr+2)(2+2\pi|\beta|t)}{\log Y}\sum_{m\leq t/Y}\left(\frac{t}{m}\right)^{19/20}.

and ∑m≤Mm−19/20≤20M1/20\sum_{m\leq M}m^{-19/20}\leq20M^{1/20}. Hence C2=40C3C_2=40C_3 will do. □

Proposition 5.4. There is an absolute constant C4C_4 such that if log⁡q≥200\log q\geq200, then

∣∑m≤Hχ(m)e(mβ)m∣≤C4log⁡log⁡q\left|\sum_{m\leq H}\frac{\chi(m)e(m\beta)}{m}\right|\leq C_4\log\log q

for every integer H≤qH\leq q and every β∈R\beta\in\mathbb{R}.

Proof. Let L=log⁡qL=\log q, M=⌈L⌉M=\lceil L\rceil, R=M16R=M^{16} and Y=M700Y=M^{700}. Since eL/16≥(L/16)4/24>L+1≥Me^{L/16}\geq(L/16)^4/24>L+1\geq M, we have 2≤R<q2\leq R<q and R≤YR\leq Y. Split the sum according to P(m)≤YP(m)\leq Y or P(m)>YP(m)>Y. By Lemma 5.2 the first part is at most e11log⁡Ye^{11}\log Y. For the second put A(t)=∑n≤tP(n)>Yχ(n)e(nβ)A(t)=\sum_{\substack{n\leq t\\P(n)>Y}}\chi(n)e(n\beta) and w(t)=1/t−1/(t+1)w(t)=1/t-1/(t+1). Partial summation and ∣A(H)∣≤H|A(H)|\leq H give

∣∑m≤HP(m)>Yχ(m)e(mβ)m∣≤1+∑1≤t<H∣A(t)∣w(t).\left|\sum_{\substack{m\leq H\\P(m)>Y}}\frac{\chi(m)e(m\beta)}{m}\right|\leq1+\sum_{1\leq t<H}|A(t)|w(t).

If t≤Yt\leq Y, then A(t)=0A(t)=0. Let t>Yt>Y and Q=⌊t/R⌋≥1Q=\lfloor t/R\rfloor\geq1. By Dirichlet’s theorem there are coprime a,ra,r with 1≤r≤Q1\leq r\leq Q and ∣β−a/r∣≤1/(r(Q+1))|\beta-a/r|\leq1/(r(Q+1)); then ∣β−a/r∣t≤R|\beta-a/r|t\leq R (Figure 3). If r≤Rr\leq R, then Lemma 5.3 with b=ab=a gives ∣A(t)∣≤C2kt|A(t)|\leq C_2kt, where

Dissection of $\mathbb{R}/\mathbb{Z}$ into major and minor arcs

Figure 3. The dissection of R/Z\mathbb{R}/\mathbb{Z} in the proof of Proposition 5.4, drawn for R=4R=4. Near a fraction a/ra/r with r≤Rr\le R (major arcs) the sum A(t)A(t) is controlled by the twisted prime sums of Corollary 3.8; elsewhere (minor arcs) by Theorem 4.1. The heights only indicate that the major arcs carry the large values.

k=Rlog⁡(qR+2)(2+2πR)Y1/20log⁡Y.k=\frac{R\log(qR+2)(2+2\pi R)}{Y^{1/20}\log Y}.

If r>Rr>R, then R≤r≤t/RR\le r\le t/R and ∣β−a/r∣≤r−2\lvert\beta-a/r\rvert\le r^{-2}, so Theorem 4.1 for f=χf=\chi bounds the full sum ∑n<tχ(n)e(nβ)\sum_{n<t}\chi(n)e(n\beta), and since log⁡t≤L\log t\le L, removing the Ψ(t)=#{n≤t:P(n)≤Y}\Psi(t)=\#\{n\le t:P(n)\le Y\} smooth terms gives

∣A(t)∣≤C1(tlog⁡t+tρ)+Ψ(t),ρ=L2R1/4=L2M4.\lvert A(t)\rvert\le C_1\left(\frac{t}{\log t}+t\rho\right)+\Psi(t),\qquad\rho=\frac{L^2}{R^{1/4}}=\frac{L^2}{M^4}.

Since tw(t)≤1/ttw(t)\le1/t and w(t)≤1/t2w(t)\le1/t^2,

∑1≤t<H∣A(t)∣w(t)≤C1∑2≤t≤H1tlog⁡t+(C1ρ+C2k)∑t≤H1t+∑1≤t<HΨ(t)w(t).\sum_{1\le t<H}\lvert A(t)\rvert w(t)\le C_1\sum_{2\le t\le H}\frac{1}{t\log t}+(C_1\rho+C_2k)\sum_{t\le H}\frac{1}{t}+\sum_{1\le t<H}\Psi(t)w(t).

The first sum is at most 3+log⁡L3+\log L, the second at most 1+L1+L, and by partial summation the third is at most ∑n≤H, P(n)≤Y1/n≤e11log⁡Y\sum_{n\le H,\ P(n)\le Y}1/n\le e^{11}\log Y. Finally L≤M≤2LL\le M\le2L gives ρ(1+L)≤2/M≤1\rho(1+L)\le2/M\le1; log⁡(qR+2)≤18M\log(qR+2)\le18M, 2+2πR≤8M162+2\pi R\le8M^{16}, Y1/20=M35Y^{1/20}=M^{35} and log⁡Y=700log⁡M≥700\log Y=700\log M\ge700 give k(1+L)≤288M34/(700M35)≤1k(1+L)\le288M^{34}/(700M^{35})\le1; and log⁡Y=700log⁡M≤1400log⁡L\log Y=700\log M\le1400\log L. Collecting terms, the sum is at most 1+4C1+C2+(2800e11+C1)log⁡L≤(2800e11+1+5C1+C2)log⁡L1+4C_1+C_2+(2800e^{11}+C_1)\log L\le(2800e^{11}+1+5C_1+C_2)\log L. □

Proof of Theorem 1.1. The character χ‾\overline{\chi} is primitive modulo qq. If log⁡q≥200\log q\ge200, then Proposition 5.4 for χ‾\overline{\chi} and Lemma 5.1 give

∣∑n≤xχ(n)∣≤q(C4log⁡log⁡q+6)≤(C4+6)qlog⁡log⁡q.\left\lvert\sum_{n\le x}\chi(n)\right\rvert\le\sqrt{q}(C_4\log\log q+6)\le(C_4+6)\sqrt{q}\log\log q.

If log⁡q<200\log q < 200, then every sum ∑m≤Hχ‾(m)e(mβ)/m\sum_{m\le H}\overline{\chi}(m)e(m\beta)/m with H≤qH\le q has modulus at most 1+log⁡q<2011+\log q<201, and Lemma 5.1 gives

∣∑n≤xχ(n)∣≤207q≤207log⁡log⁡3qlog⁡log⁡q.\left|\sum_{n\le x}\chi(n)\right|\le207\sqrt{q}\le\frac{207}{\log\log3}\sqrt{q}\log\log q.

The logarithmic derivative at s=1s=1

Recall that σ0=7/8+3/1000\sigma_0=7/8+3/1000 and that KK is the constant of Corollary 3.8.

Lemma 6.1. For every nonprincipal character χ\chi modulo qq,

−L′L(1,χ)=2∫1∞S(χ;t)t2 dt,-\frac{L'}{L}(1,\chi)=2\int_1^\infty\frac{S(\chi;t)}{t^2}\,dt,

and the integral converges absolutely.

Proof. By Lemma 3.1(i) with a=χΛa=\chi\Lambda, for real s>1s>1,

∫1∞S(χ;t)t−s−1 dt=−L′L(s,χ)1s(s+1).\int_1^\infty S(\chi;t)t^{-s-1}\,dt=-\frac{L'}{L}(s,\chi)\frac{1}{s(s+1)}.

As s→1+s\to1^+ the left side tends to ∫1∞S(χ;t)t−2 dt\int_1^\infty S(\chi;t)t^{-2}\,dt by dominated convergence, since ∣S(χ;t)∣≤Ktσ0log⁡(q+2)|S(\chi;t)|\le Kt^{\sigma_0}\log(q+2) and σ0<1\sigma_0<1. The function L(s,χ)L(s,\chi) is entire and does not vanish at s=1s=1 by Theorem 1.2, so the right side tends to −12L′L(1,χ)-\frac{1}{2}\frac{L'}{L}(1,\chi). □\square

Proof of Theorem 1.3(i). Let χ\chi be nonprincipal modulo qq, so q≥3q\ge3, and put

Y=(log⁡(q+2))1/(1−σ0)≥1.Y=(\log(q+2))^{1/(1-\sigma_0)}\ge1.

Since ∣S(χ;t)∣≤ψ(t)≤4t|S(\chi;t)|\le\psi(t)\le4t by Lemma 2.1(ii), Lemma 6.1 gives

∣L′L(1,χ)∣≤2∫1Y4 dtt+2Klog⁡(q+2)∫Y∞tσ0−2 dt=8log⁡log⁡(q+2)+2K1−σ0.\left|\frac{L'}{L}(1,\chi)\right|\le2\int_1^Y\frac{4\,dt}{t}+2K\log(q+2)\int_Y^\infty t^{\sigma_0-2}\,dt=\frac{8\log\log(q+2)+2K}{1-\sigma_0}.

As q+2≤q2q+2\le q^2, log⁡log⁡(q+2)≤log⁡2+log⁡log⁡q\log\log(q+2)\le\log2+\log\log q, and since log⁡log⁡q≥log⁡log⁡3>0\log\log q\ge\log\log3>0 the right side is at most Clog⁡log⁡qC\log\log q. □\square

For the lower bound in Theorem 1.3(ii) we need to control the prime powers n≤q17n\le q^{17} with n≡1(modq)n\equiv1\pmod q. We count them in dyadic blocks with Selberg’s sieve.

Lemma 6.2. Let qq be prime, let M≥1M\ge1 be an integer and let 1<z<q1<z<q. The number of mm with M≤m<2MM\le m<2M for which 1+mq1+mq is a prime power is at most

2Mlog⁡z+z(1+log⁡z)2+z.\frac{2M}{\log z}+z(1+\log z)^2+z.

Proof. If 1+mq=pk1+mq=p^k with p≤zp\le z, then pk∈(Mq,2Mq)p^k\in(Mq,2Mq), and for each prime pp at most one power of pp lies in this interval, since pk+1≥2pkp^{k+1}\ge2p^k. These mm number at most zz. If p>zp>z, then 1+mq1+mq has no prime factor up to zz, and we apply Lemma 2.2 to the MM integers am=1+mqa_m=1+mq, M≤m<2MM\le m<2M, with PP the product of the primes up to zz, ν(d)=1/d\nu(d) = 1/d and y=zy = z. Every prime p≤zp \le z differs from qq, so for d∣Pd \mid P the condition d∣1+mqd \mid1 + mq fixes mm in one residue class modulo dd, and ∣Rd∣≤1\lvert R_d\rvert\le1. Here g(l)=∏p∣l(p−1)−1g(l) = \prod_{p\mid l}(p-1)^{-1}, which is the sum of 1/n1/n over the nn whose set of prime factors is that of ll. Every n≤zn \le\sqrt{z} has all its prime factors at most zz and the product of its distinct prime factors is at most z\sqrt{z}, so

S=∑l∣Pl≤zg(l)≥∑n≤z1n≥log⁡z2.S = \sum_{\substack{l\mid P\\l\le\sqrt{z}}} g(l) \ge\sum_{n\le\sqrt{z}} \frac{1}{n} \ge\frac{\log z}{2}.

For squarefree dd, 3ω(d)=τ3(d)3^{\omega(d)} = \tau_3(d), and ∑d≤zτ3(d)=#{(a,b,c):abc≤z}≤z(∑a≤z1a)2≤z(1+log⁡z)2\sum_{d\le z} \tau_3(d) = \#\{(a,b,c):abc\le z\} \le z\left(\sum_{a\le z}\frac{1}{a}\right)^2 \le z(1+\log z)^2. Lemma 2.2 therefore bounds the number of these mm by 2M/log⁡z+z(1+log⁡z)22M/\log z+z(1+\log z)^2.

Lemma 6.3. There is an absolute constant C0C_0 such that for every prime q≥3q\ge3,

∑1<n≤q17n≡1(modq)Λ(n)n≤C0log⁡qlog⁡log⁡qq.\sum_{\substack{1<n\le q^{17}\\n\equiv1\pmod q}} \frac{\Lambda(n)}{n} \le C_0\frac{\log q\log\log q}{q}.

Proof. Write n=1+mqn=1+mq with 1≤m<q161\le m<q^{16}, and let J=⌊16log⁡2q⌋+1J=\lfloor16\log_2 q\rfloor+1, so that 2J>q162^J>q^{16} and J≤25log⁡qJ\le25\log q. We split the range of mm into the blocks 2j≤m<2j+12^j\le m<2^{j+1}, 0≤j<J0\le j<J (Figure 4), and let NjN_j be the number of mm in the jj-th block with 1+mq1+mq a prime power. We claim Nj≤393⋅2j/(j+1)N_j\le393\cdot2^j/(j+1). For j<32j<32 this holds trivially. For j≥32j\ge32 apply Lemma 6.2 with M=2jM=2^j and z=2uz=2^u, u=j/32≥1u=j/32\ge1. Since 2j<2J≤2q162^j<2^J\le2q^{16}, we have z<21/32q1/2<qz<2^{1/32}q^{1/2}<q. Then 2M/log⁡z=64⋅2j/(jlog⁡2)≤96⋅2j/(j+1)2M/\log z=64\cdot2^j/(j\log2)\le96\cdot2^j/(j+1), and since log⁡z≤u\log z\le u,

The dyadic blocks in the proof of Lemma 6.3

Figure 4. The dyadic blocks in the proof of Lemma 6.3. The block 2j≤m<2j+12^j \le m < 2^{j+1} contributes a constant part, of total size ≪J≪log⁡q\ll J \ll\log q, and a part of size log⁡q/(j+1)\log q/(j+1), whose total is ≪log⁡qlog⁡J\ll\log q\log J. The second part produces the factor log⁡log⁡q\log\log q.

z(1+log⁡z)2+z≤2u(2+u)2≤297⋅24u32u+1≤297⋅2jj+1,z(1+\log z)^2+z\le2^u(2+u)^2\le\frac{297\cdot2^{4u}}{32u+1}\le\frac{297\cdot2^j}{j+1},

because (2+u)2(32u+1)≤9u2⋅33u=297u3(2+u)^2(32u+1)\le9u^2\cdot33u=297u^3 and u3≤23uu^3\le2^{3u}. This proves the claim.

A term of the jj-th block has Λ(n)≤log⁡(1+2j+1q)≤(j+2)log⁡2+log⁡q\Lambda(n)\le\log(1+2^{j+1}q)\le(j+2)\log2+\log q and n>2jqn>2^jq, so the block contributes at most

393(j+1)q((j+2)log⁡2+log⁡q)≤393q(2log⁡2+log⁡qj+1).\frac{393}{(j+1)q}\bigl((j+2)\log2+\log q\bigr)\le\frac{393}{q}\left(2\log2+\frac{\log q}{j+1}\right).

Summing over j<Jj<J and using ∑j<J1/(j+1)≤1+log⁡J\sum_{j<J}1/(j+1)\le1+\log J, J≤25log⁡qJ\le25\log q and log⁡J≤4+log⁡log⁡q\log J\le4+\log\log q, the sum in the lemma is at most 393q(35log⁡q+5log⁡q+log⁡qlog⁡log⁡q)\frac{393}{q}(35\log q+5\log q+\log q\log\log q). Since log⁡log⁡q≥log⁡log⁡3>1/11\log\log q\ge\log\log3>1/11, this is at most C0log⁡qlog⁡log⁡q/qC_0\log q\log\log q/q with C0=393⋅441C_0=393\cdot441.

Proof of Theorem 1.3(ii). Let q≥3q \ge3 be prime and put c(n)=∑χ≠χ0χ(n)c(n)=\sum_{\chi\ne\chi_0}\chi(n), the sum over the nonprincipal characters modulo qq. By orthogonality c(n)=(q−1)1[n≡1(modq)]−1[q∤n]c(n)=(q-1)1[n\equiv1\pmod q]-1[q\nmid n]. Put

T(t)=∑χ≠χ0S(χ;t)=∑n≤tc(n)Λ(n)(1−nt),I=∫1∞T(t)t2 dt.T(t)=\sum_{\chi\ne\chi_0}S(\chi;t)=\sum_{n\le t}c(n)\Lambda(n)\left(1-\frac{n}{t}\right), \qquad I=\int_1^\infty\frac{T(t)}{t^2}\,dt.

By Lemma 6.1, ∑χ≠χ0L′L(1,χ)=−2I\sum_{\chi\ne\chi_0}\frac{L'}{L}(1,\chi)=-2I, so by (1) it suffices to show −Clog⁡q≤I≤Clog⁡qlog⁡log⁡q-C\log q\le I\le C\log q\log\log q.

By Corollary 3.8(i), ∣T(t)∣≤qKlog⁡(q+2)tσ0|T(t)|\le qK\log(q+2)t^{\sigma_0}. Let Y=q17Y=q^{17}. Since 17(σ0−1)<−217(\sigma_0-1)<-2 and log⁡(q+2)≤q\log(q+2)\le q,

∣∫Y∞T(t)t2 dt∣≤qKlog⁡(q+2)Yσ0−11−σ0≤Klog⁡(q+2)q(1−σ0)≤K1−σ0.\left|\int_Y^\infty\frac{T(t)}{t^2}\,dt\right|\le\frac{qK\log(q+2)Y^{\sigma_0-1}}{1-\sigma_0}\le\frac{K\log(q+2)}{q(1-\sigma_0)}\le\frac{K}{1-\sigma_0}.

For the lower bound, c(n)≥−1c(n)\ge-1 gives −T(t)≤ψ(t)≤4t-T(t)\le\psi(t)\le4t, so

−I≤∫1Y4 dtt+K1−σ0=68log⁡q+K1−σ0.-I\le\int_1^Y\frac{4\,dt}{t}+\frac{K}{1-\sigma_0}=68\log q+\frac{K}{1-\sigma_0}.

For the upper bound, c(n)≤(q−1)1[n≡1(modq)]c(n)\le(q-1)1[n\equiv1\pmod q] gives

∫1YT(t)t2 dt≤(q−1)∑n≤Yn≡1(modq)Λ(n)∫n∞(1−nt)dtt2=q−12∑1<n≤q17n≡1(modq)Λ(n)n,\begin{aligned} \int_1^Y\frac{T(t)}{t^2}\,dt\le(q-1)\sum_{\substack{n\le Y\\ n\equiv1\pmod q}}\Lambda(n)\int_n^\infty\left(1-\frac{n}{t}\right)\frac{dt}{t^2} \\ &=\frac{q-1}{2}\sum_{\substack{1<n\le q^{17}\\ n\equiv1\pmod q}}\frac{\Lambda(n)}{n}, \end{aligned}

which is at most C02log⁡qlog⁡log⁡q\frac{C_0}{2} \log q \log\log q by Lemma 6.3. Hence

I≤C02log⁡qlog⁡log⁡q+K1−σ0,I \leq\frac{C_0}{2}\log q\log\log q+\frac{K}{1-\sigma_0},

and both bounds follow since log⁡q>1\log q > 1 and log⁡log⁡q>1/11\log\log q > 1/11. □

Data availability

Deep Bhattacharjee computed the Lean formalisation and the Julia, C, C++, shell and Python computations with the help of AI assistance (Claude, Anthropic). The Lean formalisation of the proofs in this paper is archived at Zenodo, doi:10.5281/zenodo.23383716. The paper is available at https://github.com/creelie/Breakthrough-problems-3/blob/main/preprintPolyaVinogradovLogLog/PolyaVinogradovLogLog.pdf.

Competing interests

None.

Funding

None.

Formerly, Electro-Gravitational Space Propulsion Laboratory (EGSPL), Bhubaneswar, Odisha 751030, India

Email address: [email protected]

Email address: [email protected]

URL: https://orcid.org/0000-0003-0466-750X

Formerly, National Taiwan University, Taipei 106319, Taiwan

Email address: [email protected]

URL: https://orcid.org/0009-0002-2254-3914

References

  1. [1]Y. Ihara, V. K. Murty and M. Shimura, On the logarithmic derivatives of Dirichlet L-functions at s = 1, Acta Arith. 137 (2009), 253–276, doi:10.4064/aa137-3-6.DOI
  2. [2]H. L. Montgomery and R. C. Vaughan, Exponential sums with multiplicative coefficients, Invent. Math. 43 (1977), 69–82, doi:10.1007/BF01390204.DOI
  3. [3]OpenAI, The quasi-Riemann hypothesis: a zero-free half-plane Re s > 7/8, preprint, 30 September 2026, with a Lean 4 formalisation, https://github.com/openai/math.hub.valency.io/works/W_sj8ks5ag

Paper details

vlnc:W_5cvt9yy2

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

OpenAI ChatGPT GPT SOL 6.1 Ultra · View statement →

Looking for related papers…
Contents