betaFeedback

WorksMathematics

Quantitative lower bound for Pythagorean pairs in boxes of prime powers

Abstract

For each positive integer NN, let pip_i be the ii-th prime for i∈{1,…,N}i\in\{1,\ldots,N\}, and set ΦN={∏i=1Npiai:ai∈{0,1,…,N−1}}. Φ_N=\left\{\prod_{i=1}^{N}p_i^{a_i}:a_i\in\{0,1,\ldots,N-1\}\right\}. Write f(N)f(N) for the largest cardinality of a subset of ΦNΦ_N containing no two distinct legs of an integral right triangle. We prove NN−1(log⁡log⁡log⁡N)≪f(N). N^{N-1}(\log\log\log N)\ll f(N).

Introduction

History and motivations

The equation x2+y2=z2x^2+y^2=z^2 occupies a prominent place in the study of partition regularity. Erdős and Graham [8 Section 3, Problem 6] asked whether every finite colouring of N\mathbb{N} must contain a monochromatic solution of this equation.

The two-colour problem was initially investigated by computation. Cooper and Overstreet [3] produced, by a SAT computation, a colouring of {1,…,7664}\{1,\ldots,7664\} with no monochromatic Pythagorean triple. Subsequently, Heule, Kullmann, and Marek [9 Theorem 1] established by a certified cube-and-conquer computation, accompanied by a formally checkable certificate of approximately 200 terabytes, that {1,…,7824}\{1,\ldots,7824\} still admits such a colouring, whereas every two-colouring of {1,…,7825}\{1,\ldots,7825\} contains a monochromatic Pythagorean triple. Two recent independent preprints provide entirely theoretical proofs of the same two-colour result. Leng [12] uses analytic and ergodic methods, while Wesley [16] uses an elementary argument combining linear algebra with counting. Thus the two-colour question for finite initial intervals has been resolved; the analogous problem for three or more colours is still open.

A different direction is based on multiplicative harmonic analysis. Frantzikinakis and Host [4 Corollary 2.8 and Problem 3] developed higher-order Fourier methods for bounded multiplicative functions. They proved that the following holds: Suppose that aa, bb, cc, and a+ba+b are squares of positive integers. For the equation ax2+by2=cz2ax^2+by^2=cz^2, every finite colouring of N\mathbb{N} admits a solution x,y,z∈Nx,y,z\in\mathbb{N} with x≠yx\ne y and x,yx,y of the same colour. Their work also singled out the two-leg Pythagorean problem: find xx and yy of the same colour such that x2+y2=z2x^2+y^2=z^2 for some zz. Frantzikinakis, Klurman, and Moreira [6 Theorems 1.1–1.2] later proved that every finite colouring of N\mathbb{N} contains two distinct same-coloured legs with this property, and they established the corresponding assertions for the other two pairs of entries in a Pythagorean

2020 Mathematics Subject Classification. Primary 11B30; Secondary 11N37, 05D10.

Keywords: Pythagorean pairs, Quadratic characters, Quadratic nonresidues

This research is supported by the National Natural Science Foundation of China (No. 12426201), and by the Postdoctoral Fellowship Program of CPSF under Grant Number GZB20260746. triple. Their density theorem gives the same conclusion in every set of positive multiplicative density.

In subsequent work, Frantzikinakis, Klurman, and Moreira [5 Theorems 1.2–1.4 and 1.9–1.10] extended the same framework to generalized Pythagorean equations ax2+by2=cz2ax^2+by^2=cz^2. They obtained unconditional partition and density regularity for the relevant pairs whenever acac or bcbc is a square. In the complementary case in which (a+b)c(a+b)c is a square, they proved the corresponding assertions assuming an Elliott-type correlation conjecture, and they also obtained an unconditional result for pretentious multiplicative level sets. These theorems place the Pythagorean-pair problem in a wider theory of homogeneous quadratic forms.

The multiplicative viewpoint has continued to develop. Azevedo and Moreira [2] proved that finitely many completely multiplicative functions can simultaneously be close to 11 on the three entries of a Pythagorean triple, and they treated square coefficients satisfying Rado’s condition. Frantzikinakis and Mountakis [7] established an analogous recurrence theorem for generalized triples ax2+by2=cz2ax^2+by^2=cz^2 in pretentious systems. Leng, McNamara, and Mountakis [13] obtained almost-Pythagorean quadruples x2+y2w2=z2x^2+y^2w^2=z^2 in multiplicatively dense sets, allowing ww to belong to a second dense set.

The purpose of the present paper is to make this picture quantitative in a finite model. We replace an arbitrary multiplicative Følner sequence by the explicit prime-power boxes introduced below and prove a decay estimate for the largest subset containing no two distinct legs of an integral right triangle.

Prime boxes and the main result

For a positive integer NN, let p1<p2<⋯<pNp_1<p_2<\cdots<p_N denote the first NN primes. We work in the prime-power box

ΦN={∏i=1Npiai:ai∈{0,1,…,N−1}}.\Phi_N=\left\{\prod_{i=1}^{N}p_i^{a_i}:a_i\in\{0,1,\ldots,N-1\}\right\}.

Unique factorisation gives ∣ΦN∣=NN|\Phi_N|=N^N, and the map

(a1,…,aN)⟼∏i=1Npiai(a_1,\ldots,a_N)\longmapsto\prod_{i=1}^{N}p_i^{a_i}

identifies this set with the box of exponent vectors {0,…,N−1}N\{0,\ldots,N-1\}^N. It is easy to see that Φ=(ΦN)N∈N\Phi=(\Phi_N)_{N\in\mathbb{N}} is a multiplicative Følner sequence on N\mathbb{N}.

Call a set A⊆ΦNA\subseteq\Phi_N admissible when no two distinct elements of AA are the legs of an integral right triangle; that is, there are no distinct u,v∈Au,v\in A and no w∈Nw\in\mathbb{N} satisfying u2+v2=w2u^2+v^2=w^2. Define f:N→Nf:\mathbb{N}\to\mathbb{N} by

f(N)=max⁡{∣A∣:A⊆ΦN is admissible}.f(N)=\max\{|A|:A\subseteq\Phi_N\text{ is admissible}\}.

The hypotenuse ww is unrestricted; in particular, it need not lie in AA or in the same prime-power box. The elementary congruence obstruction already gives f(N)≥NN−1f(N)\ge N^{N-1}: restrict to the elements whose exponent of 22 is zero. They are all odd, and the sum of two odd squares is 2(mod4)2\pmod4, so it cannot be a square. The following theorem gives a logarithmic improvement:

Theorem 1.1. There is an absolute positive integer N0N_0 such that, for every N∈NN\in\mathbb{N} with N≥N0N\ge N_0,

f(N)≥aκ24NN−1(log⁡log⁡log⁡N),(1)f(N)\ge\frac{a\kappa}{24}N^{N-1}(\log\log\log N), \tag*{(1)}

where the positive real constants a,b,κa,b,\kappa are

a=12log⁡2,b=4log⁡2,κ=132(1+c2b).a=\frac{1}{2}\log2,\qquad b=4\log2,\qquad\kappa=\frac{1}{32(1+c_2b)}.

Here c2>0c_2>0 denotes the absolute constant in part (b) of Theorem 4.1.

Combining the above lower bound and [17 Theorem 1.1], we have

NN−1(log⁡log⁡log⁡N)≪f(N)≪NN(log⁡log⁡N)−1/1296.N^{N-1}(\log\log\log N) \ll f(N) \ll N^N(\log\log N)^{-1/1296}.

Structure of the paper. § 2 outlines the proof of the main result. § 3 records the prime estimates and quadratic characters used throughout. § 4 states the required bounds for zeros of Dirichlet LL-functions and proves a smoothed explicit formula. § 5 removes a possible exceptional character by omitting one odd prime from the allowed conductors. § 6 constructs a set of residues in which every sum of two squares is a quadratic nonresidue. § 7 combines these ingredients and proves Theorem 1.1.

Notation. We write N={1,2,…}\mathbb{N}=\{1,2,\ldots\}, Z≥0={0,1,2,…}\mathbb{Z}_{\geq0}=\{0,1,2,\ldots\}, and use Z,R,C\mathbb{Z},\mathbb{R},\mathbb{C} for the integers, real numbers, and complex numbers. The notation R>0\mathbb{R}_{>0} denotes the positive real numbers, and P={2,3,5,…}\mathcal{P}=\{2,3,5,\ldots\} is the set of all prime numbers. For p∈Pp\in\mathcal{P} and n∈Nn\in\mathbb{N}, let

vp(n)=max⁡{k∈Z≥0:pk∣n}.v_p(n)=\max\{k\in\mathbb{Z}_{\geq0}:p^k\mid n\}.

All logarithms are natural. For t∈R>0t\in\mathbb{R}_{>0} and j∈Nj\in\mathbb{N}, set

log⁡1t=log⁡t,log⁡j+1t=log⁡(log⁡jt),\log_1 t=\log t,\qquad\log_{j+1}t=\log(\log_j t),

where the second expression is used only when log⁡jt>0\log_j t>0 and all preceding iterates are defined.

The notations A≲d1,…,dkBA\lesssim_{d_1,\ldots,d_k}B and A≪d1,…,dkBA\ll_{d_1,\ldots,d_k}B mean A≤Cd1,…,dkBA\leq C_{d_1,\ldots,d_k}B, where Cd1,…,dk∈R>0C_{d_1,\ldots,d_k}\in\mathbb{R}_{>0} depends only on those data. The notation A≍d1,…,dkBA\asymp_{d_1,\ldots,d_k}B means both comparison inequalities. For a real or complex quantity AA and B≥0B\geq0 real, A=Od1,…,dk(B)A=O_{d_1,\ldots,d_k}(B) means ∣A∣≪d1,…,dkB|A|\ll_{d_1,\ldots,d_k}B. The notation A=o(B)A=o(B) means A/B→0A/B\to0 in the stated limit, with B>0B>0. For positive quantities AA and BB, we write A∼BA\sim B when A/B→1A/B\to1 in the stated limit.

Declaration on the use of AI. The mathematical results, arguments, and proofs in this paper were developed by the author, who takes full responsibility for the final manuscript. AI tools were used only for language polishing and to assist with literature searches .

Conflict of Interest Statement. The author states that there is no conflict of interest.

Proof outline of the main result

The proof combines a congruence obstruction with estimates for quadratic characters. The congruence obstruction produces an admissible set once a suitable prime is available. The analytic argument finds that prime while allowing one exception among the prescribed quadratic residues. The finite-field construction is designed to tolerate this exception.

The congruence obstruction and the desired scale. Suppose that q>pNq>p_N is prime and that, for a large integer KK, a set S⊂Fq×S\subset\mathbb{F}_q^\times satisfies

∣S∣≥K/6−1,(s2+t2q)=−1(s,t∈S).(2)|S|\geq K/6-1,\qquad\left(\frac{s^2+t^2}{q}\right)=-1\quad(s,t\in S). \tag*{(2)}

Multiplication by c∈Fq×c\in\mathbb{F}_q^\times preserves the second property, because c2c^2 is a nonzero square. Thus Bc={n∈ΦN:n mod q∈cS}B_c=\{n\in\Phi_N:n\bmod q\in cS\} is admissible: an equality u2+v2=w2u^2+v^2=w^2 with u,v∈Bcu,v\in B_c would make a quadratic nonresidue modulo qq equal to a square. Every element of ΦN\Phi_N is nonzero modulo qq and belongs to exactly ∣S∣|S| of these sets. Consequently,

f(N)≥NN∣S∣q−1.(3)f(N)\geq\frac{N^N|S|}{q-1}. \tag*{(3)}

This averaging argument requires no information about how ΦN\Phi_N is distributed among residue classes. Let yy be the small-prime cutoff to be chosen below. If pN<q<2pNp_N<q<2p_N and K≍yK\asymp y, Chebyshev’s estimates give a lower bound of order NN−1y/log⁡pNN^{N-1}y/\log p_N. We therefore seek a prime of this size for which yy can exceed log⁡pN\log p_N by a growing factor.

Constructing the residues. The required prime will satisfy q≡5(mod8)q \equiv5 \pmod{8}, with every odd prime at most yy a quadratic residue modulo qq, except possibly one prime. Put K=⌊y⌋<qK = \lfloor y \rfloor< q. Start with the integers u∈[1,K]u \in[1,K] satisfying u≡1(mod4)u \equiv1 \pmod{4}. For any two such integers, (u+v)/2(u+v)/2 is an odd integer at most KK. If neither uu nor (u+v)/2(u+v)/2 is divisible by the possible omitted prime, both are quadratic residues modulo qq. Since (2q)=−1\left(\frac{2}{q}\right)=-1, the identity u+v=2((u+v)/2)u+v=2((u+v)/2) makes u+vu+v a quadratic nonresidue.

If the omitted prime is rr, first remove multiples of rr. Then partition the nonzero residue classes modulo rr into pairs {a,−a}\{a,-a\}. In each pair, choose the class represented by more of the remaining integers; if the counts agree, choose either class. This retains at least half of the integers and ensures r∤u+vr\nmid u+v for all selected u,vu,v. The resulting set UU satisfies ∣U∣≥K/12−1/2|U|\ge K/12-1/2. Taking both square roots modulo qq of each u∈Uu\in U gives (2). Thus omitting one prime costs only a fixed proportion of the construction.

Removing the possible exceptional character. For sufficiently large xx, choose

L=log⁡x,J=log⁡L,T=log⁡J,y=κLT=κlog⁡xlog⁡3x.(4)L=\log x,\qquad J=\log L,\qquad T=\log J,\qquad y=\kappa LT=\kappa\log x\log_3 x. \tag*{(4)}

Let Py=∏p∈Pp≤ypP_y=\prod_{\substack{p\in\mathbb{P}\\p\le y}}p, H=log⁡PyH=\log P_y, and let Cy\mathcal{C}_y be the family of primitive real characters whose conductors divide 4Py4P_y. The Lau–Wu theorem (see Theorem 4.1) permits at most one zero in its specified region near 11, and that zero must be real. Such a zero could contribute a term comparable with xx in the explicit formula, so we exclude its character before summing the errors.

Lemma 5.1 shows that this character, if it exists, has an odd prime divisor in its conductor. Omitting this prime from PyP_y excludes the character. Denote the omitted set by EyE_y, with ∣Ey∣≤1|E_y|\le1. Retain precisely those characters in Cy\mathcal{C}_y whose conductors are not divisible by any prime in EyE_y, and denote this family by Dy\mathcal{D}_y. Its LL-functions have no zeros with ℜs≥1−η(y)\Re s\ge1-\eta(y) and ∣ℑs∣≤H|\Im s|\le H, where η(y)=c1log⁡H/(2H)\eta(y)=c_1\sqrt{\log H/(2H)} as in Theorem 4.1. The preceding construction explains why this analytic omission is compatible with the congruence argument.

Controlling the sum of the character errors. We need an estimate for all characters together:

∑χ∈Dy∣Tx(χ)−1χ=χ1xW(1)∣=o(x),(5)\sum_{\chi\in\mathcal{D}_y}\left|T_x(\chi)-1_{\chi=\chi_1}xW(1)\right|=o(x), \tag*{(5)}

Here χ1\chi_1 is the principal character, and TxT_x, WW, and the weight hh are defined in Lemma 4.2. An error of size o(x)o(x) for each character separately would not suffice, because the number of characters grows with xx.

The choice (4) makes the required sum small. Indeed, H≍LTH\asymp LT, log⁡H∼J\log H\sim J, and log⁡∣Cy∣=O(LT/J)\log|\mathcal{C}_y|=O(LT/J). With ε=J−1/2\varepsilon=J^{-1/2}, this last quantity is o(εL)o(\varepsilon L). Hence the factor x−εx^{-\varepsilon} absorbs the number of characters when bounding zeros with ℜs<1−ε\Re s<1-\varepsilon and ∣ℑs∣≤H|\Im s|\le H. For zeros nearer 11 in the same height range, the Lau–Wu bounds control their total number across the family. Combining these bounds with the absence of zeros for ℜs≥1−η(y)\Re s\ge1-\eta(y) bounds their contribution by a constant times

xlog⁡H(e−3εL/4+e−3η(y)L/4)=o(x).x\sqrt{\log H}\left(e^{-3\varepsilon L/4}+e^{-3\eta(y)L/4}\right)=o(x).

Here η(y)L≍J/T\eta(y)L\asymp\sqrt{J}/T grows faster than log⁡log⁡H∼T\log\log H\sim T, as does εL=L/J\varepsilon L=L/\sqrt{J}. The exponential decay of WW controls zeros with ∣ℑs∣>H|\Im s|>H, and the explicit-formula errors also sum to o(x)o(x). These estimates establish (5).

Finding the prime and completing the argument. The product FyF_y in (43) encodes the required residue conditions through factors of the form 1+χ(n)1+\chi(n) or 1−χ(n)1-\chi(n). Every factor is nonnegative. Expanding the product gives exactly the characters of Dy\mathcal{D}_y, each with coefficient 1 or −1-1, and the principal character has coefficient 1. Thus (5) yields

∑p∈P(log⁡p)h(p/x)Fy(p)=xW(1)+o(x)>0.\sum_{p\in\mathcal{P}}(\log p)h(p/x)F_y(p)=xW(1)+o(x)>0.

The weight satisfies h(t)≤0h(t)\leq0 outside (1,2)(1,2). Positivity therefore supplies a prime q∈(x,2x)q\in(x,2x) with Fy(q)>0F_y(q)>0. The factors force q≡5(mod8)q\equiv5\pmod{8} and (rq)=1\left(\frac{r}{q}\right)=1 for every odd prime r≤yr\leq y outside EyE_y.

Finally, take x=pNx=p_N, apply the finite-field construction, and use (3). The scale y=κlog⁡pNlog⁡3pNy=\kappa\log p_N\log_3 p_N gives the factor log⁡3N\log_3 N. Section 7 supplies the estimates and obtains the constant aκ/24a\kappa/24.

Preliminaries

Prime estimates

For t∈R>0t\in\mathbb{R}_{>0}, let

π(t)=#{p∈P:p≤t},ϑ(t)=∑p∈Pp≤tlog⁡p,ψ(t)=∑p∈P,j∈Npj≤tlog⁡p.\pi(t)=\#\{p\in\mathcal{P}:p\leq t\},\qquad\vartheta(t)=\sum_{\substack{p\in\mathcal{P}\\p\leq t}}\log p,\qquad\psi(t)=\sum_{\substack{p\in\mathcal{P},\,j\in\mathbb{N}\\p^j\leq t}}\log p.

We shall use only the following elementary form of Chebyshev’s estimates.

Lemma 3.1. There is a real constant t0≥2t_0\geq2 such that, for every real t≥t0t\geq t_0,

at≤ϑ(t)≤bt,atlog⁡t≤π(t)≤8tlog⁡t,(6)at\leq\vartheta(t)\leq bt,\qquad\frac{at}{\log t}\leq\pi(t)\leq\frac{8t}{\log t}, \tag*{(6)}

where a=12log⁡2a=\frac{1}{2}\log2 and b=4log⁡2b=4\log2.

Proof. We first compare ψ\psi with central binomial coefficients, then remove the higher prime powers and estimate π\pi.

Step 1. The binomial comparison. For p∈Pp\in\mathcal{P} and m∈Nm\in\mathbb{N}, let vp(m)v_p(m) denote the exponent of pp in the prime factorisation of mm. Counting multiples of each power of pp in m!m! gives

vp(m!)=∑j∈Npj≤m⌊mpj⌋.v_p(m!)=\sum_{\substack{j\in\mathbb{N}\\p^j\leq m}}\left\lfloor\frac{m}{p^j}\right\rfloor.

Indeed, a factor of m!m! divisible by prp^r but not by pr+1p^{r+1}, where r∈Z≥0r\in\mathbb{Z}_{\geq0}, is counted once for each j∈{1,…,r}j\in\{1,\ldots,r\}. Empty sums are understood to be zero. Unique factorisation therefore gives, for every n∈Nn\in\mathbb{N},

log⁡(2nn)=∑p∈Pp≤2n∑j=1⌊log⁡(2n)/log⁡p⌋(⌊2npj⌋−2⌊npj⌋)log⁡p.\log\binom{2n}{n} =\sum_{\substack{p\in\mathcal{P}\\p\leq2n}}\sum_{j=1}^{\lfloor\log(2n)/\log p\rfloor} \left(\left\lfloor\frac{2n}{p^j}\right\rfloor-2\left\lfloor\frac{n}{p^j}\right\rfloor\right)\log p.

Each parenthesised expression is 0 or 1, since ⌊2u⌋−2⌊u⌋∈{0,1}\lfloor2u\rfloor-2\lfloor u\rfloor\in\{0,1\} for every real u≥0u\geq0. It equals 1 whenever n<pj≤2nn<p^j\leq2n. Thus

ψ(2n)−ψ(n)≤log⁡(2nn)≤ψ(2n)(n∈N).(7)\psi(2n)-\psi(n)\leq\log\binom{2n}{n}\leq\psi(2n)\qquad(n\in\mathbb{N}). \tag*{(7)}

The central coefficient is the largest of the coefficients (2nk)\binom{2n}{k}, k∈{0,…,2n}k\in\{0,\ldots,2n\}: their successive ratio is (2n−k)/(k+1)(2n-k)/(k+1) for k∈{0,…,2n−1}k\in\{0,\ldots,2n-1\}, which is greater than 1 for k<nk<n and less than 1 for k≥nk\geq n. The binomial theorem gives

∑k=02n(2nk)=22n,22n2n+1≤(2nn)≤22n.(8)\sum_{k=0}^{2n}\binom{2n}{k}=2^{2n},\qquad\frac{2^{2n}}{2n+1}\leq\binom{2n}{n}\leq2^{2n}. \tag*{(8)}

Step 2. Linear bounds for ψ\psi. For real t≥2t \ge2, set n=⌊t/2⌋∈Nn = \lfloor t/2 \rfloor\in\mathbb{N}. Since t−2≤2n≤tt - 2 \le2n \le t, the monotonicity of ψ\psi and (7)–(8) imply

ψ(t)≥ψ(2n)≥2nlog⁡2−log⁡(2n+1)≥(t−2)log⁡2−log⁡(t+1).(9)\psi(t) \ge\psi(2n) \ge2n \log2 - \log(2n + 1) \ge(t - 2) \log2 - \log(t + 1). \tag*{(9)}

For the upper bound, let u≥1u \ge1 be real and put J=⌊log⁡u/log⁡2⌋∈Z≥0J = \lfloor\log u / \log2 \rfloor\in\mathbb{Z}_{\ge0}. Then 2J≤u<2J+12^J \le u < 2^{J+1}. Apply (7)–(8) with n=2jn = 2^j for each j∈{0,…,J}j \in\{0, \ldots, J\}. Using ψ(1)=0\psi(1) = 0, we obtain

ψ(u)≤ψ(2J+1)=∑j=0J(ψ(2j+1)−ψ(2j))≤(log⁡2)∑j=0J2j+1=(2J+2−2)log⁡2≤4ulog⁡2.(10)\psi(u) \le\psi(2^{J+1}) = \sum_{j=0}^{J} \left(\psi(2^{j+1}) - \psi(2^j)\right) \le(\log2) \sum_{j=0}^{J} 2^{j+1} = (2^{J+2} - 2) \log2 \le4u \log2. \tag*{(10)}

In particular, ϑ(u)≤ψ(u)≤bu\vartheta(u) \le\psi(u) \le bu for every real u≥1u \ge1.

Step 3. Removing higher prime powers. For real t≥2t \ge2, let K=⌊log⁡t/log⁡2⌋∈NK = \lfloor\log t / \log2 \rfloor\in\mathbb{N}. No prime power pj≤tp^j \le t can have j>Kj > K, since p≥2p \ge2. Grouping the terms of ψ(t)\psi(t) by their exponent, and applying (10), gives

0≤ψ(t)−ϑ(t)=∑j=2Kϑ(t1/j)≤b∑j=2Kt1/j≤b(K−1)t≤4tlog⁡t.0 \le\psi(t) - \vartheta(t) = \sum_{j=2}^{K} \vartheta(t^{1/j}) \le b \sum_{j=2}^{K} t^{1/j} \le b(K - 1)\sqrt{t} \le4\sqrt{t}\log t.

Here t1/j≤tt^{1/j} \le\sqrt{t} for every integer j≥2j \ge2, and K≤log⁡t/log⁡2K \le\log t / \log2; the sums are empty when K=1K = 1. Together with (9), this yields

ϑ(t)≥tlog⁡2−E(t),E(t)=2log⁡2+log⁡(t+1)+4tlog⁡t.(11)\vartheta(t) \ge t \log2 - E(t), \qquad E(t) = 2\log2 + \log(t + 1) + 4\sqrt{t}\log t. \tag*{(11)}

Since E(t)/t→0E(t)/t \to0 as t→∞t \to\infty, there is a real t1≥2t_1 \ge2 such that E(t)≤atE(t) \le at for all real t≥t1t \ge t_1. As log⁡2=2a\log2 = 2a, (10) and (11) give

at≤ϑ(t)≤bt(t≥t1).at \le\vartheta(t) \le bt \qquad(t \ge t_1).

Step 4. Bounds for the prime-counting function. For real t≥t1t \ge t_1, each prime p≤tp \le t satisfies log⁡p≤log⁡t\log p \le\log t, so

π(t)≥ϑ(t)log⁡t≥atlog⁡t.\pi(t) \ge\frac{\vartheta(t)}{\log t} \ge\frac{at}{\log t}.

For the upper bound, there are at most t\sqrt{t} primes at most t\sqrt{t}, and every prime p>tp > \sqrt{t} satisfies log⁡p>12log⁡t\log p > \frac{1}{2}\log t. Consequently,

π(t)=π(t)+∑t<p≤t1≤t+2log⁡t∑t<p≤tlog⁡p≤(8log⁡2+log⁡tt)tlog⁡t.\pi(t) = \pi(\sqrt{t}) + \sum_{\sqrt{t}<p\le t} 1 \le\sqrt{t} + \frac{2}{\log t}\sum_{\sqrt{t}<p\le t}\log p \le\left(8\log2 + \frac{\log t}{\sqrt{t}}\right)\frac{t}{\log t}.

Because log⁡2<1\log2 < 1 and (log⁡t)/t→0(\log t)/\sqrt{t} \to0, we may choose a real t0≥t1t_0 \ge t_1 such that

log⁡tt≤8(1−log⁡2)\frac{\log t}{\sqrt{t}} \le8(1-\log2)

for every real t≥t0t \ge t_0. The last display then gives π(t)≤8t/log⁡t\pi(t) \le8t/\log t, completing the proof. □\square

Quadratic characters

For real y≥100y \ge100, put

Py=∏p∈Pp≤yp,Hy=log⁡Py=ϑ(y).(12)P_y = \prod_{\substack{p\in\mathcal{P}\\p\le y}} p, \qquad H_y = \log P_y = \vartheta(y). \tag*{(12)}

When yy is fixed, we also write H=HyH = H_y. We use the standard discriminant notation

χD(n)=(Dn)(n∈Z),cond⁡(χD)=∣D∣,\chi_D(n) = \left(\frac{D}{n}\right) \qquad(n \in\mathbb{Z}), \qquad\operatorname{cond}(\chi_D) = |D|,

where the symbol is the Kronecker symbol and D∈Z∖{0}D \in\mathbb{Z} \setminus\{0\} is a fundamental discriminant. Explicitly, either DD is squarefree and D≡1(mod4)D \equiv1 \pmod{4}, or D=4bD = 4b with b∈Zb \in\mathbb{Z} squarefree and b≡2,3(mod4)b \equiv2, 3 \pmod{4}. We include D=1D = 1, for which χ1(n)=1\chi_1(n) = 1 for every n∈Zn \in\mathbb{Z}. The correspondence D↦χDD \mapsto\chi_D is a bijection onto the primitive real Dirichlet characters; see [11 Section 1].

The family needed below is

Cy={χD:D is a fundamental discriminant, ∣D∣∣4Py}.(13)\mathcal{C}_y=\{\chi_D : D \text{ is a fundamental discriminant},\ |D| \mid4P_y\}. \tag*{(13)}

Its members can be listed explicitly. For each positive divisor dd of Py/2P_y/2, define

d∗=(−1)(d−1)/2d=∏r∈P,r>2r∣dr∗,r∗=(−1)(r−1)/2r(r∈P, r>2).d^*=(-1)^{(d-1)/2}d=\prod_{\substack{r\in\mathcal{P},\,r>2\\r\mid d}}r^*,\qquad r^*=(-1)^{(r-1)/2}r\quad(r\in\mathcal{P},\ r>2).

Here dd is odd and squarefree, d∗≡1(mod4)d^*\equiv1\pmod{4}, and 1∗=11^*=1. The product identity follows by multiplying the signs for the odd prime factors of dd. The four possibilities are

Discriminant DDCharacterConductor ∣D∣|D|
d∗d^*χd∗\chi_{d^*}dd
−4d∗-4d^*χ−4d∗\chi_{-4d^*}4d4d
8d∗8d^*χ8d∗\chi_{8d^*}8d8d
−8d∗-8d^*χ−8d∗\chi_{-8d^*}8d8d

Table 1.

Indeed, the definition of a fundamental discriminant permits only the exponents 0,2,30,2,3 at 22. For each odd divisor dd of Py/2P_y/2, the congruence condition fixes the sign when the exponent is 00 or 22, and permits both signs when it is 33. This proves that the table is exhaustive. It has no repetitions: writing ∣D∣=2jd|D|=2^jd with dd odd uniquely determines dd, and the exponent jj and the sign of DD distinguish the four rows. Consequently,

Ry=∣Cy∣=4⋅2π(y)−1=2π(y)+1,cond⁡(χD)≤8d≤4Py.(14)R_y=|\mathcal{C}_y|=4\cdot2^{\pi(y)-1}=2^{\pi(y)+1},\qquad\operatorname{cond}(\chi_D)\le8d\le4P_y. \tag*{(14)}

In particular, χ1\chi_1 occurs exactly once. For example, d=3d=3 gives the discriminants −3,12,−24,24-3,12,-24,24. The last two characters have the same conductor 2424, but opposite parity, since χD(−1)=sgn⁡D\chi_D(-1)=\operatorname{sgn}D.

Multiplicativity of the Kronecker symbol gives the identities

χd∗=∏r∈P,r>2r∣dχr∗,χ−4d∗=χ−4χd∗,χ8d∗=χ8χd∗,χ−8d∗=χ−4χ8χd∗.(15)\begin{aligned} \chi_{d^*}&=\prod_{\substack{r\in\mathcal{P},\,r>2\\r\mid d}}\chi_{r^*},\qquad\chi_{-4d^*}=\chi_{-4}\chi_{d^*},\\ \chi_{8d^*}&=\chi_8\chi_{d^*},\qquad\chi_{-8d^*}=\chi_{-4}\chi_8\chi_{d^*}. \tag*{(15)} \end{aligned}

These are identities on all of Z\mathbb{Z}. In the last identity, χ−4χ8=χ−8\chi_{-4}\chi_8=\chi_{-8}: on odd integers this follows from (4/n)=1(4/n)=1, and on even integers both sides vanish.

Analytic input

For a Dirichlet character χ\chi modulo QQ, its Dirichlet LL-function is initially defined, for ℜs>1\Re s>1, by the absolutely convergent series and Euler product

L(s,χ)=∑n=1∞χ(n)ns=∏p∈P(1−χ(p)ps)−1.L(s,\chi)=\sum_{n=1}^{\infty}\frac{\chi(n)}{n^s}=\prod_{p\in\mathcal{P}}\left(1-\frac{\chi(p)}{p^s}\right)^{-1}.

It has a meromorphic continuation to C\mathbb{C}: it is entire when χ\chi is nonprincipal, while for a principal character it has a single simple pole at s=1s=1. In particular, for the principal primitive character χ1\chi_1 of conductor 11, L(s,χ1)=ζ(s)L(s,\chi_1)=\zeta(s). All zeros below are counted with their orders of vanishing. These standard properties are recorded, for example, in [1 Sections 11.5, 12.1, 12.6, and 12.10].

We need two analytic inputs. The first bounds the zeros of the LL-functions associated with Cy\mathcal{C}_y. The second expresses a weighted sum over primes in terms of these zeros.

The Lau–Wu estimates

Theorem 4.1 (Lau–Wu, [11, Lemmas 4.1 and 4.3; Equation (5.7)]). There are absolute real constants c1,c2,C>0c_1,c_2,C>0 and y0≥100y_0\ge100 such that the following assertions hold for every real y≥y0y\ge y_0. Enlarge y0y_0, if necessary, so that Hy>e4H_y>e^4.

(a) Put

η(y)=c1log⁡Hy2Hy.\eta(y)=\frac{c_1\sqrt{\log H_y}}{2H_y}.

The product ∏χ∈CyL(s,χ)\prod_{\chi\in\mathcal{C}_y}L(s,\chi), for s∈Cs\in\mathbb{C}, has at most one zero, counted with multiplicity, in

ℜs≥1−2η(y),∣ℑs∣≤Hy.\Re s\ge1-2\eta(y),\qquad|\Im s|\le H_y.

If such a zero exists, it is real.

(b) Define

L1(s;y)=∏d∈Nd∣Py/2L(s,χd∗)L(s,χ8d∗),L4(s;y)=∏d∈Nd∣Py/2L(s,χ−4d∗)L(s,χ−8d∗).\mathcal{L}_1(s;y)=\prod_{\substack{d\in\mathbb{N}\\d\mid P_y/2}}L(s,\chi_d^*)L(s,\chi_{8d}^*),\qquad \mathcal{L}_4(s;y)=\prod_{\substack{d\in\mathbb{N}\\d\mid P_y/2}}L(s,\chi_{-4d}^*)L(s,\chi_{-8d}^*).

For ℓ∈{1,4}\ell\in\{1,4\} and 0≤α≤10\le\alpha\le1, let Nℓ(α;y)N_\ell(\alpha;y) count, with multiplicity, the zeros of Lℓ(s;y)\mathcal{L}_\ell(s;y) in α≤ℜs≤1\alpha\le\Re s\le1 and ∣ℑs∣≤Hy|\Im s|\le H_y. Put

k=⌊log⁡Hy⌋,k≥2,η1(y)=k2(2k−2).k=\left\lfloor\sqrt{\log H_y}\right\rfloor,\qquad k\ge2,\qquad\eta_1(y)=\frac{k}{2(2^k-2)}.

For real 0<t<1/20<t<1/2,

Nℓ(1−t;y)≤{Cexp⁡(c2tHylog⁡Hy+12log⁡2Hy),t≤η1(y),Cexp⁡(c2tHylog⁡(1/t)),t>η1(y).N_\ell(1-t;y)\le \begin{cases} C\exp\left(\dfrac{c_2tH_y}{\sqrt{\log H_y}}+\dfrac{1}{2}\log_2 H_y\right),&t\le\eta_1(y),\\ C\exp\left(\dfrac{c_2tH_y}{\log(1/t)}\right),&t>\eta_1(y). \end{cases}

(c) If χ∈Cy\chi\in\mathcal{C}_y has conductor Q∈NQ\in\mathbb{N} and T∈RT\in\mathbb{R} satisfies T≥2T\ge2, then

#{ρ∈C:L(ρ,χ)=0, 0<ℜρ<1, ∣ℑρ∣≤T}≪Tlog⁡(Q(T+2)),\#\{\rho\in\mathbb{C}:L(\rho,\chi)=0,\ 0<\Re\rho<1,\ |\Im\rho|\le T\}\ll T\log(Q(T+2)),

with multiplicity. A possible zero at s=0s=0 contributes at most one.

A smoothed explicit formula

The next lemma relates weighted prime sums to zeros of L(s,χ)L(s,\chi).

Lemma 4.2. Define h:(0,∞)→Rh:(0,\infty)\to\mathbb{R} and W:{s∈C:ℜs>−35}→CW:\{s\in\mathbb{C}:\Re s>-35\}\to\mathbb{C} by

h(t)=t35e−24t(t−1)(2−t),W(s)=∫0∞h(t)ts−1 dt.h(t)=t^{35}e^{-24t}(t-1)(2-t),\qquad W(s)=\int_0^\infty h(t)t^{s-1}\,dt.

For a primitive Dirichlet character χ:Z→C\chi:\mathbb{Z}\to\mathbb{C} of conductor Q∈NQ\in\mathbb{N}, define

Tx(χ)=∑p∈P(log⁡p)χ(p)h(p/x),x∈R,x≥2.T_x(\chi)=\sum_{p\in\mathbb{P}}(\log p)\chi(p)h(p/x),\qquad x\in\mathbb{R},\quad x\ge2.

Let $\mathcal{Z}_\chi be the multiset consisting of all nontrivial zeros ρ∈C\rho\in\mathbb{C} of L(s,χ)L(s,\chi) with $0<\Re\rho<1$, together with the zero ρ=0\rho=0 if L(0,χ)=0L(0,\chi)=0. Each zero is repeated according to its order of vanishing. Then

Tx(χ)=1χ=χ1xW(1)−∑ρ∈ZχW(ρ)xρ+O(xlog⁡2(x+2)+x−1/2log⁡(Q+2)).(16)T_x(\chi)=\mathbf{1}_{\chi=\chi_1}xW(1)-\sum_{\rho\in\mathcal{Z}_\chi}W(\rho)x^\rho+O\left(\sqrt{x}\log^2(x+2)+x^{-1/2}\log(Q+2)\right). \tag*{(16)}

The sum over zeros is absolutely convergent. Moreover, there is a real constant Ch>0C_h>0, depending only on hh, such that

W(1)>0,∣W(σ+iτ)∣≤Che−∣τ∣(σ,τ∈R, −12≤σ≤2).(17)W(1)>0,\qquad|W(\sigma+i\tau)|\le C_he^{-|\tau|}\qquad\left(\sigma,\tau\in\mathbb{R},\ -\frac12\le\sigma\le2\right). \tag*{(17)}

Proof. We first evaluate the Mellin transform, then apply the residue theorem to the weighted sum over prime powers, and finally remove the higher prime powers. All implied constants below are absolute, since hh is fixed.

Step 1. The Mellin transform. The function hh is positive on (1,2)(1,2) and nonpositive on (0,1]∪[2,∞)(0,1] \cup[2,\infty). It satisfies h(t)=O(t35)h(t) = O(t^{35}) as t↓0t \downarrow0 and decays exponentially as t→∞t \to\infty. Hence the integral defining W(s)W(s), and its derivatives with respect to ss, converge locally uniformly for ℜs>−35\Re s > -35. Thus WW is holomorphic there. Expanding (t−1)(2−t)=−t2+3t−2(t-1)(2-t) = -t^2 + 3t - 2 and integrating each term gives

W(s)=−24−s−37Γ(s+37)+3⋅24−s−36Γ(s+36)−2⋅24−s−35Γ(s+35)=24−s−37Γ(s+35)(108+s−s2).\begin{aligned} W(s) = -24^{-s-37}\Gamma(s+37) + 3 \cdot24^{-s-36}\Gamma(s+36) - 2 \cdot24^{-s-35}\Gamma(s+35) \\ &= 24^{-s-37}\Gamma(s+35)(108+s-s^2). \end{aligned}

Here Γ\Gamma is Euler’s gamma function. In particular,

W(1)=108⋅24−38Γ(36)>0.W(1) = 108 \cdot24^{-38}\Gamma(36) > 0.

The vertical-strip form of Stirling’s formula [14 pp. 87–88 and 293–295], applied to s+35s+35, gives

∣W(σ+iτ)∣≪(1+∣τ∣)77/2e−π∣τ∣/2≪e−∣τ∣(−12≤σ≤2, τ∈R).(18)|W(\sigma+i\tau)| \ll(1+|\tau|)^{77/2}e^{-\pi|\tau|/2} \ll e^{-|\tau|} \qquad\left(-\frac{1}{2} \le\sigma\le2,\ \tau\in\mathbb{R}\right). \tag*{(18)}

The estimate is uniform because ℜ(s+35)∈[34.5,37]\Re(s+35) \in[34.5,37]; bounded τ\tau are covered by continuity. This proves (17).

Step 2. A Mellin integral for the prime powers. For n∈Nn \in\mathbb{N}, let Λ(n)=log⁡p\Lambda(n) = \log p if n=pkn = p^k for a prime p∈Pp \in\mathcal{P} and an integer k≥1k \ge1, and let Λ(n)=0\Lambda(n) = 0 otherwise. Put

Sx(χ)=∑n=1∞Λ(n)χ(n)h(n/x).(19)S_x(\chi) = \sum_{n=1}^{\infty} \Lambda(n)\chi(n)h(n/x). \tag*{(19)}

This series is absolutely convergent. Write ∫(c)\int_{(c)} for upward integration along s=c+iτs=c+i\tau, τ∈R\tau\in\mathbb{R}, with c∈Rc \in\mathbb{R}. Mellin inversion [10, Chapter 4, Appendix; Equation (4.106)] gives

h(t)=12πi∫(2)W(s)t−s ds(t∈R, t>0).h(t) = \frac{1}{2\pi i}\int_{(2)} W(s)t^{-s}\,ds \qquad(t \in\mathbb{R},\ t>0).

Its hypotheses hold because hh is continuous, of bounded variation, and of Mellin type (−35,∞)(-35,\infty): the displayed asymptotics give h(t)=O(t35)h(t) = O(t^{35}) at 00 and h(t)=O(t37e−24t)h(t) = O(t^{37}e^{-24t}) at infinity, while

∫0∞∣h′(t)∣ dt<∞.\int_0^\infty|h'(t)|\,dt < \infty.

The inversion integral is absolutely convergent by (18). Substitution into (19) is justified by the finite majorant

x2∑n=1∞Λ(n)n2∫−∞∞∣W(2+iτ)∣ dτ<∞.x^2 \sum_{n=1}^{\infty}\frac{\Lambda(n)}{n^2}\int_{-\infty}^{\infty}|W(2+i\tau)|\,d\tau< \infty.

Since

−L′L(s,χ)=∑n=1∞Λ(n)χ(n)n−s-\frac{L'}{L}(s,\chi) = \sum_{n=1}^{\infty}\Lambda(n)\chi(n)n^{-s}

for ℜs>1\Re s>1, it follows that

Sx(χ)=12πi∫(2)−L′L(s,χ)W(s)xs ds.(20)S_x(\chi) = \frac{1}{2\pi i}\int_{(2)}-\frac{L'}{L}(s,\chi)W(s)x^s\,ds. \tag*{(20)}

Here L′L' denotes differentiation with respect to s∈Cs \in\mathbb{C}.

Step 3. Bounds for the contour shift. Let aχ∈{0,1}a_\chi\in\{0,1\} satisfy χ(−1)=(−1)aχ\chi(-1)=(-1)^{a_\chi}, and let χ‾(n)=χ(n)‾\overline{\chi}(n)=\overline{\chi(n)} for n∈Zn \in\mathbb{Z}. The functional equation for a primitive character of conductor QQ is

Λχ(s)=(Qπ)(s+aχ)/2Γ(s+aχ2)L(s,χ),\Lambda_\chi(s)=\left(\frac{Q}{\pi}\right)^{(s+a_\chi)/2}\Gamma\left(\frac{s+a_\chi}{2}\right)L(s,\chi),
Λχ(s)=εχΛχ‾(1−s),εχ∈C,∣εχ∣=1;\Lambda_\chi(s)=\varepsilon_\chi\Lambda_{\overline{\chi}}(1-s),\qquad\varepsilon_\chi\in\mathbb{C},\quad|\varepsilon_\chi|=1;

see [10, Theorem 4.15; Equations (4.73)–(4.75)]. For χ=χ1\chi= \chi_1 and Q=1Q = 1, this is the meromorphic functional equation of ζ(s)\zeta(s). Thus it also applies in the principal case. Set ψΓ(z)=Γ′(z)/Γ(z)\psi_{\Gamma}(z) = \Gamma^{\prime}(z)/\Gamma(z) for z∈C∖{0,−1,−2,…}z \in\mathbb{C} \setminus\{0,-1,-2,\ldots\}. Logarithmic differentiation gives the meromorphic identity

L′L(s,χ)=−L′L(1−s,χ‾)−log⁡Qπ−12ψΓ(s+aχ2)−12ψΓ(1−s+aχ2).\frac{L^{\prime}}{L}(s,\chi)=-\frac{L^{\prime}}{L}(1-s,\overline{\chi})-\log\frac{Q}{\pi}-\frac{1}{2}\psi_{\Gamma}\left(\frac{s+a_{\chi}}{2}\right)-\frac{1}{2}\psi_{\Gamma}\left(\frac{1-s+a_{\chi}}{2}\right).

On s=−1/2+iτs=-1/2+i\tau, the reflected logarithmic derivative has an absolutely convergent Dirichlet series on ℜ(1−s)=3/2\Re(1-s)=3/2 and is bounded by

∑n=1∞Λ(n)n−3/2<∞.\sum_{n=1}^{\infty}\Lambda(n)n^{-3/2}<\infty.

The digamma estimate [14 pp. 87–88 and 293–295] bounds the other terms by O(log⁡(∣τ∣+2))O(\log(|\tau|+2)). For bounded τ\tau, their arguments stay a fixed distance from the poles of ψΓ\psi_{\Gamma}. Consequently,

∣L′L(−12+iτ,χ)∣≪log⁡(Q(∣τ∣+2))(τ∈R),\left|\frac{L^{\prime}}{L}\left(-\frac{1}{2}+i\tau,\chi\right)\right|\ll\log(Q(|\tau|+2))\qquad(\tau\in\mathbb{R}),

and the new vertical integral satisfies

∣12πi∫(−1/2)−L′L(s,χ)W(s)xs ds∣≪x−1/2∫−∞∞e−∣τ∣log⁡(Q(∣τ∣+2)) dτ≪x−1/2log⁡(Q+2).\left|\frac{1}{2\pi i}\int_{(-1/2)}-\frac{L^{\prime}}{L}(s,\chi)W(s)x^s\,ds\right|\ll x^{-1/2}\int_{-\infty}^{\infty}e^{-|\tau|}\log(Q(|\tau|+2))\,d\tau\ll x^{-1/2}\log(Q+2).

We also justify the disappearance of the horizontal sides. Let Zχ∘\mathcal{Z}_{\chi}^{\circ} denote the multiset of nontrivial zeros ρ\rho with 0<ℜρ<10<\Re\rho<1. The standard local zero estimates are

#{ρ∈Zχ∘:∣ℑρ−τ∣≤1}≪log⁡(Q(∣τ∣+2)),(21)\#\{\rho\in\mathcal{Z}_{\chi}^{\circ}:|\Im\rho-\tau|\leq1\}\ll\log(Q(|\tau|+2)), \tag*{(21)}
L′L(s,χ)=∑ρ∈Zχ∘∣s−ρ∣<11s−ρ+O(log⁡(Q(∣τ∣+2))),(22)\frac{L^{\prime}}{L}(s,\chi)=\sum_{\substack{\rho\in\mathcal{Z}_{\chi}^{\circ}\\ |s-\rho|<1}}\frac{1}{s-\rho}+O(\log(Q(|\tau|+2))), \tag*{(22)}

where s=σ+iτs=\sigma+i\tau, −1/2≤σ≤2-1/2\leq\sigma\leq2, ∣τ∣≥2|\tau|\geq2, and ss is not a zero in (22). Zeros are counted with multiplicity. These are [10, Proposition 5.7; Equations (5.27)–(5.28)]: primitive Dirichlet LL-functions have degree one and analytic conductor comparable to Q(∣τ∣+3)Q(|\tau|+3), as verified in [10 Section 5.9]. Thus the constants are uniform in QQ and χ\chi.

For each integer j≥3j\geq3, let MjM_j count the zeros in Zχ∘\mathcal{Z}_{\chi}^{\circ} with j−1≤∣ℑρ∣≤j+2j-1\leq|\Im\rho|\leq j+2. Covering these two intervals by finitely many intervals of length 2 and using (21) gives Mj≪log⁡(Q(j+2))M_j\ll\log(Q(j+2)). Set δj=1/(4(Mj+1))\delta_j=1/(4(M_j+1)). Intervals of radius δj\delta_j about the MjM_j absolute ordinates remove length at most 2Mjδj<1/22M_j\delta_j<1/2 from [j,j+1][j,j+1]. Choose TjT_j outside them. Then both TjT_j and −Tj-T_j have distance at least δj\delta_j from every zero ordinate; ordinates outside the specified intervals have distance at least 1. (21)–(22) yield

sup⁡−1/2≤σ≤2∣L′L(σ±iTj,χ)∣≪log⁡2(Q(j+2)).\sup_{-1/2\leq\sigma\leq2}\left|\frac{L^{\prime}}{L}(\sigma\pm iT_j,\chi)\right|\ll\log^2(Q(j+2)).

Each horizontal integral in the rectangle with vertical sides ℜs=2,−1/2\Re s=2,-1/2 and heights ±Tj\pm T_j is therefore

O(x2e−jlog⁡2(Q(j+2)))=o(1)(j→∞),O\left(x^2e^{-j}\log^2(Q(j+2))\right)=o(1)\qquad(j\to\infty),

with xx and QQ fixed.

Step 4. The residues and the zero sum. The only pole of L(s,χ)L(s,\chi) is the simple pole at s=1s=1 when χ=χ1\chi=\chi_1. Dirichlet LL-functions have no zeros on ℜs=1\Re s=1; for nonprincipal primitive characters this is [10 Theorem 5.26], while for χ1\chi_1 it is the classical zero-free line for ζ(s)\zeta(s), recorded in [15 Equation (4.17.2), p. 89] (with its simple pole at s=1s=1). The functional equation then shows that their only possible zero on ℜs=0\Re s=0 is at s=0s=0. For a nonprincipal even primitive character this zero is simple: the gamma factor has a simple pole at 00, whereas Λχ‾(1)≠0\Lambda_{\overline{\chi}}(1)\ne0. For an odd primitive character the gamma factor is finite and nonzero at 00, so L(0,χ)≠0L(0,\chi) \ne0. In the principal case, ζ(0)=−1/2\zeta(0)=-1/2. The remaining trivial zeros lie at negative integers, outside the rectangle. Thus the poles of the integrand in (20) inside it are exactly the principal pole at 11 and the zeros in Zχ\mathcal{Z}_{\chi} with ∣ℑρ∣<Tj|\Im\rho|<T_j.

At the principal pole the residue of −L′/L-L'/L is +1+1. At a zero ρ\rho of order m∈Nm\in\mathbb{N}, it is −m-m, since locally L(s,χ)=(s−ρ)mg(s)L(s,\chi)=(s-\rho)^m g(s) with gg holomorphic and g(ρ)≠0g(\rho)\ne0. Their contributions are therefore xW(1)xW(1) and −mW(ρ)xρ-mW(\rho)x^\rho, respectively, including the possible zero at 00. There are no poles contributed by WW, which is holomorphic on the whole rectangle.

To pass to the limit, write Nχ(T)=#{ρ∈Zχ∘:∣ℑρ∣≤T}N_{\chi}(T)=\#\{\rho\in\mathcal{Z}_{\chi}^{\circ}:|\Im\rho|\le T\}, with multiplicity, for real T≥2T\ge2. The bound Nχ(T)≪Tlog⁡(Q(T+2))N_{\chi}(T)\ll T\log(Q(T+2)) is the Dirichlet case of [10 Theorem 5.24]. By (17),

∑ρ∈Zχ∘∣W(ρ)xρ∣≪x∑j=0∞e−jNχ(j+2)≪x∑j=0∞e−j(j+2)log⁡(Q(j+4))<∞.\sum_{\rho\in\mathcal{Z}_{\chi}^{\circ}} |W(\rho)x^\rho| \ll x\sum_{j=0}^{\infty}e^{-j}N_{\chi}(j+2) \ll x\sum_{j=0}^{\infty}e^{-j}(j+2)\log(Q(j+4))<\infty.

The possible term at 00 is finite. The residue theorem, followed by j→∞j\to\infty, now gives

Sx(χ)=1χ=χ1xW(1)−∑ρ∈ZχW(ρ)xρ+O(x−1/2log⁡(Q+2)).(23)S_x(\chi)=\mathbf{1}_{\chi=\chi_1}xW(1)-\sum_{\rho\in\mathcal{Z}_{\chi}}W(\rho)x^\rho+O\left(x^{-1/2}\log(Q+2)\right). \tag*{(23)}

Step 5. Removing the higher prime powers. For real Y>0Y>0, define

A(Y)=∑p∈P, k∈Nk≥2, pk≤Ylog⁡p.A(Y)=\sum_{\substack{p\in\mathcal{P},\ k\in\mathbb{N}\\ k\ge2,\ p^k\le Y}}\log p.

This is zero for Y<4Y<4. The estimate ϑ(u)≪u\vartheta(u)\ll u for all real u>0u>0 follows from Lemma 3.1, after increasing the constant on a bounded interval. For Y≥4Y\ge4 it gives

A(Y)=∑k=2⌊log⁡Y/log⁡2⌋ϑ(Y1/k)≪Y1/2+Y1/3log⁡Y≪Y1/2.A(Y)=\sum_{k=2}^{\lfloor\log Y/\log2\rfloor}\vartheta(Y^{1/k})\ll Y^{1/2}+Y^{1/3}\log Y\ll Y^{1/2}.

Indeed, every term with k≥3k\ge3 is O(Y1/3)O(Y^{1/3}), and log⁡Y≤(6/e)Y1/6\log Y\le(6/e)Y^{1/6} for Y≥1Y\ge1, by maximizing (log⁡Y)/Y1/6(\log Y)/Y^{1/6}. Since ∣χ(n)∣≤1|\chi(n)|\le1, partial summation yields

∣Sx(χ)−Tx(χ)∣≤∫0∞∣h(t/x)∣ dA(t)≤1x∫0∞A(t)∣h′(t/x)∣ dt≪x∫0∞u1/2∣h′(u)∣ du≪x.(24)\begin{aligned} |S_x(\chi)-T_x(\chi)|\le\int_0^\infty|h(t/x)|\,dA(t)\le\frac{1}{x}\int_0^\infty A(t)|h'(t/x)|\,dt \\ &\ll\sqrt{x}\int_0^\infty u^{1/2}|h'(u)|\,du\ll\sqrt{x}. \tag*{(24)} \end{aligned}

Here ∣h∣|h| is absolutely continuous with ∣(∣h∣)′∣≤∣h′∣|(|h|)'|\le|h'| almost everywhere. The boundary terms vanish by A(t)=0A(t)=0 near 00 and the exponential decay at infinity. The last integral is finite because h′(u)=O(u3/4)h'(u)=O(u^{3/4}) near 00 and h′(u)=O(u3e−24u)h'(u)=O(u^{3}e^{-24u}) as u→∞u\to\infty. Combining (23) and (24) proves (16). □

Omission of a possible exceptional conductor prime

Theorem 4.1(a) allows at most one exceptional real zero. We exclude its character by omitting an odd prime divisor of its conductor. The remaining characters then have no zeros in the region needed for the main proof.

Lemma 5.1. For all sufficiently large real yy, there is a set

Ey⊆{r∈P:r≤y, r>2},∣Ey∣≤1,E_y\subseteq\{r\in\mathcal{P}:r\le y,\ r>2\},\qquad|E_y|\le1,

such that, with

Py∗=Py/∏r∈Eyr,P_y^*=P_y\bigg/\prod_{r\in E_y}r,

and

Dy={χD:D is a fundamental discriminant, ∣D∣∣4Py∗},\mathcal{D}_y=\left\{\chi_D:D\text{ is a fundamental discriminant},\ |D|\mid4P_y^*\right\},

Py∗∈NP_y^* \in\mathbb{N}, and every L(s,χ)L(s,\chi) with χ∈Dy\chi\in D_y is zero-free in

ℜs≥1−η(y),∣ℑs∣≤H.\Re s \ge1-\eta(y), \qquad|\Im s| \le H.

Proof. Put

Ωy={s∈C:ℜs≥1−2η(y), ∣ℑs∣≤H}.\Omega_y=\{s\in\mathbb{C}:\Re s\ge1-2\eta(y),\ |\Im s|\le H\}.

By Theorem 4.1(a), the LL-functions for χ∈Cy\chi\in C_y have at most one zero in Ωy\Omega_y, counted with multiplicity. If this zero exists, it is real. The four characters in CyC_y whose discriminants have no odd prime factor are

χ1,χ−4,χ8,χ−8.\chi_1,\qquad\chi_{-4},\qquad\chi_8,\qquad\chi_{-8}.

For the three nonprincipal characters, L(1,χ)≠0L(1,\chi)\ne0 by [1 Theorem 6.20, p. 141]; for the principal character, L(s,χ1)=ζ(s)L(s,\chi_1)=\zeta(s) has a simple pole at s=1s=1. Consequently, for some fixed δ>0\delta>0, none of these four LL-functions has a zero in the disk ∣s−1∣<δ|s-1|<\delta (for χ1\chi_1, use that (s−1)ζ(s)(s-1)\zeta(s) is holomorphic and nonzero at s=1s=1). Since η(y)→0\eta(y)\to0, we may assume

2η(y)<min⁡(δ,1/2).2\eta(y)<\min(\delta,1/2).

If no L(s,χ)L(s,\chi) with χ∈Cy\chi\in C_y has a zero in Ωy\Omega_y, set Ey=∅E_y=\varnothing. Then Py∗=PyP_y^*=P_y and Dy=CyD_y=C_y. The conclusion follows because {s∈C:ℜs≥1−η(y), ∣ℑs∣≤H}⊆Ωy\{s\in\mathbb{C}:\Re s\ge1-\eta(y),\ |\Im s|\le H\}\subseteq\Omega_y.

Suppose now that some L(s,χ)L(s,\chi) with χ∈Cy\chi\in C_y has a zero in Ωy\Omega_y. By Theorem 4.1(a), it is a unique real zero β\beta of a unique character χ∗∈Cy\chi_*\in C_y, counted with multiplicity. We have β≥1−2η(y)>0\beta\ge1-2\eta(y)>0; the Euler product gives zero-freeness for ℜs>1\Re s>1, and the nonvanishing at s=1s=1 rules out β=1\beta=1. Hence

0<β<1,1−β≤2η(y)<δ.0<\beta<1,\qquad1-\beta\le2\eta(y)<\delta.

Thus ∣β−1∣<δ|\beta-1|<\delta, and the disk exclusion above shows that χ∗\chi_* is not one of the four characters with no odd prime factor in its discriminant.

Write χ∗=χD∗\chi_*=\chi_{D_*}. By the preceding paragraph, ∣D∗∣|D_*| has an odd prime divisor; choose one and denote it by ryr_y. Since ∣D∗∣∣4Py|D_*|\mid4P_y and ry>2r_y>2, we have ry∣Pyr_y\mid P_y, hence ry≤yr_y\le y. Set Ey={ry}E_y=\{r_y\} and Py∗=Py/ryP_y^*=P_y/r_y. The integer PyP_y is squarefree, so ry∤4Py∗r_y\nmid4P_y^*. Every χD∈Dy\chi_D\in D_y satisfies ∣D∣∣4Py∗|D|\mid4P_y^* and therefore ry∤∣D∣r_y\nmid|D|. In contrast, ry∣∣D∗∣r_y\mid|D_*|, so χ∗∉Dy\chi_*\notin D_y. The zero β\beta belonged only to L(s,χ∗)L(s,\chi_*), and no other LL-function in CyC_y has a zero in Ωy\Omega_y. Since Dy⊆Cy∖{χ∗}D_y\subseteq C_y\setminus\{\chi_*\}, every L(s,χ)L(s,\chi) with χ∈Dy\chi\in D_y is zero-free in Ωy\Omega_y. In particular, it has no zero with ℜs≥1−η(y)\Re s\ge1-\eta(y) and ∣ℑs∣≤H|\Im s|\le H, as required. Finally, Py∗∈NP_y^*\in\mathbb{N} because ryr_y is a prime factor of PyP_y.

The finite-field construction

The next lemma constructs a set S⊂Fq×S\subset\mathbb{F}_q^\times such that s2+t2s^2+t^2 is a quadratic nonresidue for every s,t∈Ss,t\in S. We obtain SS by taking square roots of selected integers u≡1(mod4)u\equiv1\pmod4. The choice of these integers also accounts for the possible omitted prime in Lemma 5.1.

Lemma 6.1. Let q≡5(mod8)q\equiv5\pmod8 be prime, let K∈NK\in\mathbb{N} satisfy 1≤K<q1\le K<q, and let EE be empty or a singleton containing an odd prime r≤Kr\le K. Suppose

(ℓq)=1(ℓ≤K, ℓ an odd prime, ℓ∉E).(25)\left(\frac{\ell}{q}\right)=1\qquad(\ell\le K,\ \ell\text{ an odd prime},\ \ell\notin E). \tag*{(25)}

Then there is a set S⊂Fq×S\subset\mathbb{F}_q^\times such that

∣S∣≥K6−1(26)|S|\ge\frac{K}{6}-1 \tag*{(26)}

and

(s2+t2q)=−1(s,t∈S).(27)\left(\frac{s^2+t^2}{q}\right)=-1\qquad(s,t\in S). \tag*{(27)}

Every multiplicative translate cScS, c∈Fq×c \in\mathbb{F}_q^{\times}, has the same property.

Proof. We divide the proof into three steps.

Step 1. Selecting the integers. Put

U0={u∈N:1≤u≤K, u≡1(mod4)},∣U0∣=⌊K+34⌋≥K4.(28)U_0=\{u\in\mathbb{N}:1\le u\le K,\ u\equiv1\pmod{4}\},\qquad|U_0|=\left\lfloor\frac{K+3}{4}\right\rfloor\ge\frac{K}{4}. \tag*{(28)}

If E=∅E=\varnothing, take U=U0U=U_0. Suppose E={r}E=\{r\}. Since gcd⁡(4,r)=1\gcd(4,r)=1, the simultaneous conditions u≡1(mod4)u\equiv1\pmod{4} and u≡0(modr)u\equiv0\pmod{r} specify one residue class modulo 4r4r. Thus the number of such integers in [1,K][1,K] is at most K/(4r)+1K/(4r)+1. Set V={u∈U0:r∤u}V=\{u\in U_0:r\nmid u\}; then

∣V∣≥K4−K4r−1.|V|\ge\frac{K}{4}-\frac{K}{4r}-1.

The nonzero residue classes modulo rr split into disjoint pairs {a,−a}\{a,-a\}. Indeed, a=−aa=-a would give 2a=02a=0, hence a=0a=0, because rr is odd. For each pair {a,−a}\{a,-a\} of nonzero residue classes modulo rr, choose the class represented by more elements of VV. If the two classes are represented equally often, choose either one. Let A⊂(Z/rZ)×A\subset(\mathbb{Z}/r\mathbb{Z})^{\times} be the retained classes and put U={u∈V:u mod r∈A}U=\{u\in V:u\bmod r\in A\}. The construction gives

A∩(−A)=∅,r∤u,r∤(u+v)(u,v∈U).(29)A\cap(-A)=\varnothing,\qquad r\nmid u,\qquad r\nmid(u+v)\qquad(u,v\in U). \tag*{(29)}

At least half of VV is retained. Since r≥3r\ge3, we obtain

∣U∣≥∣V∣2≥K8(1−1r)−12≥K12−12.|U|\ge\frac{|V|}{2}\ge\frac{K}{8}\left(1-\frac{1}{r}\right)-\frac{1}{2}\ge\frac{K}{12}-\frac{1}{2}.

This last bound also holds when E=∅E=\varnothing, by (28).

Step 2. The quadratic characters of the sums. Every u∈Uu\in U is a positive odd integer at most KK, and none of its prime factors belongs to EE. By (25) and multiplicativity,

(uq)=∏ℓ∣uℓ∈P(ℓq)vℓ(u)=1.(30)\left(\frac{u}{q}\right)=\prod_{\substack{\ell\mid u\\ \ell\in\mathcal{P}}}\left(\frac{\ell}{q}\right)^{v_{\ell}(u)}=1. \tag*{(30)}

For u,v∈Uu,v\in U, define

w=u+v2,1≤w≤K,w≡1(mod2).w=\frac{u+v}{2},\qquad1\le w\le K,\qquad w\equiv1\pmod{2}.

Because K<qK<q and q≡5(mod8)q\equiv5\pmod{8}, we have q∤wq\nmid w and q∤u+v=2wq\nmid u+v=2w. If E={r}E=\{r\}, then r∤wr\nmid w, since r∣wr\mid w would contradict (29). Thus all prime factors of ww also satisfy (25). Consequently

(wq)=1.\left(\frac{w}{q}\right)=1.

The supplementary law

(2q)=(−1)(q2−1)/8=−1,\left(\frac{2}{q}\right)=(-1)^{(q^2-1)/8}=-1,

valid because q≡5(mod8)q\equiv5\pmod{8}, now gives

(u+vq)=(2q)(wq)=−1(u,v∈U).(31)\left(\frac{u+v}{q}\right)=\left(\frac{2}{q}\right)\left(\frac{w}{q}\right)=-1\qquad(u,v\in U). \tag*{(31)}

In particular, the sum is nonzero modulo qq: w<qw<q and qq is odd.

Step 3. Taking square roots and multiplicative translates. Regard U⊂[1,K]U\subset[1,K] as a subset of Fq×\mathbb{F}_q^{\times}; this is an injective identification since K<qK<q. Define

S={s∈Fq×:s2∈U}.S=\{s\in\mathbb{F}_q^{\times}:s^2\in U\}.

By (30), each u∈Fq×u \in\mathbb{F}_q^\times has exactly two square roots in Fq×\mathbb{F}_q^\times. They are distinct because qq is odd, and roots of different uu are disjoint. Therefore

∣S∣=2∣U∣≥K6−1.|S|=2|U|\ge\frac{K}{6}-1.

For s,t∈Ss,t \in S, apply (31) to u=s2u=s^2 and v=t2v=t^2 to obtain (27). This includes s=ts=t and s=−ts=-t, since the preceding argument allowed u=vu=v. Finally, for c∈Fq×c \in\mathbb{F}_q^\times,

((cs)2+(ct)2q)=(c2q)(s2+t2q)=−1(s,t∈S),(32)\left(\frac{(cs)^2+(ct)^2}{q}\right)=\left(\frac{c^2}{q}\right)\left(\frac{s^2+t^2}{q}\right)=-1 \qquad(s,t\in S), \tag*{(32)}

because c2c^2 is a nonzero square. This proves the assertion for cScS. □

Proof of the main theorem

Proof of Theorem 1.1. We divide the proof into six steps and use the notation introduced above.

Step 1. The scales and the size of the character family. Let xx be a sufficiently large real number and put

L=log⁡x,J=log⁡L,T=log⁡J,y=κLT,ε=J−1/2.L=\log x,\qquad J=\log L,\qquad T=\log J,\qquad y=\kappa LT,\qquad\varepsilon=J^{-1/2}.

We take xx large enough that yy exceeds the thresholds in Lemmas 3.1 and 5.1 and Theorem 4.1 and 0<ε<1/20<\varepsilon<1/2. Use the notation PyP_y, H=log⁡PyH=\log P_y, and CyC_y from (3.7)–(3.8), and choose EyE_y, Py∗P_y^*, and Dy\mathcal{D}_y by Lemma 5.1. Then

ay≤H≤by,log⁡H=J+log⁡T+O(1)∼J.(33)a y\le H\le b y,\qquad\log H=J+\log T+O(1)\sim J. \tag*{(33)}

Indeed, H≍yH\asymp y and log⁡y=J+log⁡T+log⁡κ\log y=J+\log T+\log\kappa. By (14) and the upper bound for π(y)\pi(y) in Lemma 3.1,

Ry=∣Cy∣=2π(y)+1,log⁡Ry=O(LTJ)=o(εL).(34)R_y=|C_y|=2^{\pi(y)+1},\qquad\log R_y=O\left(\frac{LT}{J}\right)=o(\varepsilon L). \tag*{(34)}

The last relation follows from T/J→0T/\sqrt{J}\to0. In particular, Ry=exp⁡(o(L))R_y=\exp(o(L)), H=O(LT)H=O(LT), and log⁡H=O(J)=o(L)\log H=O(J)=o(L), so

Ry(xlog⁡2(x+2)+x−1/2H)=o(x).(35)R_y\left(\sqrt{x}\log^2(x+2)+x^{-1/2}H\right)=o(x). \tag*{(35)}

Step 2. Zeros close to the line ℜs=1\Re s=1. For 0≤t<1/20\le t<1/2, let M(t)M(t) count, with multiplicity and separately for every χ∈Dy\chi\in\mathcal{D}_y, the zeros ρ=β+iγ∈Zχ\rho=\beta+i\gamma\in\mathcal{Z}_\chi satisfying β≥1−t\beta\ge1-t and ∣γ∣≤H|\gamma|\le H. Put

η=c1log⁡H2H,M(t)=0(0≤t≤η).\eta=\frac{c_1\sqrt{\log H}}{2H},\qquad M(t)=0\quad(0\le t\le\eta).

The equality is the conclusion of Lemma 5.1. Since η/ε≍J/(LT)→0\eta/\varepsilon\asymp J/(LT)\to0, we also have 0<η<ε0<\eta<\varepsilon for large xx. The four discriminant types listed in § 3.2 partition CyC_y between the two products in Theorem 4.1(b). Thus

M(t)≤N1(1−t;y)+N4(1−t;y).(36)M(t)\le N_1(1-t;y)+N_4(1-t;y). \tag*{(36)}

Here 1−t>1/21-t>1/2, so the pole at 11 and the possible zero at 00 do not affect the zero counts. We apply the two bounds for Nℓ(1−t;y)N_\ell(1-t;y) in Theorem 4.1(b). By (33), T/J→0T/\sqrt{J}\to0, and log⁡(1/ε)=T/2\log(1/\varepsilon)=T/2,

c2Hlog⁡H≤L4,c2Hlog⁡(1/ε)≤2c2bκL=c2b16(1+c2b)L≤L4.(37)\frac{c_2H}{\sqrt{\log H}}\le\frac{L}{4},\qquad \frac{c_2H}{\log(1/\varepsilon)}\le2c_2b\kappa L=\frac{c_2b}{16(1+c_2b)}L\le\frac{L}{4}. \tag*{(37)}

for all sufficiently large xx. If 0<t≤ε0<t\le\varepsilon, then log⁡(1/t)≥log⁡(1/ε)\log(1/t)\ge\log(1/\varepsilon). For t≤η1(y)t\le\eta_1(y), the theorem gives Nℓ(1−t;y)≤Clog⁡Hexp⁡(tL/4)N_\ell(1-t;y)\le C\sqrt{\log H}\exp(tL/4). For t>η1(y)t>\eta_1(y), it gives Nℓ(1−t;y)≤Cexp⁡(tL/4)N_\ell(1-t;y)\le C\exp(tL/4). Adding the bounds for ℓ=1,4\ell=1,4 in (36) and enlarging CC, we obtain

M(t)≤Clog⁡HetL/4(0<t≤ε).M(t)\le C\sqrt{\log H}e^{tL/4}\qquad(0<t\le\varepsilon).

For each zero counted by M(ε)M(\varepsilon), write tρ=1−βt_\rho=1-\beta. Then 0≤tρ≤ε0\le t_\rho\le\varepsilon and

e−Ltρ=e−Lε+L∫tρεe−Lt dt.(38)e^{-Lt_\rho}=e^{-L\varepsilon}+L\int_{t_\rho}^{\varepsilon}e^{-Lt}\,dt. \tag*{(38)}

The number of these zeros is finite by Theorem 4.1(c). Summing (38), with multiplicities, gives

∑χ∈Dy∑ρ=β+iγ∈Zχβ≥1−ε, ∣γ∣≤Hxβ=x1−εM(ε)+xL∫0εe−LtM(t) dt≤Cxlog⁡He−3εL/4+CxLlog⁡H∫ηεe−3Lt/4 dt≤Cxlog⁡He−3εL/4+4C3xlog⁡He−3ηL/4=o(x).(39)\begin{aligned} \sum_{\chi\in\mathcal{D}_y}\sum_{\substack{\rho=\beta+i\gamma\in Z_\chi\\ \beta\ge1-\varepsilon,\ |\gamma|\le H}}x^\beta &=x^{1-\varepsilon}M(\varepsilon)+xL\int_0^\varepsilon e^{-Lt}M(t)\,dt\\ &\le Cx\sqrt{\log H}e^{-3\varepsilon L/4}+CxL\sqrt{\log H}\int_\eta^\varepsilon e^{-3Lt/4}\,dt\\ &\le Cx\sqrt{\log H}e^{-3\varepsilon L/4}+\frac{4C}{3}x\sqrt{\log H}e^{-3\eta L/4}=o(x). \tag*{(39)} \end{aligned}

To justify the last equality, use log⁡H∼J\log H\sim J and log⁡log⁡H∼T\log\log H\sim T. Since H≤bκLTH\le b\kappa LT, we have

ηL=c1Llog⁡H2H≥c1log⁡H2bκT≫JT.\eta L=\frac{c_1L\sqrt{\log H}}{2H}\ge\frac{c_1\sqrt{\log H}}{2b\kappa T}\gg\frac{\sqrt{J}}{T}.

Consequently,

log⁡log⁡H∼T,εLlog⁡log⁡H≫LJT⟶∞,ηLlog⁡log⁡H≫JT2⟶∞.\log\log H\sim T,\qquad\frac{\varepsilon L}{\log\log H}\gg\frac{L}{\sqrt{J}T}\longrightarrow\infty,\qquad\frac{\eta L}{\log\log H}\gg\frac{\sqrt{J}}{T^2}\longrightarrow\infty.

Thus both exponential factors in (39) tend to zero faster than 1/log⁡H1/\sqrt{\log H}. Since ∣W(ρ)∣≤Ch|W(\rho)|\le C_h in the critical strip by (17), the same o(x)o(x) bound holds with xβx^\beta replaced by ∣W(ρ)xρ∣|W(\rho)x^\rho|.

Step 3. The remaining zeros and the aggregate estimate. For β<1−ε\beta<1-\varepsilon and ∣γ∣≤H|\gamma|\le H, we have ∣W(ρ)xρ∣≤Chx1−ε|W(\rho)x^\rho|\le C_hx^{1-\varepsilon}. Each character has conductor Q≤4PyQ\le4P_y, so Theorem 4.1(c), including its assertion at 0, gives

∑χ∈Dy∑ρ=β+iγ∈Zχβ<1−ε, ∣γ∣≤H∣W(ρ)xρ∣≪x1−εRyHlog⁡(4Py(H+2))≪x1−εRyH2=o(x).(40)\sum_{\chi\in\mathcal{D}_y}\sum_{\substack{\rho=\beta+i\gamma\in Z_\chi\\ \beta<1-\varepsilon,\ |\gamma|\le H}}|W(\rho)x^\rho| \ll x^{1-\varepsilon}R_yH\log\bigl(4P_y(H+2)\bigr)\ll x^{1-\varepsilon}R_yH^2=o(x). \tag*{(40)}

Indeed, log⁡(4Py(H+2))=H+O(log⁡H)\log(4P_y(H+2))=H+O(\log H), and the logarithm of the last bound divided by xx is

−εL+log⁡Ry+2log⁡H=−εL+o(εL)⟶−∞.-\varepsilon L+\log R_y+2\log H=-\varepsilon L+o(\varepsilon L)\longrightarrow-\infty.

Here (34) applies and log⁡H=O(J)=o(L/J)\log H=O(J)=o(L/\sqrt{J}).

For the zeros with ∣γ∣>H|\gamma|>H, let m0=⌊H⌋m_0=\lfloor H\rfloor and partition the absolute ordinates into intervals [m,m+1)[m,m+1), m≥m0m\ge m_0. The number of zeros of any one character in such an interval is at most its total number with ∣γ∣≤m+1|\gamma|\le m+1, which is O((m+1)log⁡(Q(m+3)))O((m+1)\log(Q(m+3))) by Theorem 4.1(c). Also xβ≤xx^\beta\le x, ∣W(ρ)∣≤Che−m|W(\rho)|\le C_he^{-m}, and log⁡Q≤H+log⁡4\log Q\le H+\log4. Hence

∑χ∈Dy∑ρ∈Zχ∣ℑρ∣>H∣W(ρ)xρ∣≪xRy∑m=m0∞e−m(m+1)(H+log⁡(m+3)+1)≪xRye−H(H+1)2=o(x).(41)\begin{aligned} \sum_{\chi\in\mathcal{D}_y}\sum_{\substack{\rho\in Z_\chi\\ |\Im\rho|>H}}|W(\rho)x^\rho| &\ll xR_y\sum_{m=m_0}^{\infty}e^{-m}(m+1)\bigl(H+\log(m+3)+1\bigr)\\ &\ll xR_ye^{-H}(H+1)^2=o(x). \tag*{(41)} \end{aligned}

For the second inequality, set m=m0+jm=m_0+j and bound the summand by O(e−H−j(H+1)2(j+1)2)O(e^{-H-j}(H+1)^2(j+1)^2); the sum over j≥0j\ge0 converges. For the last equality, (33) and (34) give

log⁡Ry+2log⁡(H+1)=o(H).\log R_y+2\log(H+1)=o(H).

Apply Lemma 4.2 to every χ∈Dy\chi\in\mathcal{D}_y. Its error terms sum to o(x)o(x) by (35), since ∣Dy∣≤Ry\lvert\mathcal{D}_y\rvert\le R_y and log⁡(Q+2)=O(H)\log(Q+2)=O(H). The three ranges in (39), (40), and (41) exhaust Zχ\mathcal{Z}_\chi. The triangle inequality therefore yields

∑χ∈Dy∣Tx(χ)−1χ=χ1xW(1)∣=o(x).(42)\sum_{\chi\in\mathcal{D}_y}\left\lvert T_x(\chi)-\mathbf{1}_{\chi=\chi_1}xW(1)\right\rvert=o(x). \tag*{(42)}

The bounds above use ∣Dy∣≤Ry\lvert\mathcal{D}_y\rvert\le R_y and M(t)≤N1(1−t;y)+N4(1−t;y)M(t)\le N_1(1-t;y)+N_4(1-t;y). Their right-hand sides do not depend on which prime is omitted. Hence the o(x)o(x) error in (42) is uniform over the choices of EyE_y in Lemma 5.1.

Step 4. A prime with the required residue pattern. For every integer nn, define

Fy(n)=(1+χ−4(n))(1−χ8(n))∏r∈P,r≤yr>2,r∉Ey(1+χr∗(n)).(43)F_y(n)=(1+\chi_{-4}(n))(1-\chi_8(n))\prod_{\substack{r\in\mathcal{P},\,r\le y\\r>2,\,r\notin E_y}}(1+\chi_{r^*}(n)). \tag*{(43)}

Each character value belongs to {−1,0,1}\{-1,0,1\}, so Fy(n)≥0F_y(n)\ge0. The integer Py∗/2P_y^*/2 is the product of the odd primes r≤yr\le y with r∉Eyr\notin E_y, each taken once. Thus the products formed by choosing any of these primes are precisely the divisors d∣Py∗/2d\mid P_y^*/2; the empty choice gives d=1d=1. Expanding (43) and using (15) gives

Fy(n)=∑d∈Nd∣Py∗/2(χd∗(n)+χ−4d∗(n)−χ8d∗(n)−χ−8d∗(n)).F_y(n)=\sum_{\substack{d\in\mathbb{N}\\d\mid P_y^*/2}}\left(\chi_{d^*}(n)+\chi_{-4d^*}(n)-\chi_{8d^*}(n)-\chi_{-8d^*}(n)\right).

The discriminant classification in § 3.2 shows that these are exactly the characters of Dy\mathcal{D}_y, each occurring once. Thus

Fy=∑χ∈Dycχχ,F_y=\sum_{\chi\in\mathcal{D}_y}c_\chi\chi,

where cχ∈{−1,1}c_\chi\in\{-1,1\} and cχ1=1c_{\chi_1}=1. For fixed xx, the formula for hh gives

∑p∈P(log⁡p)∣h(p/x)∣≪x∑n=2∞n37(log⁡n)e−24n/x<∞.\sum_{p\in\mathcal{P}}(\log p)\lvert h(p/x)\rvert\ll_x\sum_{n=2}^{\infty}n^{37}(\log n)e^{-24n/x}<\infty.

Since there are finitely many characters and ∣χ(p)∣≤1\lvert\chi(p)\rvert\le1, we may sum the character expansion over primes. By (42),

∑p∈P(log⁡p)h(p/x)Fy(p)=∑χ∈DycχTx(χ)=xW(1)+o(x)>0,(44)\sum_{p\in\mathcal{P}}(\log p)h(p/x)F_y(p)=\sum_{\chi\in\mathcal{D}_y}c_\chi T_x(\chi)=xW(1)+o(x)>0, \tag*{(44)}

since W(1)>0W(1)>0 by (17).

For p∉(x,2x)p\notin(x,2x), the corresponding summand in (44) is nonpositive, because h(p/x)≤0h(p/x)\le0 and Fy(p)≥0F_y(p)\ge0. There must therefore be a prime q∈(x,2x)q\in(x,2x) with Fy(q)>0F_y(q)>0. Since y=κlog⁡xlog⁡3x=o(x)y=\kappa\log x\log_3x=o(x), we have q>yq>y for large xx. The prime qq consequently divides none of the conductors in (43); all character values there are ±1\pm1. Positivity of the product forces

χ−4(q)=1,χ8(q)=−1,χr∗(q)=1(r≤y, r>2, r∉Ey).\chi_{-4}(q)=1,\qquad\chi_8(q)=-1,\qquad\chi_{r^*}(q)=1\quad(r\le y,\ r>2,\ r\notin E_y).

The first identity gives q≡1(mod4)q\equiv1\pmod4. The supplementary law at 2 gives

χ8(q)=(2q)=−1.\chi_8(q)=\left(\frac{2}{q}\right)=-1.

only for q≡3,5(mod8)q \equiv3,5 \pmod{8}; hence q≡5(mod8)q \equiv5 \pmod{8}. Also r∗=±rr^*=\pm r, and (−1q)=1\left(\frac{-1}{q}\right)=1 because q≡1(mod4)q \equiv1 \pmod{4}. We conclude that

x<q<2x,q≡5(mod8),(45)x<q<2x,\qquad q\equiv5\pmod{8}, \tag*{(45)}
(rq)=1(r≤y, r an odd prime, r∉Ey).(46)\left(\frac{r}{q}\right)=1\qquad(r\le y,\ r\text{ an odd prime},\ r\notin E_y). \tag*{(46)}

Step 5. An admissible subset of the prime-power box. Now let NN be sufficiently large, take x=pNx=p_N, and set K=⌊y⌋K=\lfloor y\rfloor. Then 1≤K<q1\le K<q. Every prime in EyE_y is at most yy and is an integer, so it is at most KK. Thus (7.13) verifies every hypothesis of Lemma 6.1, with E=EyE=E_y. It supplies S⊂Fq×S\subset\mathbb{F}_q^\times with ∣S∣≥K/6−1|S|\ge K/6-1 and (27). Every n∈ΦNn\in\Phi_N is nonzero modulo qq, since its prime factors are at most pN<qp_N<q. For each c∈Fq×c\in\mathbb{F}_q^\times, put

Bc={n∈ΦN:n mod q∈cS}.B_c=\{n\in\Phi_N:n\bmod q\in cS\}.

If u,v∈Bcu,v\in B_c and w∈Nw\in\mathbb{N} satisfied u2+v2=w2u^2+v^2=w^2, choose s,t∈Ss,t\in S with u≡csu\equiv cs and v≡ct(modq)v\equiv ct\pmod q. Then

w2≡c2(s2+t2)(modq),(c2(s2+t2)q)=−1.w^2\equiv c^2(s^2+t^2)\pmod q,\qquad \left(\frac{c^2(s^2+t^2)}{q}\right)=-1.

The second equality follows from (32). It contradicts the first, since a square has Legendre symbol 0 or 1. Thus every BcB_c is admissible.

For any fixed n∈ΦNn\in\Phi_N and s∈Ss\in S, there is a unique c∈Fq×c\in\mathbb{F}_q^\times with n≡cs(modq)n\equiv cs\pmod q, namely c=(n mod q)s−1c=(n\bmod q)s^{-1}. Distinct ss give distinct cc, since n mod q≠0n\bmod q\ne0. Therefore exactly ∣S∣|S| translates contain n mod qn\bmod q, and double counting yields

∑c∈Fq×∣Bc∣=∣ΦN∣∣S∣=NN∣S∣,f(N)≥max⁡c∣Bc∣≥NN∣S∣q−1.(47)\sum_{c\in\mathbb{F}_q^\times}|B_c|=|\Phi_N||S|=N^{N}|S|,\qquad f(N)\ge\max_c|B_c|\ge\frac{N^{N}|S|}{q-1}. \tag*{(47)}

Step 6. The quantitative lower bound. Increase NN so that K≥6K\ge6. Since q<2pNq<2p_N, K≥y−1K\ge y-1, and N=π(pN)≥apN/log⁡pNN=\pi(p_N)\ge ap_N/\log p_N by Lemma 3.1, (47) gives

f(N)NN−1≥N2pN(K6−1)≥a2log⁡pN(K6−1)≥a2log⁡pN(κlog⁡pNlog⁡3pN6−76)=aκ12log⁡3pN−7a12log⁡pN.(48)\begin{aligned} \frac{f(N)}{N^{N-1}}\ge\frac{N}{2p_N}\left(\frac{K}{6}-1\right)\ge\frac{a}{2\log p_N}\left(\frac{K}{6}-1\right) \\ &\ge\frac{a}{2\log p_N}\left(\frac{\kappa\log p_N\log_3p_N}{6}-\frac{7}{6}\right)=\frac{a\kappa}{12}\log_3p_N-\frac{7a}{12\log p_N}. \tag*{(48)} \end{aligned}

The use of the lower bound for NN is valid because K/6−1≥0K/6-1\ge0. Since pN≥Np_N\ge N, monotonicity of the iterated logarithm gives log⁡3pN≥log⁡3N\log_3p_N\ge\log_3N for sufficiently large NN. The error term in (48) tends to zero, whereas log⁡3N→∞\log_3N\to\infty. We can therefore choose an absolute N0N_0 satisfying all earlier thresholds and

7a12log⁡pN≤aκ24log⁡3N(N≥N0).\frac{7a}{12\log p_N}\le\frac{a\kappa}{24}\log_3N\qquad(N\ge N_0).

Substitution into (48) proves (1) for every N≥N0N\ge N_0. □

Remark 7.1 (On replacing log⁡3N\log_3N by log⁡2N\log_2N). The factor log⁡3N\log_3N comes from the choice y=κlog⁡xlog⁡3xy=\kappa\log x\log_3x. Indeed, with x=pNx=p_N, the averaging argument and the bound ∣S∣≫y|S|\gg y give

f(N)≫NN−1ylog⁡x.f(N)\gg N^{N-1}\frac{y}{\log x}.

provided that a prime q∈(x,2x)q\in(x,2x) with the required residue pattern is available. Chebyshev’s estimates give log⁡2pN∼log⁡2N\log_2p_N\sim\log_2N. To obtain a factor of order log⁡2N\log_2N by this construction, one would therefore seek that pattern at the larger scale

y=δLJ,L=log⁡x,J=log⁡L,δ>0 fixed.y=\delta LJ,\qquad L=\log x,\qquad J=\log L,\qquad\delta>0\text{ fixed}.

The estimates used above do not establish it, for the following reasons. At this scale, the bounds for ϑ(y)\vartheta(y) give H≍δLJH \asymp\delta LJ and log⁡H∼J\log H \sim J. Consequently,

ηL=c1Llog⁡H2H≍1δJ⟶0,c2HLlog⁡H≍δJ⟶∞.\eta L=\frac{c_1L\sqrt{\log H}}{2H}\asymp\frac{1}{\delta\sqrt{J}}\longrightarrow0,\qquad\frac{c_2H}{L\sqrt{\log H}}\asymp\delta\sqrt{J}\longrightarrow\infty.

The first relation shows that the zero-free region no longer supplies the decay used after (39): the factor log⁡Hexp⁡(−3ηL/4)\sqrt{\log H}\exp(-3\eta L/4) is now asymptotic to J\sqrt{J}. The second relation prevents the first inequality in (37). Thus the argument for making the contribution of zeros near 11 equal to o(x)o(x) fails at this scale.

Changing only the cutoff ε∈(0,1/2)\varepsilon\in(0,1/2) does not repair the estimates in Steps 2 and 3. By (14) and the bounds for π(y)\pi(y), we have log⁡Ry≍δL\log R_y\asymp\delta L. To obtain an o(x)o(x) estimate from the final bound in (40), one needs

log⁡(x−εRyH2)=−εL+log⁡Ry+2log⁡H⟶−∞.\log\left(x^{-\varepsilon}R_yH^2\right)=-\varepsilon L+\log R_y+2\log H\longrightarrow-\infty.

Since log⁡Ry≥cδL\log R_y\ge c\delta L for some absolute c>0c>0, this expression can tend to −∞-\infty only if ε≥cδ/2\varepsilon\ge c\delta/2 for all sufficiently large xx. Such a cutoff exceeds η1(y)\eta_1(y), which tends to zero. We then have log⁡(1/ε)=Oδ(1)\log(1/\varepsilon)=O_\delta(1), whereas

c2HLlog⁡(1/ε)≫δJ⟶∞.\frac{c_2H}{L\log(1/\varepsilon)}\gg_\delta J\longrightarrow\infty.

Hence the second inequality in (37) cannot hold either.

A direct enlargement of yy therefore does not yield the desired improvement. To make the argument work at this larger scale, one would need stronger control of zeros near ℜs=1\Re s=1, or an argument that avoids the present absolute estimates over the character family. These observations concern the estimates used here; they do not assert that the factor log⁡3N\log_3 N is optimal. School of Mathematical Sciences, University of Science and Technology of China, Hefei, Anhui, 230026, PR China

E-mail: [email protected]

References

  1. [1]T. M. Apostol, Introduction to Analytic Number Theory, Undergraduate Texts in Mathematics, Springer-Verlag, New York, 1976. Available at https://doi.org/10.1007/978-1-4757-5579-4.
  2. [2]G. Azevedo and J. Moreira, Pythagorean triples in level sets of completely multiplicative functions, preprint, arXiv:2607.04903 [math.NT], 2026. Available at https://arxiv.org/abs/2607.04903.
  3. [3]J. Cooper and R. Overstreet, Coloring so that no Pythagorean triple is monochromatic, preprint, arXiv:1505.02222 [math.CO], 2015. Available at https://arxiv.org/abs/1505.02222.
  4. [4]N. Frantzikinakis and B. Host, Higher order Fourier analysis of multiplicative functions and applications, J. Amer. Math. Soc. 30 (2017), no. 1, 67–157. Available at https://doi.org/10.1090/jams/857.
  5. [5]N. Frantzikinakis, O. Klurman, and J. Moreira, Partition regularity of generalized Pythagorean pairs, preprint, arXiv:2407.08360 [math.CO, math.NT], 2024, revised 2026. Available at https://arxiv.org/abs/2407.08360.
  6. [6]N. Frantzikinakis, O. Klurman, and J. Moreira, Partition regularity of Pythagorean pairs, Forum Math. Pi 13 (2025), e5. Available at https://doi.org/10.1017/fmp.2024.27.
  7. [7]N. Frantzikinakis and A. Mountakis, Recurrence for pretentious systems along generalized Pythagorean triples, preprint, arXiv:2508.09778 [math.DS, math.CO, math.NT], 2025, revised 2026. Available at https://arxiv.org/abs/2508.09778.
  8. [8]R. Graham, Some of my favorite problems in Ramsey theory, in Combinatorial Number Theory, de Gruyter, 2007, pp. 229–236. Available at https://mathweb.ucsd.edu/~ronspubs/07_04_favorite_problems.pdf.
  9. [9]M. J. H. Heule, O. Kullmann, and V. W. Marek, Solving and verifying the Boolean Pythagorean triples problem via cube-and-conquer, in Theory and Applications of Satisfiability Testing—SAT 2016, Lecture Notes in Computer Science, vol. 9710, Springer, 2016, pp. 228–245. Available at https://doi.org/10.1007/978-3-319-40970-2_15.
  10. [10]H. Iwaniec and E. Kowalski, Analytic Number Theory, American Mathematical Society Colloquium Publications, vol. 53, American Mathematical Society, Providence, RI, 2004. Available at https://doi.org/10.1090/coll/053.
  11. [11]Y.-K. Lau and J. Wu, On the least quadratic non-residue, Int. J. Number Theory 4 (2008), no. 3, 423–435. Available at https://doi.org/10.1142/S1793042108001432.
  12. [12]J. Leng, A new proof of two-color partition regularity of Pythagorean triples, preprint, arXiv:2609.34676 [math.NT, math.CO, math.DS], 2026. Available at https://arxiv.org/abs/2609.34676.
  13. [13]J. Leng, R. McNamara, and A. Mountakis, Monochromatic almost-Pythagorean quadruples, preprint, arXiv:2610.04078 [math.DS, math.CO], 2026. Available at https://arxiv.org/abs/2610.04078.
  14. [14]F. W. J. Olver, Asymptotics and Special Functions, A. K. Peters, Wellesley, MA, 1997; corrected reprint of the 1974 edition published by Academic Press. Available at https://doi.org/10.1201/9781439864548.
  15. [15]E. C. Titchmarsh, The Theory of the Riemann Zeta-function, 2nd ed., revised by D. R. Heath-Brown, Oxford University Press, Oxford, 1986. Available at https://sites.math.rutgers.edu/~zeilberg/EM18/TitchmarshZeta.pdf.
  16. [16]W. J. Wesley, An elementary proof of the 2-regularity of Pythagorean triples, preprint, arXiv:2609.39063 [math.CO], 2026. Available at https://arxiv.org/abs/2609.39063.
  17. [17]R. Xiao, Pythagorean pairs in boxes of prime powers, preprint, arXiv:2610.11965v1 [math.NT, math.CO], 2026. Available at https://arxiv.org/abs/2610.11965v1.

Paper details

vlnc:W_dshrb999
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

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

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents