Hostname: page-component-cd9895bd7-q99xh Total loading time: 0 Render date: 2024-12-26T07:42:11.515Z Has data issue: false hasContentIssue false

Generalized divisor functions in arithmetic progressions: II

Published online by Cambridge University Press:  16 November 2023

D. T. Nguyen*
Affiliation:
Department of Mathematics & Statistics, Queen’s University, Kingston, ON, Canada ([email protected])
Rights & Permissions [Opens in a new window]

Abstract

We obtain a new bound on the second moment of modified shifted convolutions of the generalized threefold divisor function and show that, for applications, the modified version is sufficient.

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press on Behalf of The Edinburgh Mathematical Society

1. Introduction

Let $\zeta^3(s) = \sum_n \tau_3(n) n^{-s},\, \Re(s) \gt 1$. Determining full asymptotic for the shifted convolutions

(1.1)\begin{equation} \sum_{1\le n\le N} \tau_3(n) \tau_3(n+h) \end{equation}

for various ranges of h is an important problem in number theory in the past hundred years and is still wide open. We believe, however, that Equation (1.1) is too strong for applications. What we mean by that is the following. Suppose $\mathbf{(\mathrm{\textbf{A}})}$ and $\mathbf{(\mathrm{\textbf{C}})}$ are two statements, possibly conjectures, with $\mathbf{(\mathrm{\textbf{A}})} \implies \mathbf{(\mathrm{\textbf{C}})}$. We say that $\mathbf{(\mathrm{\textbf{A}})}$ is ‘too strong’ for $\mathbf{(\mathrm{\textbf{C}})}$ if there exists a statement $\mathbf{(\mathrm{\textbf{B}})}$ such that (i) $\mathbf{(\mathrm{\textbf{B}})}$ is easier to prove than $\mathbf{(\mathrm{\textbf{A}})}$ and (ii) the following diagram of implications

holds. Thus, we propose the following modified weaker correlation sum:

(1.2)\begin{equation} \sum_{n\le X-h} \tau_3(n) \tau_3(n+h), \end{equation}

where the length of the sum depends on the shift h. We show that this sum in Equation (1.2) is close to its expected value in an L 2 sense and that this is enough for certain problems.

More precisely, we prove, with a power-saving error term, that the second moment of Equation (1.2), namely:

(B)\begin{equation} \sum_{h \lt X} \left( \sum_{n\le X-h} \tau_3(n) \tau_3(n+h) - \mathrm{MT}(X, h) \right)^2 \ll X^{3 - 1/100}, \end{equation}

is small, for a certain explicit main term $\mathrm{MT}(X, h)$. The main tool used in the proof is a trigonometric method of I. M. Vinogradov.

Second, as an application of the above bound (B), we obtain the full asymptotic for the variance of the ternary threefold divisor function in arithmetic progressions, averaged over all residue classes (not necessarily coprime) and moduli: there exist computable numerical constants $c_0, \dots, c_8$ such that

(C)\begin{equation} \sum_{q \le X} \sum_{1 \le a \le q} \left( \sum_{\substack{n\le X\\ n \equiv a (q)}} \tau_3(n) - \mathrm{MT}(X; q, a) \right)^2 = X^2 (c_8 \log^8 X + \cdots + c_0) + O\left( X^{2 - 1/300} \right), \end{equation}

for some explicit main term $\mathrm{MT}(X; q, a)$. This result refines a related conjecture (see Conjecture 1.1) about the leading order asymptotic of a similar variance and improves a previously known upper bound by the author.

Quantities of the form (C) have their roots in the celebrated Bombieri–Vinogradov Theorem [Reference Bombieri4, Reference Vinogradov24], which, in one form, asserts that

(1.3)\begin{equation} \sum_{1\le q\le N^{1/2} (\log N)^{-B}} \max_{y\le N} \max_{(a,q)=1} \left|\sum_{\substack{1\le n\le y\\ n\equiv a( q)}} \Lambda(n) - \frac{y}{\varphi(y)} \right| \ll N(\log N)^{-A}, \end{equation}

where $\Lambda(n)$ is the von Mangoldt function and $B=4A\,+\,40$ with A > 0 arbitrary. Analogues of Equation (1.3) have been found for all $\tau_k(n)$ [Reference Nguyen19] and $\tau_2(n)^2$ [Reference Motohashi16, Lemma 8], where $\tau_k(n)$ is the k-fold divisor function: $\sum_{n=1}^\infty \tau_k(n) n^{-s} = \zeta^k(s), \Re(s) \gt 1$. Around the same time, Barban [Reference Barban2, Reference Barban3], Davenport–Halberstam [Reference Davenport and Halberstam7] and Gallagher [Reference Gallagher9] found the following related inequality in which the absolute value is being squared:

(1.4)\begin{equation} \sum_{1\le q\le N(\log N)^{-B}} \sum_{\substack{1\le a\le q\\ (a,q)=1}} \left| \sum_{\substack{1\le n\le N\\ n\equiv a (q)}} \Lambda(n) - \frac{N}{\varphi(q)} \right|^2 \ll N^2 (\log N)^{-A}, \end{equation}

giving a much wider range for q. In fact, Davenport and Halberstam proved a slightly stronger result than Barban’s, while Gallagher gave a simplified elegant proof. For this reason, this type of inequalities are often referred to as Barban–Davenport–Halberstam type inequalities.

Barban–Davenport–Halberstam type inequalities have many applications in number theory. For instance, a version of this inequality (with $\Lambda(n)$ replaced by related convolutions over primes) was skillfully used by Zhang [Reference Zhang25, Lemma 10] in his spectacular work on bounded gaps between primes.

In 1970, Montgomery [Reference Montgomery15] succeeded in replacing the inequality in Equation (1.4) by an asymptotic equality. Montgomery’s method is based on a result of Lavrik, which in turns relied on I. M. Vinogradov’s theory of exponential sums over primes. One of Montgomery’s results is

(1.5)\begin{equation} \sum_{1\le q\le Q} \sum_{\substack{1\le a\le q\\ (a,q)=1}} \left| \sum_{\substack{1\le n\le N\\ n\equiv a (q)}} \Lambda(n) - \frac{N}{\varphi(q)} \right|^2 = QN\, \log N + O(QN\, \log(2N/Q)) + O\left(N^2 (\log N)^{-A} \right), \end{equation}

for $Q\le N$ and A > 0 arbitrary. A few years later, Hooley [Reference Hooley12], by introducing new ideas in treatment of the off-diagonal terms specific to primes, sharpened the right side of Equation (1.5) to

\begin{equation*} QN \log N + O(QN) + O(N^2 (\log N)^{-A})), \end{equation*}

with $\Lambda(n)$ replaced by the Chebyshev function $\theta(n)$.

Motohashi [Reference Motohashi17], by using an approach similar to Montgomery, elaborately established a more precise asymptotic with lower order and power saving error terms for the divisor function $\tau(n)$. Recently, by function field analogues, Rodgers and Soundararajan [Reference Rodgers and Soundararajan22] were led to an analogous conjecture for the leading order asymptotic of the variance of the k-fold divisor function τk over the integers. We state here a smoothed version of that conjecture formulated in [Reference Nguyen20, Conjecture 1].

Conjecture 1.1.

Let w(y) be a smooth function supported in $[1,2]$ with

\begin{equation*} \int w(y)^2 \,{\rm d}y = 1, \end{equation*}

and

\begin{equation*}\mathcal M\lbrack w\rbrack(\sigma+it)\ll_\ell\frac1{\left(1+\vert t\vert\right)^\ell},\end{equation*}

uniformly for all $|\sigma| \le A$ for any fixed positive A > 0, for all positive integers $\ell$, where $\mathcal{M}[w]$ denotes the Mellin transform

\begin{equation*} \mathcal{M}[w](s) = \int_0^\infty w(x) x^{s-1}\,{\rm d}x, \end{equation*}

of w. Then, for $X, d \to \infty$ such that $({\log X}/{\log d}) \to c \in (0,k)$, we have

(1.6)\begin{equation} \sum_{\substack{1\le a\le d\\ (a,d)=1}} \left| \Delta_w(\tau_k;X,d,a) \right|^2 \sim a_k(d) \gamma_k(c) X (\log d)^{k^2-1}, \end{equation}

where

\begin{equation*} \Delta_w(\tau_k;X,d,a) = \sum_{n \equiv a \pmod d} \tau_k(n) w\left( \frac{n}{X} \right) - \frac{1}{\varphi(d)} \sum_{(n,d) = 1} \tau_k(n) w\left( \frac{n}{X} \right), \end{equation*}
\begin{equation*} a_k(d) = \lim_{s\to 1^+} (s-1)^{k^2} \sum_{\substack{n=1\\ (n,d)=1}}^\infty \frac{\tau_k(n)^2}{n^s}, \end{equation*}

and $\gamma_k(c)$ is a piecewise polynomial of degree $k^2 - 1$ defined by

\begin{equation*} \gamma_k(c) = \frac{1}{k! G(k+1)^2} \int_{[0,1]^k} \delta_c (w_1 + \cdots + w_k) \Delta(w)^2 {\rm d}^kw, \end{equation*}

with $\delta_c(x) = \delta(x-c)$ a Dirac delta function centred at c, $\Delta(w) = \prod_{i \lt j} (w_i - w_j)$ a Vandermonde determinant, and G the Barnes G-function, so that in particular $G(k + 1) = (k - 1)! (k - 2)! \cdots 1!$.

In [Reference Rodgers and Soundararajan22], Rodgers and Soundararajan confirmed an averaged version of this conjecture in a restricted range over smooth cutoffs. Harper and Soundararajan [Reference Harper and Soundararajan11] obtained a lower bound of the right order of magnitude for the average of this variance. In [Reference Nguyen20], by using the functional equation for $L(s,\chi)$ and a multiplicative Voronoi summation formula, the author confirmed the asymptotic equation (1.6) for the restricted dual range $k-1 \lt c \lt k$ for all k. By the large sieve inequality, the author also obtained in [Reference Nguyen19, Theorem 3] an upper bound of the same order of magnitude for this averaged variance.

The smoothed asymptotic equation (1.6) as well as the un-smoothed version are closely related to the problem of moments of Dirichlet L-functions [Reference Conrey and Gonek5] and correlations of divisor sums [Reference Conrey and Keating6]. This is due to the appearance of the factor $\gamma_k(c)$ in the leading order asymptotic in Equation (1.6). This piecewise polynomial ‘gamma-k-c’, as it is commonly referred to, is known to be connected with the geometric constants gk in the moment conjecture:

\begin{equation*} \int_0^T \left| \zeta\left(\frac{1}{2} + it\right) \right|^{2k} {\rm d}t \sim a_k g_k T\frac{(\log T)^{k^2}}{k^2!}, (T \to \infty), \end{equation*}

where

\begin{equation*} a_k = \prod_p \left(1-\frac{1}{p}\right)^{(k-1)^2} \left( 1 + \frac{\binom{k-1}{1}^2}{p} + \frac{\binom{k-1}{2}^2}{p^2} + \cdots \right), \end{equation*}

by the conjectural relation

\begin{equation*} k^2! \int_0^k \gamma_k(c)\, {\rm d}c = g_k,\quad (k \ge 1). \end{equation*}

We note that the coprimity condition $(a,d)=1$ in Equation (1.6) is essential for this phenomenon.

In summary, we obtain in this paper a new upper bound for the second moment of the error term of the modified shifted convolution of $\tau_3(n)$ in Theorem 2.1 and, as an application, apply this bound to obtain a full asymptotic with a power-saving error term for a variance of $\tau_3(n)$ in arithmetic progressions in Theorem 2.2. The novelty of our results is the demonstration that a modified version of the original additive correlation sum is adequate for certain applications.

1.1. Notations

$\tau_k(n)$: the number of ways to write a natural number n as an ordered product of k positive integers.

$\tau(n) = \tau_2(n)$: the usual divisor function.

$\varphi(n)$: Euler’s function, i.e., the number of reduced residue classes modulo n.

$\zeta(s)$: Riemann’s zeta function with variable $s=\sigma+i t$.

$\Gamma(s)$: Gamma function.

γ: Euler’s constant $= 0.5722 \dots$.

$\gamma_0(\alpha)$: 0th generalized Stieltjes constant:

\begin{equation*} \gamma_0(\alpha) = \lim_{m\to \infty} \left(\sum_{k=0}^m \frac{1}{k+\alpha} - \log(m+\alpha) \right). \end{equation*}

$e(x)= e^{2\pi i x}.$

$e_q(a) = e^{2\pi i \frac{a}{q}}$.

$c_q(b)$: Ramanujan’s sum

\begin{equation*} c_q(b) = \sum_{\substack{1\le a\le q\\ (a,q)=1}} e_q(ab). \end{equation*}

(m, n): the greatest common divisor of m and n.

$[m,n]$: the least common multiple of m and n.

N: sufficiently large integer.

ɛ: arbitrary small positive constant, not necessarily the same in each occurrence.

$P_r(\log N)$: a polynomial of degree r in $\log N$, not necessarily the same in each occurrence.

Throughout the paper, all constants in O-terms or in Vinogradov’s notation $\ll$ depends on ɛ at most.

2. Statement of results

Our main results are the following.

Theorem 2.1. We have, for sufficiently large N,

(2.1)\begin{equation} \sum_{1 \le k \lt N} \left( \sum_{n\le N - k} \tau_3(n) \tau_3(n + k) - S_\Delta(k, N) \right)^2 \ll N^{299/100}, \end{equation}

where $S_\Delta(k, N)$ is given by Equation (3.20) with $\Delta = N^{4/19}$.

As an application, we apply Equation (2.1) to prove

Theorem 2.2. We have the following asymptotic equality, with effectively computable numerical constants $\mathfrak{S}_j,\ (0\le j\le 8)$,

(2.2)\begin{align} \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \left| \sum_{\substack{1\le n\le N\\ n\equiv b (\text{mod } \ell)}} \tau_3(n) - N P_2(\log N) \right|^2 = N^2 \sum_{j=0}^8 \mathfrak{S}_{8-j} \log^{8-j}N + O\left(N^{2 - \frac{1}{300} } \right), \end{align}

where

(2.3)\begin{equation} P_2(\log N) = \underset{s=1}{\mathrm{Res}} \left\{ \sum_{n\equiv b (\text{mod } \ell)} \frac{\tau_3(n)}{n^s} \frac{N^{s-1}}{s} \right\}. \end{equation}

2.1. Remarks

  1. (1) Our bound (2.1) is an improvement of a related result of Baier et al. [Reference Baier, Browning, Marasingha and Zhao1], who proved an analogous estimate to Equation (2.1) but for correlations of τ 3 with fixed length and shifts up to $N^{1-\varepsilon}$. More precisely, they proved in [Reference Baier, Browning, Marasingha and Zhao1, Theorem 2]: Assume that $N^{1/3 + \varepsilon} \le H \le N^{1-\varepsilon}$. Then, there exists δ > 0 such that

    \begin{equation*} \sum_{h\le H} \left| \sum_{N \lt n \le 2N} \tau_3(n) \tau_3(n+h) - \mathrm{MT_2}(N, h) \right|^2 \ll H N^{2- \delta}, \end{equation*}
    for some main term $\mathrm{MT_2}(N, h)$.
  2. (2) The expected main term (EMT) $P_2(\log N)$ in Equation (2.2) is a certain polynomial of degree two in $\log N$ whose coefficients can all be determined explicitly (c.f. Lemma 3.6):

    \begin{equation*} P_2(\log N) = \frac{1}{2} \tilde{A}\, \log^2 N - (\tilde{A}-\tilde{B})\log N + (\tilde{A}-\tilde{B}+\tilde{C}), \end{equation*}
    where
    \begin{equation*} \tilde{A} = \tilde{A}(\ell,b) = \ell^{-1} \sum_{q\mid \ell} q^{-3} c_q(b) \sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma), \end{equation*}
    \begin{equation*} \tilde{B} = \tilde{B}(\ell,b) = \ell^{-1} \sum_{q\mid \ell} q^{-3} c_q(b) \sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma) (3\gamma_0(\alpha/q) - 3\,\log q), \end{equation*}
    \begin{align*} \tilde{C} = \tilde{C}(\ell,b) & = \ell^{-1} \sum_{q\mid \ell} q^{-3} c_q(b) \sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma) \\ & \qquad \left(3 \gamma_0(\alpha/q) \gamma_0(\beta/q) - 9\gamma_0(\alpha/q)\log q + \frac{9}{2} \,\log^2 q\right), \end{align*}

    γ is Euler’s constant, $\gamma_0(\alpha)$ is the 0th Stieltjes constant and $c_q(b)$ is the Ramanujan sum. Different main terms are also considered by other authors. Our choice of EMT Equation (2.3) here differs from that of Equation (1.6) by an admissible amount which can be shown to be at most $O(X^{2/3+\varepsilon})$. This has the harmless effect of changing lower order terms coefficients $\mathfrak{S}_j$ in the asymptotic; see the discussion proceeding Lemma 4.17. Since our average over $b (\textrm{mod } \ell)$ is over all residue classes not necessarily coprime to $\ell$, the expression Equation (2.3) is the natural EMT to consider, as can readily be seen from its shape. When coprimality condition is imposed on $b (\textrm{mod } \ell)$, the corresponding EMT is the one appearing in Equation (1.6); this EMT comes from the contribution of the principal character χ mod $\ell$.

  3. (3) The constants $\mathfrak{S}_j, 0\le j\le 8,$ have complicated expressions but can be explicitly determined from our proof. We give here the value of the leading constant $\mathfrak{S}_8$:

    (2.4)\begin{equation} \mathfrak{S}_8 = \frac{1}{8!} \prod_p \left(1-9p^{-2} + 16 p^{-3} - 9 p^{-4} + p^{-6} \right) \approx 1.22326 \times 10^{-6}. \end{equation}
  4. (4) T. Parry has recently informed us that he has succeeded in obtaining an asymptotic formula for all k for the quantity:

    \begin{equation*} \sum_{q \lt Q} \sum_{a=1}^q \left|\sum_{n \lt x\atop {n=a(q)}} \tau_k(n)- \text{main term} \right|^2, \end{equation*}
    with power saving error terms.

    His result is now available: By using a different method of Goldston and Vaughan [Reference Goldston and Vaughan10], Parry obtained in [Reference Parry21, Theorem 1] there is a quantity $f_x(q, a)$, such that for fixed $a, q \ge 1$,

    \begin{equation*} \sum_{\substack{n \le x\\ n \equiv a \pmod q}} \tau_k(n) \sim \frac{x}{q} f_x(q, a), \quad (x \to \infty), \end{equation*}
    and setting
    \begin{eqnarray*} E_x(q,a)=\sum _{n\leq x\atop {n\equiv a(q)}}\tau_k(n)-\frac {xf_x(q,a)}{q}\qquad\text {and} \qquad V(x,Q)&=&\sum _{q\leq Q}\sum _{a=1}^q|E_x(q,a)|^2, \end{eqnarray*}
    one has, for some polynomial $P(\cdot,\cdot )$ of degree $\leq k^2-1$ and $1\leq Q=o(x)$,
    (2.5)\begin{align} V(x,Q)& =xQP(\log x,\log Q) \\ & \qquad +\mathcal O_{k,\varepsilon }\left (Q^2\left (\frac {x}{Q}\right )^{\mathfrak c}+\underbrace {x^{3/2+\varepsilon }}_{k=2}+\underbrace {x^{2-4/(6k-3)+\varepsilon }}_{k \gt 2}+Qx^{1-\mathfrak d+\varepsilon }\right), \end{align}
    where
    \begin{equation*} \mathfrak{c} \in \begin{cases} (1/2 , 1), & \text{for } k=2, \\ ( 1- 1/k(k-2), 1 ), & \text{for } k \gt 2, \end{cases} \end{equation*}
    and $\mathfrak{d} \in (0,1)$ is any value for which we have
    \begin{equation*} \sum_{n \le X} \tau_k(n)^2 = X P(\log X) + O_\varepsilon\left( X^{1-\mathfrak{d} + \varepsilon} \right), \end{equation*}
    for some polynomial P of degree $k^2-1$. We view our endpoint estimate (2.2) a complement to (2.5) and vice versa for k = 3.

2.2. Outline of the proofs

We follow the approach of Motohashi [Reference Motohashi17] in his treatment of the divisor function $\tau(n)$, which in turn was based on Montgomery’s adaptation [Reference Montgomery15] of a result of Lavrik [Reference Lavrik14] on twin primes on average.

To control the error term, we prove an analog of Lavrik’s result for τ 3, using a simpler version of Vinogradov’s method of trigonometric sums, as in [Reference Motohashi17]. The standard convexity bound for $\zeta(s)$ in the critical strip suffices for our purpose. We remark here that our analogue of Lavrik’s result can be seen as an average result concerning the mean square error of the following modified additive divisor sum

(2.6)\begin{equation} \sum_{1\le n\le N-h} \tau_3(n) \tau_3(n+h) \end{equation}

of length Nh averaged over h up to $h\le N-1$. The advantage of considering Equation (2.6) is that the length of this sum becomes shorter the larger the shift h is, making contribution from large shifts small, so a power saving is possible when an average over h is taken. This idea might also have applications to the sixth power moment of $\zeta(s)$, which we plan to revisit in the near future.

To evaluate the main term, we proceed slightly different from Motohashi due to some complications involving an exponential sum in three variables. We show that the resulting sum can be evaluated, on average, thanks to an orthogonality property of the Ramanujan’s sums.

3. Proof of Theorem 2.1

For σ > 1 and $(a,q)=1$, let

(3.1)\begin{equation} E\left(s; \frac{a}{q} \right) = E_3\left(s; \frac{a}{q} \right) = \sum_{n=1}^\infty \tau_3(n) e_q(an) n^{-s}. \end{equation}

The case for the usual divisor function $\tau(n)$ was considered by Estermann (1930) who obtained analytic continuation and the functional equation for the corresponding generating function. Smith extended the result to all τk. We specialize to a special case his results.

Lemma 3.1. ([Reference Smith23, Theorem 1, pg. 258])

The function $E_3(s;a/q)$ has a meromorphic continuation to the whole complex plane where it is everywhere holomorphic except for a pole of order 3 at s = 1. Moreover, $E(s;a/q)$ satisfies the functional equation:

(3.2)\begin{equation} E(s;a/q) = \left(\frac{q}{\pi}\right)^{-\frac{3}{2} (2s-1)} \frac{\Gamma^3\left(\frac{1-s}{2}\right)}{\Gamma^3(\frac{s}{2})} E^+(1-s;a/q) + i \left(\frac{q}{\pi}\right)^{\frac{3}{2}(2s-1)} \frac{\Gamma^3\left(\frac{2-s}{2}\right)}{\Gamma^3\left(\frac{1+s}{2}\right)} E^-(1-s;a/q), \end{equation}

where

\begin{equation*} E^{\pm}(s;a/q) = \sum_{m_1,m_2,m_3\ge 1} G^\pm(m_1, m_2, m_3; a/q) (m_1 m_2 m_3)^{-s},\quad (\sigma \gt 1), \end{equation*}
\begin{equation*} G^\pm(m_1,m_2,m_3;a/q) = \frac{1}{2q^{3/2}} \{G(m_1,m_2,m_3;a/q) \pm G(m_1,m_2,m_3;-a/q) \}, \end{equation*}

and

\begin{equation*} G(m_1,m_2,m_3; a/q) = \sum_{x_1,x_2,x_3 (q)} e_q(am_1m_2m_3 + m_1x_1 + m_2x_2 + m_3x_3). \end{equation*}

We rewrite the functional equation (3.2) as follows (c.f. Ivic [Reference Ivić, Greaves, Harman and Huxley13]). Let

\begin{align*} A^{\pm}(n,a/q) = \sum_{n_1n_2n_3=n} \sum_{x_1,x_2,x_3=1}^q \frac{1}{2} &\big(e_q(a x_1 x_2 x_3 + n_1x_1 + n_2x_2 + n_3x_3) \\ &\pm e_q(-a x_1 x_2 x_3 + n_1x_1 + n_2x_2 + n_3x_3) \big). \end{align*}

We have that

\begin{equation*} |A^{\pm}(n,a/q)| \le q^3 \tau_3(n). \end{equation*}

Then from Lemma 3.1, we obtain the following form of the functional equation.

Lemma 3.2. ([Reference Ivić, Greaves, Harman and Huxley13, Lemma 2, pg. 1007])

For σ < 0 and $(a,q)=1$, we have

(3.3)\begin{align} E(s; a/q) & = \left(\frac{q}{\pi}\right)^{-\frac{3}{2} (2s-1)} \left\{\frac{\Gamma^3\left(\frac{1-s}{2}\right)}{\Gamma^3\left(\frac{s}{2}\right)} \sum_{n=1}^\infty A^+(n,a/q) n^{s-1}\right. \\ & \left. \qquad + i \frac{\Gamma^3\left(\frac{2-s}{2}\right)}{\Gamma^3\left(\frac{1+s}{2} \right)} \sum_{n=1}^\infty A^-(n,a/q) n^{s-1} \right\}, \end{align}

where the two series on the right-side are absolutely convergent.

We also need the Laurent expansion of $E(s; a/q)$ at s = 1 for residue calculations. We first recall a lemma from Motohashi [Reference Motohashi17].

Lemma 3.3. We have, uniformly for any integer d,

\begin{equation*} \sum_{1\le m\le y} \tau(dm) = y \sum_{q \mid d} \frac{\varphi(q)}{q} (\log dy + 2\gamma -1 - 2\,\log q) + O(\tau^2(d) y^{1/2} \log^2 y). \end{equation*}

Proof. See [Reference Motohashi17, Lemma 4.6.1, p. 193].

Lemma 3.4. For $(a,q) =1$, we have

(3.4)\begin{equation} E(s;a/q) = \frac{1}{q} \left(\frac{A}{(s-1)^3} + \frac{B}{(s-1)^2} + \frac{C}{s-1}\right) + \sum_{n=0}^\infty c_n(a,q) (s-1)^n, \end{equation}

where

\begin{align*} A &= A(q) = q^{-2}\sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma),\\ B &= B(q) = q^{-2}\sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma) (3\gamma_0(\alpha/q) - 3\,\log q),\\ C &= C(q) = q^{-2}\sum_{\alpha,\beta,\gamma=1}^q e_q\left(a\alpha \beta\gamma) (3 \gamma_0(\alpha/q) \gamma_0(\beta/q) - 9\gamma_0(\alpha/q)\log q + \frac{9}{2}\, \log^2 q\right), \end{align*}

with

(3.5)\begin{equation} \gamma_0(\alpha) = \lim_{m\to \infty} \left(\sum_{k=0}^m \frac{1}{k+\alpha} - \log(m+\alpha) \right). \end{equation}

The coefficients $A,B$ and C are independent of a and satisfy:

(3.6)\begin{align} A(q) \ll \log^2q,\quad B(q) \ll \log^3 q,\quad C(q) \ll \log^4 q, \end{align}

uniformly in a.

Proof. See Ivić [Reference Estermann8, pp. 1007–1008] for the Laurent expansion (3.4). In fact, Ivić also gave upper bound of the form q ɛ for $A,B$, and C which came from the bound:

\begin{equation*} \sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma) \le q \sum_{1\le \alpha\le q} \tau( \alpha q) \ll q^{2+\varepsilon}. \end{equation*}

We can sharpen this upper bound by applying Lemma 3.3 and bounding $\sum_{q \mid d} \frac{\varphi(q)}{q}$ by $\log(q)$, giving:

\begin{equation*} \sum_{\alpha,\beta,\gamma=1}^q e_q(a\alpha \beta\gamma) \le q \sum_{1\le \alpha\le q} \tau( \alpha q) \ll q^2 \log^2q. \end{equation*}

Thus, noting that $\gamma_0(\alpha) \ll 1$ by Equation (3.5), the bound Equation (3.6) follows.

Lemma 3.5. For $n\ge 1$ and $(a,q)=1$, we have:

(3.7)\begin{equation} \underset{s=1}{\mathrm{Res}}\ E\left(s;\frac{a}{q}\right) \frac{n^s}{s} = q^{-1} n \left(\frac{A}{2}\log^2n - (A-B)\log n + (A-B+C) \right), \end{equation}

where $A,B$ and C are given in Lemma 3.4.

Proof. We have, by Equation (3.4),

\begin{align*} \underset{s=1}{\mathrm{Res}}\ E\left(s;\frac{a}{q}\right) \frac{n^s}{s} &= \frac{1}{2} \lim_{s\to1} \frac{d^2}{ds^2} \left((s-1)^3 E\left(s;\frac{a}{q}\right) \frac{n^s}{s} \right) \\ &= \frac{1}{2q} \lim_{s\to1} \frac{d^2}{ds^2} \left((A + B(s-1) + C(s-1)^2 + O((s-1)^3)) \frac{n^s}{s} \right) \\ &= q^{-1} n \left(\frac{A}{2}\log^2n - (A-B)\log n + (A-B+C) \right). \end{align*}

Lemma 3.6. For σ > 1, let

\begin{equation*} R(s;\ell,b) = \sum_{n\equiv b (\text{mod } \ell)} \tau_3(n) n^{-s}. \end{equation*}

We have

\begin{equation*} \underset{s=1}{\mathrm{Res}}\ R(s;\ell,b) \frac{N^s}{s} = N \left(\frac{\tilde{A}}{2}\log^2 N - (\tilde{A}-\tilde{B})\log N + (\tilde{A}-\tilde{B}+\tilde{C}) \right), \end{equation*}

where

\begin{align*} \tilde{A} &= \tilde{A}(\ell,b) = \ell^{-1} \sum_{q\mid \ell} q^{-1} c_q(b) A(q), \\ \tilde{B} &= \tilde{B}(\ell,b) = \ell^{-1} \sum_{q\mid \ell} q^{-1} c_q(b) B(q), \\ \tilde{C} &= \tilde{C}(\ell,b) = \ell^{-1} \sum_{q\mid \ell} q^{-1} c_q(b) C(q), \end{align*}

with $A(q),B(q),C(q)$ given in Lemma 3.4.

Proof. We can write $R(s;\ell,b)$ as:

\begin{align*} R(s;\ell,b) &= \frac{1}{\ell} \sum_{q \mid \ell} \sum_{\substack{1\le a\le q\\ (a,q)=1}} e_q(-ab) E\left(s;\frac{a}{q} \right) \\ &= \frac{1}{\ell} \sum_{q \mid \ell} \frac{1}{q} c_q(b) \left(\frac{A(q)}{(s-1)^3} + \frac{B(q)}{(s-1)^2} + \frac{C(q)}{s-1}\right)\\ & \qquad + \sum_{n=0}^\infty \frac{1}{\ell} \sum_{q \mid \ell} \frac{1}{q} c_q(b) c_n(a,q) (s-1)^n \\ &= \frac{\tilde{A}(\ell,b)}{(s-1)^3} + \frac{\tilde{B}(\ell,b)}{(s-1)^2} + \frac{\tilde{C}(\ell,b)}{s-1} + \sum_{n=0}^\infty \frac{1}{\ell} \sum_{q \mid \ell} \frac{1}{q} c_q(b) c_n(a,q) (s-1)^n. \end{align*}

The lemma follows as in the previous one.

For $\alpha\in \mathbb{R}$, let

(3.8)\begin{equation} D(\alpha,N) = \sum_{1\le n\le N} \tau_3(n) e(\alpha n). \end{equation}

Using Equation (3.1) we first estimate $D(\alpha,N)$ for $\alpha=a/q$ with $(a,q)=1$.

Lemma 3.7. For $(a,q)=1$, we have

\begin{equation*} D\left(\frac{a}{q},n \right) = \frac{n}{q} \left( \frac{A}{2}\, \log^2n - (A-B)\log n + (A-B+C) \right) + O\left\{(nq+q^2)^{3/5+\varepsilon} \right\}, \end{equation*}

with $A,B,C$ given in Lemma 3.4.

Proof. We have

(3.9)\begin{align} D\left(\frac{a}{q},n \right) &= \underset{s=1}{\mathrm{Res}}\ E\left(s;\frac{a}{q}\right) \frac{n^s}{s} + \underset{s=0}{\mathrm{Res}}\ E\left(s;\frac{a}{q}\right) \frac{n^s}{s} + \frac{1}{2\pi i} \int_{-\delta-iT}^{-\delta+iT} E\left(s;\frac{a}{q}\right) \frac{n^s}{s}\, {\rm d}s\\ &+ O\left\{\frac{n^{1+\varepsilon}}{T} + n^\varepsilon + \frac{1}{T} \int_{-\delta}^{1+\delta} \left|E\left(\sigma+iT;\frac{a}{q}\right)\right| n^\sigma \,{\rm d}\sigma \right\}, \end{align}

where $\delta= (\log(nq+1))^{-1}$ and T is to be determined latter. By expressing the residue as an integral around the origin,

(3.10)\begin{equation} \left|\underset{s=0}{\mathrm{Res}}\ E\left(s;\frac{a}{q}\right) \frac{n^s}{s} \right| \ll (\log(qn+1))^3. \end{equation}

By the functional equation (3.3) and the convexity argument,

\begin{equation*} \left|E\left(\sigma+iT; \frac{a}{q}\right) \right| \ll (qT)^{\frac{3}{2}(1-\sigma)} (\log qT)^6, \end{equation*}

uniformly for $-\delta \le \sigma \le 1+\delta$. Hence, we get

(3.11)\begin{equation} \left|\frac{1}{2\pi i} \int_{-\delta-iT}^{-\delta+iT} E\left(s;\frac{a}{q}\right) \frac{n^s}{s} \textrm{d}s \right| \ll (Tq)^\frac{3}{2} (\log qT)^7, \end{equation}

and

(3.12)\begin{equation} \frac{1}{T}\int_{-\delta}^{1+\delta} \left|E\left(\sigma+iT;\frac{a}{q}\right)\right| n^\sigma \,{\rm d}\sigma \ll \frac{n}{T} (\log qT)^6 \int_{-\delta}^{1+\delta} \left(\frac{Tq}{n^{2/3}}\right)^{\frac{3}{2}(1-\sigma)} \,{\rm d}\sigma. \end{equation}

Taking

\begin{equation*} T = q^{-1} (nq + q^2)^{2/5}, \end{equation*}

it follows from Equations (3.7), (3.9), (3.10), (3.11) and (3.12) that

\begin{equation*} D\left(\frac{a}{q},n \right) = \frac{n}{q} \left( \frac{A}{2}\, \log^2n - (A-B)\log n + (A-B+C) \right) + O\left\{(nq+q^2)^{3/5+\varepsilon} \right\}. \end{equation*}

Lemma 3.8. For $\alpha \in \mathbb{R}$, we have

(3.13)\begin{align} D(\alpha,N) &= \frac{1}{q} \sum_{1\le n\le N} \left( \frac{A}{2}\, \log^2n - (A-B)\log n + (A-B+C) \right) e\left(\left(\alpha-\frac{a}{q}\right)n \right)\\ &+ O\left\{(Nq+q^2)^{3/5+\varepsilon} \left(1+\left|\alpha-\frac{a}{q} \right| N \right) \right\}, \end{align}

with A, B and C given in Lemma 3.4.

Proof. We have

\begin{equation*} D(\alpha,N) = \sum_{1\le n\le N} \left\{D(a/q,n) - D(a/q,n-1) \right\} e((\alpha-a/q)n). \end{equation*}

This, together with Lemma 3.7 and partial summation, gives Equation (3.13).

Let

(3.14)\begin{equation} F\left(\alpha, \frac{a}{q}, N \right) = \frac{1}{q} \sum_{1\le n\le N} \left( \frac{A}{2} \log^2n - (A-B)\log n + (A-B+C) \right) e\left(\left(\alpha-\frac{a}{q}\right)n \right), \end{equation}

and

(3.15)\begin{equation} G_\Delta(\alpha,N) = \sum_{1\le q\le \Delta} \sum_{\substack{a=1\\(a,q)=1}}^q \left|F\left(\alpha,\frac{a}{q}, N\right) \right|^2, \end{equation}

where Δ satisfies

(3.16)\begin{equation} 4\Delta \le \Omega, \end{equation}

where Ω is the order of a Farey series (see $\S$ 3.1) and Δ is to be determined more precisely later; see Equation (3.30) below. By Lemma 3.8 and Equation (3.14),

(3.17)\begin{equation} \left|D(\alpha,N) - F(\alpha,a/q,N) \right| \ll (Nq+q^2)^{3/5+\varepsilon} \left(1+\left|\alpha-\frac{a}{q} \right| N \right). \end{equation}

Now, by Equations (3.14) and (3.15),

(3.18)\begin{equation} G_\Delta(\alpha,N) = \sum_{|k|\le N-1} e(\alpha k) \left(\sum_{1\le q\le \Delta} \frac{1}{q^2} W_q(k,N) \sum_{\substack{a=1\\(a,q)=1}}^q e_q(-ak) \right), \end{equation}

where

(3.19)\begin{align} W_q(k,N) &= \frac{1}{4} A^2 \sum_{1\le n\le N-|k|} \log^2 n\, \log^2(n+|k|)\\ &-\frac{1}{2} A(A-B) \sum_{1\le n\le N-|k|} \log n\, \log(n+|k|) \log n(n+|k|) \\ &+ (A-B)^2 \sum_{1\le n\le N-|k|} \log n\, \log(n+|k|) \\ &-\frac{1}{2} A(A-B+C) \sum_{1\le n\le N-|k|} (\log^2 n + \log^2(n+|k|)) \\ &- (A-B)(A-B+C) \sum_{1\le n\le N-|k|} \log n(n+|k|) \\ &+ (A-B+C)^2 (N-|k|) \\ &= w_1(q) T_1(k,N) + \cdots + w_6(q) T_6(k,N), \end{align}

say. For the innermost sum in Equation (3.18), we have

\begin{equation*} \sum_{\substack{a=1\\(a,q)=1}}^q e_q(-ak) = \mu\left(\frac{q}{(q,|k|)}\right) \frac{\varphi(q)}{\varphi\left(\frac{q}{(q,|k|)}\right)} = c_q(|k|). \end{equation*}

Thus, we write Equation (3.18) as

(3.20)\begin{equation} G_\Delta(\alpha,N) = \sum_{|k|\le N-1} \left(\sum_{1\le q\le \Delta} q^{-2} c_q(|k|) W_q(k,N) \right) e(\alpha k) = \sum_{|k|\le N-1} S_\Delta(k,N) e(\alpha k), \end{equation}

say. Now, by Equation (3.8), we have

\begin{equation*} |D(\alpha,N)|^2 = \sum_{|k| \le N-1} V(k,N) e(\alpha k), \end{equation*}

where

(3.21)\begin{equation} V(k,N) = \sum_{1\le n\le N-|k|} \tau_3(n) \tau_3(n+|k|). \end{equation}

Thus,

\begin{equation*} |D(\alpha,N)|^2 - G_\Delta(\alpha,N) = \sum_{|k| \le N-1} (V(k,N) - S_\Delta(k,N)) e(\alpha k), \end{equation*}

and we obtain

Lemma 3.9.

(3.22)\begin{equation} \sum_{|k| \le N-1} \left(V(k,N) - S_\Delta(k,N) \right)^2 = \int_0^1 \left| |D(\alpha,N)|^2 - G_\Delta(\alpha,N) \right|^2 {\rm d}\alpha, \end{equation}

with $D(\alpha,N)$, $G_\Delta(\alpha,N)$, $V(k,N)$ and $S_\Delta(k,N)$ given by Equations (3.8), (3.15), (3.21) and (3.20), respectively.

This integral will be estimated in $\S$ 3.1 below.

Lemma 3.10. With

(3.23)\begin{align} T_1(k,N) &= \sum_{1\le n\le N-|k|} \log^2 n \,\log^2(n+|k|),\\ T_2(k,N) &= \sum_{1\le n\le N-|k|} \log n\, \log(n+|k|) \log (n(n+|k|)),\\ T_3(k,N) &= \sum_{1\le n\le N-|k|} \log n\, \log(n+|k|),\\ T_4(k,N) &= \sum_{1\le n\le N-|k|} (\log^2 n + \log^2(n+|k|)),\\ T_5(k,N) &= \sum_{1\le n\le N-|k|} \log (n(n+|k|)). \end{align}

given from Equation (3.19), we have

\begin{align*} T_1(k,N) &= (N-|k|) \log^2N\, \log^2(N-|k|) + O(N\, \log^3 N),\\ T_2(k,N) &= (N-|k|)(\log^2N\, \log(N-|k|) + \log N\, \log^2(N-|k|)) +O(N\,\log^2 N),\\ T_3(k,N) &= (N-|k|)\log N\, \log(N-|k|) + O(N\,\log N),\\ T_4(k,N) &= (N-|k|)(\log^2N + \log^2(N-|k|)) +O(N\,\log N),\\ T_5(k,N) &= (N-|k|)(\log N + \log(N-|k|)) +O(N). \end{align*}

Proof. For k > 0, by partial summation, we have

\begin{equation*} T_5(k,N) = (N-k) \log(N-k) + N\,\log N - k\,\log k - 2(N-k) +O(\log N). \end{equation*}

Similarly, we obtain the other Tj’s.

Lemma 3.11. We have, for any $(a,q)=1$ and ɛ > 0,

\begin{equation*} \sum_{n \le X} \tau(n) e_q(a n) = q^{-1} X \left( \log X -2\, \log q + 2 \gamma -1 \right) + O_{\varepsilon} \left( (qX)^{\frac{1}{2} + \varepsilon} + q^{1+\varepsilon} \right), \end{equation*}

where the big-oh is independent of a.

Proof. See, e.g. [Reference Motohashi17, page 179, line -3].

We will apply Perron’s formula in the following form.

Lemma 3.12. Let $f(s) = \sum_{n=1}^\infty a_n n^{-s}$ be a Dirichlet series which converges absolutely for σ > 1. Suppose $a_n = O(n^\varepsilon)$ for any ɛ > 0 and $f(s) = \zeta(s)^\ell F(s)$ for some natural number $\ell$ and some Dirichlet series F(s) which converges absolutely in $\Re(s) \gt 1/2$. Then for X not an integer, we have

\begin{equation*} \sum_{n\le X} a_n = \frac{F(1)}{(\ell -1)!} X P_{\ell-1}(\log X) + O_\varepsilon \left(X^{1-\frac{1}{\ell +2}}\right), \end{equation*}

where $P_{\ell-1}(\log X)$ is the polynomial in $\log X$ of degree $\ell - 1$ with leading coefficient 1 given explicitly by

\begin{equation*} P_{\ell-1}(\log X) = (\ell - 1)! Res_{s=1} \zeta(s)^\ell F(s) \frac{X^{s-1}}{s}. \end{equation*}

Proof. See [Reference Murty18, Problems 4.4.16, 4.4.17].

Lemma 3.13. We have

\begin{equation*} \sum_{n\le X} \tau_3^2(n) = \frac{A_3}{8!} X P_8(\log X) + O\left(X^{10/11}\right), \end{equation*}

where $A_3 = 8! \mathfrak{S}_8$ with $\mathfrak{S}_8$ given in Equation (2.4), and $P_8(\log X)$ is a polynomial of degree 8 in $\log X$ and leading coefficient 1.

Proof. We have

\begin{equation*} \sum_{n=1}^\infty \tau_3^2(n) n^{-s} = \prod_p \left\{1 + \sum_{\nu=1}^\infty \binom{\nu + 2}{2}^2 p^{-\nu s} \right\}, \end{equation*}

where both members of this equation are absolutely convergent if σ > 1. Hence, if σ > 1,

\begin{align*} \left\{\zeta(s) \right\}^{-9} \left\{\sum_{n=1}^\infty \tau_3^2(n) n^{-s} \right\} &= \prod_p \left\{(1-p^{-s})^9 ( 1 + 9 p^{-s} + 36 p^{-2s} + \cdots ) \right\} \\ &= \prod_p \left\{1 + a_2 p^{-2s} + a_3 p^{-3s} + \cdots \right\} = F(s), \end{align*}

say, where

\begin{equation*} a_\nu = \sum_{r=0}^\nu (-1)^r \binom{9}{r} \binom{\nu - r + 2}{2}^2. \end{equation*}

We adopt the convention for the binomial coefficients that $\binom{n}{m} = 0$ if m > n. We have $a_2 = -9, a_3 = 16, a_4 = -9, a_5 = 0, a_6 = 1$ and $a_\nu=0$ for $\nu \ge 7$. The coefficient aν satisfies

\begin{equation*} |a_\nu| \le K \nu^2, \end{equation*}

where K is independent of ν. Hence,

\begin{equation*} \sum_{\nu=2}^\infty |a_\nu| p^{-\nu s} \le K^{\prime} p^{-2s}, \end{equation*}

where Kʹ is independent of p. Hence, if $\sigma \gt 1/2$, then $\sum_p p^{-2s}$ is absolutely convergent, and thus is also

\begin{equation*} F(s) = \prod_p \left\{1 + \sum_{\nu=2}^\infty a_\nu p^{-\nu s} \right\}. \end{equation*}

Hence we obtain that

\begin{equation*} \sum_{n=1}^\infty \tau_3^2(n) n^{-s} = \left\{\zeta(s) \right\}^{9} F(s), \end{equation*}

where F(s) is absolutely convergent for $\sigma \gt 1/2$. It follows at once, by Lemma 3.12, that

\begin{equation*} \sum_{n\le X} \tau_3^2(n) = \frac{A_3}{8!} X P_8(\log X) + O\left(X^{10/11}\right), \end{equation*}

where

\begin{equation*}A_3 = F(1) = \prod_p \left(1-9p^{-2} + 16 p^{-3} - 9 p^{-4} + p^{-6} \right).\end{equation*}

Lemma 3.14. We have

\begin{equation*} \int_1^{N-1} \frac{t \log t}{N-t}\, {\rm d}t = N\left(\log^2 N - \log N - \frac{\pi^2}{6} + 1 \right) + O(\log N), \end{equation*}

and

\begin{equation*} \int_1^{N-1} \frac{t \log^2 t}{N-t} \,{\rm d}t = N\left(\log^3 N - 2\, \log^2N -\left(\frac{\pi^2}{3} - 2\right) \log N + 2\zeta(3) - 2 \right) + O(\log^2 N). \end{equation*}

Proof. Expanding into a geometric series and integrate by parts, we have

\begin{align*} \int_1^{N-1} \frac{t \log t}{N-t} \,{\rm d}t &= \sum_{m=1}^\infty \frac{1}{N^{m}} \int_1^{N-1} t^m\, \log t \,{\rm d}t \\ &= N\, \log(N-1) \sum_{m=1}^\infty \frac{1}{m+1} \left(\frac{N-1}{N} \right)^{m+1} \\ & \qquad - N \sum_{m=1}^\infty \frac{1}{(m+1)^2} \left(\frac{N-1}{N} \right)^{m+1} +O(1) \\ &= N\left(\log^2 N - \log N - \frac{\pi^2}{6} + 1 \right) + O(\log N). \end{align*}

This gives the first integral. The second integral is computed in a similar way.

3.1. An analogue to a result of Lavrik

In this section we estimate the integral in Equation (3.22) by the trigonometric method of I.M. Vinogradov along the line of Lavrik, following Motohashi ($\S$ 3).

Let $a/q$ be a term of the Farey series of order Ω, which is to be determined later; see Equation (3.30) below. Let

\begin{equation*} \frac{a^{\prime}}{q^{\prime}}, \frac{a}{q}, \frac{a^{\prime\prime}}{q^{\prime\prime}}, \end{equation*}

be consecutive terms of the Farey series and let $C(a/q)$ be the interval $\left[\frac{a^{\prime}+a}{q^{\prime}+q}, \frac{a+a^{\prime\prime}}{q+q^{\prime\prime}} \right]$. The interval $C(a/q)$ contains the fraction $a/q$ with length bounded by

(3.24)\begin{equation} \left|C\left(\frac{a}{q}\right) \right| \le \frac{2}{q\Omega}. \end{equation}

Let

\begin{equation*} U(N) = \int_0^1 \left| |D(\alpha,N)|^2 - G_\Delta(\alpha,N) \right|^2 \,{\rm d}\alpha, \end{equation*}

denote the integral in Equation (3.22). We proceed to estimate U(N). We have

(3.25)\begin{align} U(N) &= \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_{C(a/q)} \left||D(\alpha,N)|^2 - G_\Delta(\alpha,N) \right|^2 \,{\rm d}\alpha \\ &\le 2 \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_{C(a/q)} \left||D(\alpha,N)|^2 - \left|F\left(\alpha,\frac{a}{q},N \right) \right|^2 \right|^2 \,{\rm d}\alpha \\ &+ 2 \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_{C(a/q)} \left|G_\Delta(\alpha,N) - \left|F\left(\alpha,\frac{a}{q},N\right) \right|^2 \right|^2 \,\textrm{d}\alpha\\ &= U_1(N) + U_2(N), \end{align}

say. For $U_1(N)$, we have, from Equation (3.17) and the inequality $\left| |A|^2 - |B|^2 \right|^2 \le 4 |A-B|^2 ( |A|^2 + |B|^2 )$, valid for any complex numbers A and B, that

\begin{align*} & \left||D(\alpha,N)|^2 - \left|F\left(\alpha,\frac{a}{q},N \right) \right|^2 \right|^2 \ll (Nq+q^2)^{\frac{6}{5} + 2\varepsilon} \left(1+\left|\alpha-\frac{a}{q} \right|^2 N^2 \right)\\ & \qquad \left(|D(\alpha,N)|^2 + \left|F\left(\alpha,\frac{a}{q},N \right) \right|^2 \right). \end{align*}

Thus, for $\alpha\in C(a/q)$, we have, by Equation (3.24), that the above is bounded by

\begin{align*} \left( (N\Omega)^{\frac{6}{5} + 2\varepsilon} + \Omega^{\frac{12}{5} + 4\varepsilon} + \frac{N^{\frac{16}{5} + 2\varepsilon}}{\Omega^2} + \frac{N^2}{\Omega^{\frac{8}{5} - 4\varepsilon}} \right) \left(|D(\alpha,N)|^2 + \left|F\left(\alpha,\frac{a}{q},N \right) \right|^2 \right), \end{align*}

and we get

(3.26)\begin{align} U_1(N) &\ll \left( (N\Omega)^{\frac{6}{5} + 2\varepsilon} + \Omega^{\frac{12}{5} + 4\varepsilon} + \frac{N^{\frac{16}{5} + 2\varepsilon}}{\Omega^2} + \frac{N^2}{\Omega^{\frac{8}{5} - 4\varepsilon}} \right)\\ & \quad \quad \times \left\{\int_0^1 |D(\alpha,N)|^2 \,{\rm d}\alpha + \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_0^1 \left|F\left(\alpha,\frac{a}{q},N \right) \right|^2 \,{\rm d}\alpha \right\} \\ &\ll \left( (N\Omega)^{\frac{6}{5} + 2\varepsilon} + \Omega^{\frac{12}{5} + 4\varepsilon} + \frac{N^{\frac{16}{5} + 2\varepsilon}}{\Omega^2} + \frac{N^2}{\Omega^{\frac{8}{5} - 4\varepsilon}} \right) N\, \log^8 N. \end{align}

For $U_2(N)$, we have, by Equation (3.15),

(3.27)\begin{align} U_2(N) & \ll \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_{C(a/q)} \left|\sum_{1\le q^{\prime}\le \Delta} \sum_{\substack{a^{\prime}=1\\(a^{\prime},q^{\prime})=1\\ a^{\prime}q\neq aq^{\prime}}}^{q^{\prime}} \left|F\left(\alpha,\frac{a^{\prime}}{q^{\prime}},N \right) \right|^2 \right|^2 \,{\rm d}\alpha \\ &+ \sum_{\Delta \lt q \le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_{C(a/q)} \left|F\left(\alpha, \frac{a}{q}, N\right) \right|^4 \,{\rm d}\alpha \\ &= U_3(N) + U_4(N), \end{align}

say. By Equation (3.14), we have

(3.28)\begin{equation} U_4(N) \ll \frac{(N\, \log^2N)^4}{\Omega} \sum_{\Delta \lt q\le \Omega} \frac{1}{q^4} \ll \frac{N^4\, \log^8 N}{\Omega \Delta^3}. \end{equation}

It remains to estimate $U_3(N)$. By partial summation, we can write $F\left(\alpha, a^{\prime}/q^{\prime}, N \right)$ as

\begin{align*} \frac{1}{q^{\prime}} & (A(a^{\prime},q^{\prime})\log^2N + (B(a^{\prime},q^{\prime})-2A(a^{\prime},q^{\prime}))\log N + 2A(a^{\prime},q^{\prime})-B(a^{\prime},q^{\prime}) \\ &+C(a^{\prime},q^{\prime}) ) \sum_{1\le n\le N} e\left(\left(\alpha-\frac{a^{\prime}}{q^{\prime}} \right)n \right) - \frac{1}{q^{\prime}} \int_1^N \left(\frac{2A\, \log \xi}{\xi} + \frac{B-2A}{\xi} \right)\\ & \qquad \sum_{1\le n\le \xi} e\left(\left(\alpha-\frac{a^{\prime}}{q^{\prime}} \right)n \right) \,{\rm d}\xi. \end{align*}

Thus,

\begin{equation*} \left|F\left(\alpha, \frac{a^{\prime}}{q^{\prime}}, N \right) \right| \ll \frac{q{^\prime}^\varepsilon\, \log^3 N}{q^{\prime} \left|\sin \pi \left(\alpha - \frac{a^{\prime}}{q^{\prime}} \right) \right|}. \end{equation*}

The function $F\left(\alpha, a^{\prime}/q^{\prime}, N \right)$ has period 1 in α, and $|a/q - (a^{\prime}/q^{\prime}\pm 1)| \le 1/2$. Thus, $U_3(N)$ is at most

\begin{equation*} \ll \Delta^2\, \log^{12}N \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\(a,q)=1}}^q \int_{C(a/q)} \sum_{1\le q^{\prime}\le \Delta} \sum_{\substack{a^{\prime}=-q^{\prime}\\(a^{\prime},q^{\prime})=1\\ 0 \lt \left|\frac{a^{\prime}}{q^{\prime}} - \frac{a}{q} \right|\le \frac{1}{2}}}^{2q^{\prime}} \frac{q{^\prime}^\varepsilon}{q{^\prime}^4 \left|\sin \pi \left(\alpha - \frac{a^{\prime}}{q^{\prime}} \right) \right|^4} \,{\rm d}\alpha. \end{equation*}

By Equation (3.16), we have, for $\alpha\in C(a/q)$,

\begin{equation*} \frac{1}{2} \left|\frac{a}{q} - \frac{a^{\prime}}{q^{\prime}} \right| \le \left|\alpha - \frac{a^{\prime}}{q^{\prime}} \right| \le \frac{3}{4}, \end{equation*}

for N sufficiently large. Hence,

\begin{align*} & U_3(N) \ll \Omega^2 \Delta^2\, \log^{12} N \sum_{1\le q\le \Omega} \sum_{\substack{a=1\\ (a,q)=1}}^q \sum_{1\le q^{\prime}\le \Delta} q{^\prime}^\varepsilon \sum_{\substack{a^{\prime}=-q^{\prime}\\ (a^{\prime},q^{\prime})=1\\ a^{\prime}q\neq aq^{\prime}}}^{2q^{\prime}} \frac{1}{|aq^{\prime} - qa^{\prime} |^4}\\ & \qquad \qquad \ll \Omega^{2+\varepsilon} \Delta^2\, \log^{12} N \sum_{u=1}^\infty \frac{t(u)}{u^4}, \end{align*}

where t(u) is the number of integer solutions to $|aq^{\prime}-qa^{\prime}|=u$ in the range of summation. We have

\begin{equation*} t(u) \ll \Delta^2 \Omega, \end{equation*}

which yields

(3.29)\begin{equation} U_3(N) \ll \Omega^{3+\varepsilon} \Delta^4\, \log^{12}N. \end{equation}

From Equations (3.22), (3.25), (3.26), (3.27), (3.28) and (3.29), we get the inequality

\begin{align*} & \sum_{1 \le k\le N-1} (V(k,N) - S_\Delta(k,N))^2 \ll N^\varepsilon \left( N^{11/5} \Omega^{6/5} + \Omega^{12/5} N + \frac{N^{21/5}}{\Omega^2} + \frac{N^3}{\Omega^{8/5}}\right.\\ & \left. \qquad \qquad + \Omega^3 \Delta^4 + \frac{N^4}{\Omega \Delta^3} \right). \end{align*}

We now take, for example,

(3.30)\begin{equation} \Omega = N^{{25/38}} \quad \text{and} \quad \Delta = N^{4/19}. \end{equation}

Then, the requirement Equation (3.16) is satisfied, and we have proved

Lemma 3.15. The inequality

\begin{equation*} \sum_{1 \le k\le N-1} (V(k,N) - S_\Delta(k,N))^2 \ll N^{299/100}, \end{equation*}

holds for sufficiently large N.

4. Proof of theorem 2.2

Let Q(N) denote the sum on the left side of Equation (2.2). We have

(4.1)\begin{align} Q(N) &= \sum_{1\le \ell\le N} \sum_{\substack{1\le n_1,n_2\le N\\ n_1\equiv n_2 ({\rm mod } \ell)}} \tau_3(n_1) \tau_3(n_2)\\ &+ \frac{1}{4} N^2\, \log^4 N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \tilde{A}(\ell,b)^2 \\ &- N^2\, \log^3N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b)^2 - \tilde{A}(\ell,b) \tilde{B}(\ell,b)) \\ & + N^2\, \log^2 N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b)^2 - 2\tilde{A}(\ell,b) \tilde{B} + \tilde{B}(\ell, b)^2) \\ &+ N^2\, \log^2N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b)^2 - \tilde{A}(\ell,b) \tilde{B}(\ell,b) + \tilde{A}(\ell,b) \tilde{C}(\ell,b)) \\ &+ 2 N^2\, \log^2N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b)^2 + \tilde{B}(\ell,b)^2 \\ & \qquad \qquad - 2 \tilde{A}(\ell,b) \tilde{B}(\ell,b) - \tilde{B}(\ell,b) \tilde{C}(\ell,b) + \tilde{A}(\ell,b) \tilde{C}(\ell,b)) \\ &+ N^2 \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b)^2 + \tilde{B}(\ell,b)^2 + \tilde{C}(\ell,b)^2 \\ & \qquad \qquad - 2 \tilde{A}(\ell,b) \tilde{B}(\ell,b) + 2 \tilde{A}(\ell,b) \tilde{C}(\ell,b) - 2 \tilde{B}(\ell,b) \tilde{C}(\ell,b)) \\ &- N\, \log^2 N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \tilde{A}(\ell,b) \sum_{\substack{1\le n\le N\\ n\equiv b (\ell)}} \tau_3(n) \\ &+ 2 N\, \log N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b) - \tilde{B}(\ell,b)) \sum_{\substack{1\le n\le N\\ n\equiv b (\ell)}} \tau_3(n) \\ &+ 2 N \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} (\tilde{A}(\ell,b) - \tilde{B}(\ell,b) + \tilde{C}(\ell,b)) \sum_{\substack{1\le n\le N\\ n\equiv b (\ell)}} \tau_3(n) \\ &= Q_1(N) + \cdots + Q_{10}(N), \end{align}

say. We start with evaluating $Q_1(N)$, whose treatment is the most difficult of the 10. We have

(4.2)\begin{align} Q_1(N) &= N \sum_{1\le n\le N} \tau_3^2(n) + 2 \sum_{1\le \ell \le N-1}\ \sum_{1\le u\le (N-1)/\ell}\ \sum_{1\le n\le N-u\ell}\ \tau_3(n) \tau_3(n+u\ell)\\ &= N \sum_{1\le n\le N} \tau_3^2(n) + 2 \sum_{1\le k \le N-1} V(k,N) \tau(k), \end{align}

where $V(k,N)$ is given by Equation (3.21). Here we have, by Lemma 3.13,

(4.3)\begin{equation} \sum_{n\le N} \tau_3^2(n) = \frac{A_3}{8!} N P_8(\log N) + O\left(N^{10/11}\right), \end{equation}

with A 3 and $P_8(\log N)$ given in that lemma. Now, by Lemma 3.15,

(4.4)\begin{align} \sum_{1\le k\le N-1} V(k,N) \tau(k) &= \sum_{1\le k\le N-1} S_\Delta(k,N) \tau(k)\\ &+ O\left\{\left(\sum_{1\le k\le N-1} \tau^2(k) \right)^{1/2}\right.\\ & \left. \qquad \left(\sum_{1\le k\le N-1} (V(k,N) - S_\Delta(k,N))^2 \right)^{1/2} \right\} \\ &= \sum_{1\le k\le N-1} S_\Delta(k,N) \tau(k) + O \left(N^{599/300} \right)\\ & \qquad \quad = Q_{11}(N) + O \left(N^{599/300} \right), \end{align}

say. We now calculate $Q_{11}(N)$. By Equation (3.20), (3.19) and (3.23), we have

\begin{equation*} Q_{11}(N) = \sum_{j=1}^6 \sum_{1\le q\le \Delta} q^{-2} w_j(q) \sum_{1\le k\le N-1} \tau(k) c_q(k) T_j(k,N). \end{equation*}

If q = 1, then

\begin{equation*} c_1(k) = 1,\ A(1) = 1,\ B(1) = 3\gamma,\ C(1) = 3\gamma^2, \end{equation*}

and, hence,

\begin{align*} w_1(1) &= \frac{1}{4},\\ w_2(1) &= \frac{1}{2}(3\gamma-1),\\ w_3(1) &= (1-3\gamma)^2,\\ w_4(1) &= -\frac{1}{2}(1-3\gamma+3\gamma^2),\\ w_5(1) &= (3\gamma-1) (1-3\gamma-3\gamma^2),\\ w_6(1) &= (1-3\gamma+3\gamma^2)^2. \end{align*}

Thus,

(4.5)\begin{align} Q_{11}(N) &=\sum_{j=1}^6 w_j(1) \sum_{1\le k\le N-1} \tau(k) T_j(k,N)\\ &+ \sum_{j=1}^6 \sum_{1 \lt q\le \Delta} q^{-2} w_j(q) \sum_{1\le k\le N-1} \tau(k) c_q(k) T_j(k,N). \end{align}

To calculate the k-summations, we need to compute the following sums:

(4.6)\begin{align} H_1(N) &= \sum_{1\le k\le N-1} \tau(k) \log(N-k),\\ H_2(N) &= \sum_{1\le k\le N-1} \tau(k) \log^2(N-k),\\ H_3(X) &= \sum_{1\le k\le X} \tau(k) c_q(k),\\ H_4(N) &= \sum_{1\le k\le N-1} \tau(k) c_q(k) \log(N-k),\\ H_5(N) &= \sum_{1\le k\le N-1} \tau(k) c_q(k) \log^2(N-k),\\ H_6(N) &= \sum_{1\le k\le N-1} k \tau(k) \log(N-k),\\ H_7(N) &= \sum_{1\le k\le N-1} k \tau(k) \log^2(N-k),\\ H_8(X) &= \sum_{1\le k\le X} k \tau(k) c_q(k),\\ H_9(N) &= \sum_{1\le k\le N-1} k \tau(k) c_q(k) \log(N-k),\\ H_{10}(N) &= \sum_{1\le k\le N-1} k \tau(k) c_q(k) \log^2(N-k). \end{align}

Assume q > 1. We now compute the first sum in Equation (4.6). By partial summation, we have

\begin{align*} H_1(N) = \int_1^{N-1} \frac{t}{N-t}\, \log t \,{\rm d}t + (2\gamma-1) \int_1^{N-1} \frac{t}{N-t}\,{\rm d}t + O(N^{1/2}\, \log N). \end{align*}

By the first part of Lemma 3.14, this is equal to

\begin{equation*} N\left(\log^2 N - \log N - \frac{\pi^2}{6} + 1 \right) + (2\gamma-1)(N\,\log N - N) +O(N^{1/2}\, \log N). \end{equation*}

Thus,

\begin{equation*} H_1(N) = N\,\log^2 N + (2\gamma-2) N\,\log N +\left(\frac{\pi^2}{6} - 2\gamma\right) N + O(N^{1/2}\, \log N). \end{equation*}

Similar, by both parts of Lemma 3.14, we get

\begin{align*} H_2(N) &= \int_1^{N-1} \frac{1}{N-t} \left(t\,\log^2 t + (2\gamma - 2) t\,\log t + \left(\frac{\pi^2}{6} - 2\gamma \right)t +O(t^{1/2}\,\log t) \right) \,{\rm d}t \\ &= N\,\log^3N +(2\gamma-4) N\,\log^2N +\left(4-4\gamma-\frac{\pi^2}{6} \right) N\, \log N \\ &+\left(2\zeta(3) - 2- (2\gamma-2)\left(\frac{\pi^2}{6}-1 \right) - \frac{\pi^2}{6} + 2\gamma \right) N + O\left(N^{1/2}\, \log^2 N \right). \end{align*}

We now estimate $H_3(X)$. We have, by definition of the Ramanujan sums,

\begin{equation*} H_3(X) = \sum_{\substack{1\le a\le q\\ (a,q)=1}} \sum_{1 \le k \le X} \tau(k) e_q(ak). \end{equation*}

By Lemma 3.11, the inner sum is $q^{-1} X \left(\log X -2 \,\log q + 2 \gamma -1 \right) + O_{\varepsilon} \left( (qX)^{\frac{1}{2} + \varepsilon} + q^{1+\varepsilon} \right)$. Thus,

\begin{equation*} H_3(X) = \frac{\varphi(q)}{q} X \left( \log X -2\, \log q + 2 \gamma -1 \right) + O \left( (q^3X)^{\frac{1}{2} + \varepsilon} + q^{2+\varepsilon} \right). \end{equation*}

The error term here is negligible. Using the above we get, by partial summation,

\begin{equation*} H_4(N) = N P_2(\log N) + O \left( (q^3 N)^{\frac{1}{2} + \varepsilon} + q^{2+\varepsilon} \right) \end{equation*}

and

\begin{equation*} H_5(N) = N P_3(\log N) + O \left( (q^3 N)^{\frac{1}{2} + \varepsilon} + q^{2+\varepsilon} \right), \end{equation*}

for some polynomials $P_2(\log N)$ and $P_3(\log N)$ of degrees two and three in $\log N$, respectively. Similarly, by partial summation we can easily obtain:

Lemma 4.16.

\begin{align*} H_6(N) &= \frac{1}{2} (N-1)^2 \log^2 (N-1) +\lambda_1 (N-1)^2 \log (N-1) +\lambda_2 (N-1)^2\\ & \qquad + O(N^{3/2} \log N),\\ H_7(N) &= \frac{1}{2} (N-1)^2 \log^3 (N-1) +\lambda_3 (N-1)^2\log^2 (N-1) +\lambda_4 (N-1)^2 \log (N-1) \\ &+ \lambda_5 (N-1)^2 + O(N^{3/2}\, \log^3 N),\\ H_8(N) &= N^2 Q_1(\log N) + O \left( (q^3 N^2)^{\frac{1}{2} + \varepsilon} + N q^{2+\varepsilon} \right), \\ H_9(N) &= N^2 Q_2(\log N) + O \left( (q^3 N^2)^{\frac{1}{2} + \varepsilon} + N q^{2+\varepsilon} \right), \\ H_{10}(N) &= N^2 Q_3(\log N) + O \left( (q^3 N^2)^{\frac{1}{2} + \varepsilon} + N q^{2+\varepsilon} \right), \end{align*}

with numerical constants λj’s and some explicit polynomials $Q_1, Q_2$ and Q 3 of degrees one, two and three, respectively.

Here, we have

\begin{align*} \lambda_1 &=\gamma - 1/2,\\ \lambda_2 &= \frac{\pi^2}{12} - \frac{1}{2} \gamma - \frac{3}{4},\\ \lambda_3 &= \gamma-5/4, \end{align*}

etc.

Collecting the wj’s, Tj’s and the Hj’s above, we deduce the following:

Lemma 4.17. There is an explicit polynomial $P_5(\log N)$ of degree 5 in $\log N$ such that

\begin{equation*} Q_{11}(N) = N^2 P_5(\log X) + O \left( N^{\frac{61}{38} + \varepsilon} \right). \end{equation*}

Consequently, from Equations (4.2), (4.3), (4.4) and (4.5), we obtain that

\begin{equation*} Q_1(N) = N^2 P_8(\log N) + O(N^{599/300}). \end{equation*}

With more effort, though tedious in details, one can calculate similar asymptotic expansions for $Q_2(N)$ to $Q_{10}(N)$ in Equation (4.1). However, for our purpose, it suffices to bound the sums Q 2-Q 10 and show that they are smaller than the leading term $N^2\, \log^8N$. Indeed, by Equation (3.6) and orthogonality of the Ramanujan sum $c_q(b)$, we have that

(4.7)\begin{equation} Q_2(N), \ldots, Q_{10}(N) \ll N^2 \,\log^6 N. \end{equation}

We demonstrate one such bound for $Q_2(N)$ – the other bounds can be obtained similarly. Suppose first that q = 1. We have, in this case, $\tilde{A}(\ell,b) = \ell^{-1}$ for any b, and hence

(4.8)\begin{equation} \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \tilde{A}(\ell,b)^2 = \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \ell^{-2} \ll \log N. \end{equation}

Assume next $q_1,q_2 \gt 1$. Suppose $(q_1,q_2)=1$. Then

\begin{equation*} \sum_{1\le b\le \ell} c_{q_1}(b) c_{q_2}(b) = \sum_{1\le b\le \ell} c_{q_1 q_2}(b) \ll q_1q_2. \end{equation*}

From this and Equation (3.6), we get

\begin{align*} \sum_{1\le b\le \ell} \tilde{A}^2(\ell,b) &= \ell^{-2} \sum_{q_1\mid \ell} \sum_{q_2\mid \ell} q_1^{-1} q_2^{-1} \sum_{1\le b\le \ell} c_{q_1}(b) c_{q_2}(b) \log^2 q_1\, \log^2 q_2 \\ &= \ell^{-2} \sum_{q_1\mid \ell} \log^2 q_1 \sum_{q_2\mid \ell} \log^2 q_2 \ll \ell^{-2}\, \log^4 \ell, \end{align*}

and, hence,

(4.9)\begin{equation} \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \tilde{A}(\ell,b)^2 \ll \sum_{1\le \ell \le N} \ell^{-2} \log^4 \ell \ll \log N. \end{equation}

It remains to consider the case where $(q_1,q_2) \gt 1$. We have

\begin{align*} \sum_{1 \le b \le \ell} c_q(b)^2 = \sum_{d_1 \mid q_1} \sum_{d_2 \mid q_2} d_1 d_2 \mu(q_1/d_1) \mu(q_2/d_2) \sum_{\substack{1 \le b\le \ell\\ d_1 \mid b\\ d_2 \mid b}} 1 \ll \ell (q_1 q_2)^\varepsilon + (q_1 q_2 ^{1+\varepsilon}). \end{align*}

Thus,

\begin{equation*} \sum_{1\le \ell \le N} \sum_{1\le b\le \ell} \tilde{A}^2(\ell,b) \ll \sum_{1\le \ell \le N} \ell^{-1} \tau(\ell) \ll \log^2 N. \end{equation*}

This, together with Equations (4.8) and (4.9), give that $Q_2(N)$ is at most $O(N^2\, \log^6 N)$, verifying Equation (4.7) for $Q_2(N)$.

As mentioned before, the estimates in Equation (4.7) are crude simply for the purpose of showing they do not contribute to the leading term. It is possible, by procedures analogous to the computations for $Q_1(N)$ and $\sum_k W_q(k,N)$ demonstrated in the proof, to compute explicitly a polynomial $P_6(\log N)$ of degree 6 in $\log N$ such that:

\begin{equation*} Q_2(N) + \cdots + Q_{10}(N) = N^2 P_6(\log N) + O(N^{599/300}). \end{equation*}

We conclude, therefore, that Q(N), which is the left-hand side of Equation (2.2), is given by:

\begin{equation*} N^2 P_8(\log N) + O(N^{2-1/300}), \end{equation*}

which gives the right-hand side of Equation (2.2). This completes the proof of the theorem.

Acknowledgements

The author thanks Soundararajan for pointing out the reference [Reference Harper and Soundararajan11] at an AIM FRG Seminar, which then motivated him to work on this problem, and B. Rodgers and J. Stopple for their interests in this project. This work was done while he was visiting the American Institute of Mathematics, virtually, which he is very grateful for their hospitality. He would also like to extend his gratitude to the referee for indicating a flaw in a lemma in a previous version and making useful suggestions.

References

Baier, S., Browning, T. D., Marasingha, G. and Zhao, L., Averages of shifted convolutions of $d_3(n)$, Proc. Edinb. Math. Soc. 55(3) (2012), 551576. doi:10.1017/S001309151100037XCrossRefGoogle Scholar
Barban, M. B., Analogues of the divisor problem of Titchmarch, Vestnik Leningrad Univ. Ser. Ma. Meh. Astronom. 18(4) (1963), 513 (in Russian).Google Scholar
Barban, M. B., On the average error in the generalized prime number theorem, Dokl. Akad. Nauk USSR 5 (1) (1964), 57 (in Russian).Google Scholar
Bombieri, E., On the large sieve, Mathematika 12(2) (1965), 201225. doi:10.1112/S0025579300005313CrossRefGoogle Scholar
Conrey, J. B. and Gonek, S. M., High moments of the Riemann zeta-function, Duke Math. J. 107(3) 577604. doi:10.1215/S0012-7094-01-10737-0Google Scholar
Conrey, J. B. and Keating, J. P., Moments of zeta and correlations of divisor-sums: I, Phil. Trans. R. Soc. A 373(2040) (2015), . doi:10.1098/rsta.2014.0313CrossRefGoogle Scholar
Davenport, H. and Halberstam, H., Primes in arithmetic progressions, Michigan Math. J. 13(4) (1966), 485489. doi:10.1307/mmj/1028999608CrossRefGoogle Scholar
Estermann, T., On the representations of a number as the sum of two products, Proc. Lond. Math. Soc. (2) 31(1) (1930), 123133. doi:10.1112/plms/s2-31.1.123CrossRefGoogle Scholar
Gallagher, P. X., The large sieve, Mathematika 14(1) (1967), 1420. doi:10.1112/S0025579300007968CrossRefGoogle Scholar
Goldston, D. and Vaughan, R. C., London Math. Soc. Lecture Note Ser. (1996), 117142.Google Scholar
Harper, A. J. and Soundararajan, K., Lower bounds for the variance of sequences in arithmetic progressions: primes and divisor functions, Q. J. Math. 68(1 (March)) (2017), 97123. doi:10.1093/qmath/haw005Google Scholar
Hooley, C., On the Barban–Davenport–Halberstam theorem. I, J. Reine Angew. Math. 1975(274/275) (1975), 206223. doi:10.1515/crll.1975.274-275.206Google Scholar
Ivić, A., On the ternary additive divisor problem and the sixth moment of the zeta-function, in sieve methods, exponential sums, and their applications in number theory, (Ed. Greaves, G. R. H., Harman, G. Huxley, M. N.), (Cambridge Univ. Press, Cambridge, 1997).Google Scholar
Lavrik, A. F., Binary problems of additive number theory connected with the method of trigonometric sums of I. M. Vinogradov, Vestnik Leningrad. Univ. 16(13) (1961), 1127.Google Scholar
Montgomery, H. L., Primes in arithmetic progressions, Michigan Math. J. 17(1) (1970), 3339. doi:10.1307/mmj/1029000373CrossRefGoogle Scholar
Motohashi, Y., An asymptotic formula in the theory of numbers, Acta Arith. 16(3) (1970), 255264. doi:10.4064/aa-16-3-255-264CrossRefGoogle Scholar
Motohashi, Y., On the distribution of the divisor function in arithmetic progressions, Acta Arith. 22(2) (1973), 175199 doi:10.4064/aa-22-2-175-199.CrossRefGoogle Scholar
Murty, M. R., Problems in Analytic Number Theory, Graduate Texts in Mathematics (Book 206), 2nd edn. (Springer, 2007) 10.1007/978-1-4757-3441-6Google Scholar
Nguyen, D. T., Generalized divisor functions in arithmetic progressions: I, J. Number Theory 227(1) (2021), 3093. doi:10.1016/j.jnt.2021.03.021CrossRefGoogle Scholar
Nguyen, D. T., Variance of the k-fold divisor function in arithmetic progressions for individual modulus. Preprint, arXiv:2205.02354 [math.NT], (2022).Google Scholar
Parry, T., A Montgomery–Hooley theorem for the k-fold divisor function. Preprint, arXiv:2302.11045v1 [math.NT], (2023).Google Scholar
Rodgers, B. and Soundararajan, K., The variance of divisor sums in arithmetic progressions, Forum Math. 30(2) (2018), 269293. doi:10.1515/forum-2016-0227CrossRefGoogle Scholar
Smith, R. A., The generalized divisor problem over arithmetic progressions, Math. Ann. 260(1) (1982), 255268. doi:10.1155/IMRN.2005.1CrossRefGoogle Scholar
Vinogradov, A.I., The density Hypothesis for Dirichlet L-series, Izv. Akad. Nauk SSSR Ser. Mater. 29(1) (1965), 903934.Google Scholar
Zhang, Y. T., Bounded gaps between primes, Ann. Math. 179(3) (2014), 11211174. doi:10.4007/annals.2014.179.3.7CrossRefGoogle Scholar