Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

1 Introduction

Let a(n) be an arithmetical function generated by a Dirichlet series satisfying a functional equation involving the gamma function Γ(s). For example, let r k (n) denote the number of representations of the positive integer n as a sum of k squares. Then its generating function

$$\displaystyle{ \zeta _{k}(s):=\sum _{ n=1}^{\infty }r_{ k}(n)n^{-s},\quad \sigma = \text{Re}\ s > \tfrac{1} {2}k, }$$
(1)

satisfies the functional equation

$$\displaystyle{\pi ^{-s}\varGamma (s)\zeta _{ k}(s) =\pi ^{s-k/2}\varGamma (\tfrac{1} {2}k - s)\zeta _{k}(\tfrac{1} {2}k - s).}$$

Second, let d(n) denote the number of positive divisors of the positive integer n. If ζ(s) denotes the Riemann zeta function, it is easily seen that

$$\displaystyle{\zeta ^{2}(s) =\sum _{ n=1}^{\infty }d(n)n^{-s},\quad \sigma > 1,}$$

which satisfies the functional equation

$$\displaystyle{\pi ^{-s}\varGamma ^{2}(\tfrac{1} {2}s)\zeta ^{2}(s) =\pi ^{-1+s}\varGamma ^{2}(\tfrac{1} {2} -\tfrac{1} {2}s)\zeta ^{2}(1 - s).}$$

Third, let τ(n) denote the Ramanujan tau-function. Then Ramanujan’s Dirichlet series

$$\displaystyle{f(s):=\sum _{ n=1}^{\infty }\tau (n)n^{-s},\quad \sigma > \tfrac{13} {2},}$$

satisfies the functional equation

$$\displaystyle{(2\pi )^{-s}\varGamma (s)f(s) = (2\pi )^{-(12-s)}\varGamma (12 - s)f(12 - s).}$$

In each case, the functional equation can be used to analytically continue the Dirichlet series to the entire complex s-plane.

For an arithmetical function a(n), we often desire an asymptotic formula for \(\sum _{n\leq x}a(n)\), or, if we divide by x, we ask for the average order of a(n). If a(n) is generated by a Dirichlet series satisfying a functional equation involving Γ(s), then \(\sum _{n\leq x}a(n)\) often satisfies an identity containing an infinite series of Bessel functions [10].

For example,

$$\displaystyle\begin{array}{rcl} \sum _{0\leq n\leq x}^{{\prime}}r_{ 2}(n)& =& \pi x +\sum _{ n=1}^{\infty }r_{ 2}(n)\left (\dfrac{x} {n}\right )^{1/2}J_{ 1}(2\pi \sqrt{nx}) \\ & =:& \pi x + P(x), {}\end{array}$$
(2)

where P(x) is the “error term,” and where J ν (x) is the ordinary Bessel function of order ν defined by

$$\displaystyle{ J_{\nu }(z):=\sum _{ n=0}^{\infty } \dfrac{(-1)^{n}} {n!\varGamma (\nu +n + 1)}\left (\dfrac{z} {2}\right )^{\nu +2n},\qquad 0 < \vert z\vert < \infty,\qquad \nu \in \mathbb{C}. }$$
(3)

The prime \({\prime}\) on the summation sign on the left side of (2) indicates that if x is an integer, then we count only \(\tfrac{1} {2}r_{2}(x)\). One of the most famous unsolved problems in analytic number theory is the circle problem: find the precise order of magnitude of P(x) as \(x \rightarrow \infty \). It is conjectured that, for every ε > 0, \(P(x) = O(x^{1/4+\epsilon })\) as x tends to \(\infty \). A history and survey of the circle problem can be found in [7].

For a second example, we return to d(n). First define the Bessel function Y ν (z) of the second kind of order ν by [21, p. 64, Eq. (1)]

$$\displaystyle{ Y _{\nu }(z):= \dfrac{J_{\nu }(z)\cos (\nu \pi ) - J_{-\nu }(z)} {\sin (\nu \pi )}, }$$
(4)

and the modified Bessel function K ν (z) of order ν by [21, p. 78, Eq. (6)]

$$\displaystyle{ K_{\nu }(z):= \dfrac{\pi } {2}\,\dfrac{e^{\pi i\nu /2}J_{-\nu }(iz) - e^{-\pi i\nu /2}J_{\nu }(iz)} {\sin (\nu \pi )}. }$$
(5)

If ν is an integer n, then it is understood that we define the latter two functions by taking the limits as ν → n in (4) and (5). Let

$$\displaystyle{ I_{\nu }(z):= -Y _{\nu }(z) -\dfrac{2} {\pi } K_{\nu }(z). }$$
(6)

Then a famous identity of G.F. Voronoï [20] asserts that

$$\displaystyle\begin{array}{rcl} \sum _{n\leq x}^{{\prime}}d(n)& =& x\left (\log x + 2\gamma - 1\right ) + \frac{1} {4} +\sum _{ n=1}^{\infty }d(n)\left (\dfrac{x} {n}\right )^{1/2}I_{ 1}(4\pi \sqrt{nx}) \\ & =:& x\left (\log x + 2\gamma - 1\right ) + \frac{1} {4} +\varDelta (x), {}\end{array}$$
(7)

where γ denotes Euler’s constant and Δ(x) is the “error term.” The Dirichlet divisor problem asks for the exact order of magnitude of Δ(x) as \(x \rightarrow \infty \). Voronoï employed (7) to prove that \(\varDelta (x) = O(x^{1/3}\log x)\) as \(x \rightarrow \infty.\) It is conjectured that \(\varDelta (x) = O(x^{1/4+\epsilon })\), for each ε > 0, as \(x \rightarrow \infty \), and a survey of this difficult classical problem can also be found in [7].

In many cases an identity may not exist for \(\sum _{n\leq x}a(n)\), but it may exist for \(\sum _{n\leq x}a(n)(x - n)^{\rho }\) for sufficiently large ρ. Moreover, the weighted identity generally converges absolutely and uniformly on compact subintervals of \((0,\infty )\) making it more convenient to use than an identity for \(\sum _{n\leq x}a(n)\), which is discontinuous at positive integers n when a(n) ≠ 0. Then one can apply a method of finite differences, originally due to E. Landau, to the sum \(\sum _{n\leq x}a(n)(x - n)^{\rho }\) to gain information about \(\sum _{n\leq x}a(n)\) [11, Theorem 4.1, pp. 106–111]. The sums \(\sum _{n\leq x}a(n)(x - n)^{\rho }\) are sometimes called Riesz means. Note that for “small” n, the contribution of (xn)ρ is “large,” while for large n, the contribution of (xn)ρ is “small.” Very roughly, arithmetic functions are “small” for “small” n and “large” for “large” n, and so (xn)ρ acts as a “smoothing factor.” In fact, W. Sierpinski [18] used an identity for \(\sum _{n\leq x}r_{2}(n)(x - n)\) to show that \(P(x) = O(x^{1/3})\), as x tends to infinity.

We emphasize that the logarithmic sums \(\sum _{n\leq x}a(n)\log ^{\rho }(x/n)\) can also be used in the study of the average order of certain arithmetic functions, since \(\log ^{\rho }(x/n)\) has a “smoothing” effect similar to that of (xn)ρ, for in each case, when n is “small,” the contributions of these factors are “large,” while when n is “large”, the contributions of these factors are “small.” Generally, for “small” ρ, the simplicities of the identities for \(\sum _{n\leq x}a(n)(x - n)^{\rho }\) and \(\sum _{n\leq x}a(n)\log ^{\rho }(x/n)\) are comparable, but for “large” ρ, the identities for the former sum are usually more elegant than those for the latter sum. It is likely for this reason that Riesz means have been employed instead of logarithmic means in the study of the average order of arithmetic functions.

The goal of this paper is to provide a survey of identities for \(\sum _{n\leq x}a(n)\log (x/n)\), which, because of their intrinsic beauty, deserve to be better known than they are. We are confining our attention only to the case ρ = 1, because with increasing ρ, the logarithmic mean identities diminish in elegance; see, for example, [3].

2 History and Examples

To the best of our knowledge, the first logarithmic mean identity is due to A. Oppenheim [14] in 1927. Let d(n) denote the number of divisors of n. Then [14, p. 342], for x > 0,

$$\displaystyle\begin{array}{rcl} \sum _{n\leq x}d(n)\log \dfrac{x} {n}& =& x\log x - x + (2\gamma - 1)x + \dfrac{1} {4}\log x + \dfrac{1} {2}\log (2\pi ) \\ & & -\dfrac{1} {2\pi }\sum _{n=1}^{\infty }\dfrac{d(n)} {n} I_{0}(4\pi \sqrt{nx}), {}\end{array}$$
(8)

where γ denotes Euler’s constant, I 0 is defined by (6), and the series on the right-hand side of (8) converges absolutely and uniformly on compact subsets of \((0,\infty )\).

Oppenheim’s proof is interesting. Let \(\sigma _{k}(n) =\sum _{d\vert n}d^{k}\). He derives a general identity for \(\sum _{n\leq x}\sigma _{k}(n)(x - n)^{\rho }\) [14, p. 340], which we relate only for \(\vert k\vert < \tfrac{1} {2}\) and ρ = 0. Let

$$\displaystyle{F_{\nu }(z):=\cos (\tfrac{1} {2}\nu \pi )J_{\nu }(z) +\sin (\tfrac{1} {2}\nu \pi )I_{\nu }(z),}$$

where J ν (z) and I ν (z) are defined in (3) and (6), respectively. Then

$$\displaystyle{ \sum _{n\leq x}^{{\prime}}\sigma _{ k}(n) =\varPhi _{k}(x) +\sum _{ n=1}^{\infty }\sigma _{ k}(n)\left (\dfrac{x} {n}\right )^{(k+1)/2}F_{ k+1}(4\pi \sqrt{nx}), }$$
(9)

where Φ k (x) is the sum of the residues of

$$\displaystyle{\dfrac{\zeta (z)\zeta (z - k)} {z} x^{z}.}$$

Using (9), Oppenheim forms an identity for

$$\displaystyle{ L(k):= \dfrac{1} {k}\left \{x^{k}\sum _{ n\leq x}\sigma _{-k}(n) -\sum _{n\leq x}\sigma _{k}(n)\right \}. }$$
(10)

He then takes the limit of his identity for L(k) as k → 0. Oppenheim did not provide any details, and we will not as well, except that we will evaluate, by (10) and L’Hospital’s rule,

$$\displaystyle\begin{array}{rcl} \lim _{k\rightarrow 0}L(k)& =& \lim _{k\rightarrow 0}\left \{x^{k}\log x\sum _{ n\leq x}\sigma _{-k}(n) - x^{k}\sum _{ n\leq x}\sum _{d\vert n}d^{-k}\log d -\sum _{ n\leq x}\sum _{d\vert n}d^{k}\log d\right \} {}\\ & =& \log x\sum _{n\leq x}d(n) - 2\sum _{n\leq x}\sum _{d\vert n}\log d {}\\ & =& \log x\sum _{n\leq x}d(n) -\sum _{n\leq x}\sum _{d\vert n}\log n {}\\ & =& \sum _{n\leq x}d(n)\log \dfrac{x} {n}, {}\\ \end{array}$$

because

$$\displaystyle{\sum _{d\vert n}\log d =\sum _{d\vert n}\log \dfrac{n} {d} =\log n\,d(n) -\sum _{d\vert n}\log d.}$$

The only other proof of (8) of which we are aware is due to the first author [3, p. 371], who deduced (8) from a general identity, established by him for \(\sum _{n\leq x}a(n)\log ^{\rho }(x/n)\) by a method completely different from that of Oppenheim.

Oppenheim [14, p. 312] further remarks, “Similarly we can obtain identities for …and

$$\displaystyle{ \sum _{n\leq x}r_{2}(n)\log \dfrac{x} {n}.\text{\textquotedblright } }$$

However, Oppenheim provides no details. In 1954, C. Müller [13] proved that

$$\displaystyle{ \sum _{n\leq x}r_{2}(n)\log \dfrac{x} {n} =\pi x -\log x -\dfrac{1} {4}\log \dfrac{\varGamma ^{4}(1/4)} {4\pi } + O(x^{-1/4}), }$$
(11)

as \(x \rightarrow \infty \). He did not provide an exact formula for the error term on the right side of (11). L. Carlitz [9] gave a simpler proof of (11), but his method did not yield a value for the constant term in closed form on the right-hand side of (11). The first author [3, p. 372] established an identity for the first time, showing that

$$\displaystyle{ \sum _{n\leq x}r_{2}(n)\log \dfrac{x} {n} =\pi x -\log x +\zeta _{ 2}^{{\prime}}(0) -\dfrac{1} {\pi } \sum _{n=1}^{\infty }\dfrac{r_{2}(n)} {n} J_{0}(2\pi \sqrt{nx}), }$$
(12)

where \(\zeta _{2}^{{\prime}}(s)\) is defined in (1). The error term in (11) follows readily from the well-known asymptotic formula [21, p. 199]

$$\displaystyle{ J_{\nu }(x) = \left (\dfrac{2} {\pi x}\right )^{1/2}\cos \left (x -\tfrac{1} {2}\nu \pi -\tfrac{1} {4}\pi \right ) + O\left ( \dfrac{1} {x^{3/2}}\right ), }$$
(13)

as \(x \rightarrow \infty \). R. Ayoub and S. Chowla [2], [12, pp. 1189–1191], unaware of [3], established  (11), including showing that

$$\displaystyle{\zeta _{2}^{{\prime}}(0) = -\dfrac{1} {4}\log \dfrac{\varGamma ^{4}(1/4)} {4\pi }.}$$

D. Redmond [16] generalized the work of Ayoub and Chowla by replacing r 2(n) by

$$\displaystyle{ d_{\chi _{1},\chi _{2}}(n) =\sum _{d\vert n}\chi _{1}(d)\chi _{2}(n/d), }$$
(14)

where χ 1 and χ 2 are characters modulo q 1 and q 2, respectively. Thus, when \(\chi _{1}(n) \equiv 1\) and χ 2(n) is the primitive, non-principal character modulo 4, then \(d_{\chi _{1},\chi _{2}}(n) = \tfrac{1} {4}r_{2}(n)\). If \(\chi _{1}(n) =\chi _{2}(n) \equiv 1,\) then \(d_{\chi _{1},\chi _{2}}(n) = d(n)\). Redmond did not prove (8) and (12), but instead established results in which the infinite series of Bessel functions are replaced by error terms. In these two examples, Redmond claimed error terms improving that of Müller and of Ayoub and Chowla in (11), and also that obtained by approximating the Bessel functions in (8) by (13). However, in [17], Redmond acknowledged that his claimed error terms are incorrect and that his methods only yield error terms that are obtained by using (13).

C. Calderón and M.J. Zárate [8] generalized Redmond’s work by proving an asymptotic formula for \(\sum _{n\leq x}a(n)\log ^{k}(x/n)\), where a(n) is an arithmetical function (too complicated to state here) considerably generalizing (14).

U.M.A. Vorhauer [19, p. 60, Theorem 2], apparently unfamiliar with the earlier work of Müller, Carlitz, Ayoub and Chowla, Redmond, and Calderón and Zárate, also established (11). Her result was actually a special case of a general theorem in which she established an “identity” for \(\sum _{n\leq x}a(n)\log ^{k}(x/n)\), where k ≥ 0 and a(n) is generated by a Dirichlet series satisfying a functional equation involving a very general product of gamma factors. Her theorem [19, p. 59, Theorem 1] is more general than the one proved in [3], where the arithmetical functions are generated by Dirichlet series satisfying functional equations involving Γ m(s), where m is a positive integer. However, Vorhauer’s general “identity” contains an “error term,” for which estimates are given, while the identity in [3] is exact and written in terms of Bessel functions. The primary purpose of Vorhauer’s paper is to provide precise estimates for the “error terms.”

Let us return to Ramanujan’s tau-function, one of the three examples discussed in the Introduction. From [3, p. 372], we record the identity

$$\displaystyle{ \sum _{n\leq x}\tau (n)\log \dfrac{x} {n} = \dfrac{2} {(4\pi )^{12}}\sum _{n=1}^{\infty }\dfrac{\tau (n)} {n^{12}}\int _{0}^{4\pi \sqrt{nx}}u^{11}J_{ 12}(u)du. }$$
(15)

The identity (15) illustrates a common roadblock in establishing elegant logarithmic mean identities—the identities often involve integrals that are not readily evaluated in closed form, as is the case with the integrals on the right side of (15).

The present authors and their colleague, A. Zaharescu, have devoted considerable efforts in recent years to establishing two intriguing identities found in Ramanujan’s lost notebook [15] that are connected, respectively, with the classical, unsolved circle and divisor problems. For example, see their paper [6], their survey paper [7], and an account of much of their work in the book [1] by Andrews and Berndt. We record only one of the two identities. First define

$$\displaystyle{ F(x) = \left \{\begin{array}{@{}l@{\quad }l@{}} [x],\qquad \quad &\mbox{ if $x$ is not an integer}, \\ x -\tfrac{1} {2},\qquad \quad &\mbox{ if $x$ is an integer}. \end{array} \right. }$$
(16)

We offer now the first entry.

Entry 1 (p. 335).

Let F(x) be defined by (16).If \(0 <\theta < 1\) and x > 0, then

$$\displaystyle\begin{array}{rcl} & & \sum _{n=1}^{\infty }F\left (\frac{x} {n}\right )\sin (2\pi n\theta ) =\pi x\left (\dfrac{1} {2}-\theta \right ) -\dfrac{1} {4}\cot (\pi \theta ) {}\\ & & \phantom{\sum _{n=1}^{\infty }} + \frac{1} {2}\sqrt{x}\sum _{m=1}^{\infty }\sum _{ n=0}^{\infty }\left \{\dfrac{J_{1}\left (4\pi \sqrt{m(n+\theta )x}\right )} {\sqrt{m(n+\theta )}} -\dfrac{J_{1}\left (4\pi \sqrt{m(n + 1-\theta )x}\right )} {\sqrt{m(n + 1-\theta )}} \right \}. {}\\ \end{array}$$

It was natural for us to ask if there exist logarithmic mean identities corresponding to Ramanujan’s two entries on page 335 of his lost notebook. Indeed, we found such analogues. However, to establish these logarithmic analogues, we first need to establish analogues of (8) for weighted divisor functions, which we now define.

For a character χ, define the weighted divisor sum

$$\displaystyle{ d_{\chi }(n):=\sum _{d\vert n}\chi (d). }$$

If χ is a character modulo q, the Gauss sum τ(χ) is defined by

$$\displaystyle{\tau (\chi ):=\sum _{ h=1}^{q-1}\chi (h)e^{2\pi ih/q}.}$$

Lastly, for any character χ modulo q and \(\sigma > 1\), recall that the Dirichlet L-series is defined by

$$\displaystyle{L(s,\chi ):=\sum _{ n=1}^{\infty }\chi (n)n^{-s}.}$$

It is well-known that L(s, χ) can be analytically continued into the entire complex s-plane.

We are now ready to state two new logarithmic mean identities [5].

Theorem 2.

If χ denotes an odd primitive character modulo q, then

$$\displaystyle\begin{array}{rcl} \sum _{n\leq x}d_{\chi }(n)\log \dfrac{x} {n}& & = xL(1,\chi ) + \dfrac{i\tau (\chi )} {2\pi } \log (2\pi x)L(1,\overline{\chi }) -\dfrac{1} {2}L^{{\prime}}(0,\chi ) \\ & & \quad + \dfrac{i\tau (\chi )} {2\pi } \sum _{n=1}^{\infty }\dfrac{d_{\overline{\chi }}(n)} {n} J_{0}(4\pi \sqrt{nx/q}). {}\end{array}$$
(17)

Theorem 3.

If χ is an even, non-principal, primitive character modulo q, then

$$\displaystyle{ \sum _{n\leq x}d_{\chi }(n)\log \dfrac{x} {n} = xL(1,\chi ) -\frac{1} {2}L^{{\prime}}(0,\chi ) -\dfrac{\tau (\chi )} {2\pi } \sum _{n=1}^{\infty }\dfrac{d_{\overline{\chi }}(n)} {n} I_{0}(4\pi \sqrt{nx/q}). }$$
(18)

Theorems 2 and 3 are special cases of theorems in [3], but the identities and the details of their proofs were not previously worked out until the authors did so in [5].

We are now ready to offer the logarithmic mean identity motivated by Entry 1, established with the key aid of Theorem 2, and proved by the authors in [5]. (A corresponding entry motivated by Ramanujan’s second entry on page 335 of [15] and established with the help of Theorem 3 will not be given here.)

Theorem 4.

Let x > 0 and \(0 <\theta < 1.\) Then

$$\displaystyle\begin{array}{rcl} & & \sum _{n\leq x}\log \dfrac{x} {n}\sum _{r\vert n}\sin (2\pi r\theta ) \\ & & \qquad \qquad = -\frac{\log (4\pi ^{2}x)+\gamma } {4} \cot (\pi \theta ) +\pi x\left (\frac{1} {2}-\theta \right ) + \frac{1} {4\pi }\big(\gamma _{1}(\theta ) -\gamma _{1}(1-\theta )\big) \\ & & \qquad \qquad \quad -\frac{1} {4\pi }\sum _{\begin{array}{c}m\geq 1 \\ n\geq 0 \end{array}}\left \{\frac{J_{0}\left (4\pi \sqrt{m(n+\theta )x}\right )} {(m(n+\theta ))} -\frac{J_{0}\left (4\pi \sqrt{m(n + 1-\theta )x}\right )} {(m(n + 1-\theta ))} \right \},{}\end{array}$$
(19)

where \(\gamma _{1}(\theta )\) and \(\gamma _{1}(1-\theta )\) are the Laurent series coefficients of the Hurwitz zeta function ζ(s,a), also called generalized Stieltjes constants, defined by Berndt [4,p. 152]

$$\displaystyle{ \zeta (s,a) = \dfrac{1} {s - 1} +\sum _{ n=0}^{\infty }\gamma _{ n}(a)(s - 1)^{n}. }$$
(20)

Lastly, suppose that we consider the logarithmic mean identity associated with the arithmetic function \(a(n) \equiv 1\), which, of course, is generated by ζ(s). Then one can show that [3, p. 370]

$$\displaystyle\begin{array}{rcl} \sum _{n\leq x}\log \dfrac{x} {n}& =& x -\dfrac{1} {2}\log x -\dfrac{1} {2}\log (2\pi ) -\dfrac{1} {\pi } \sum _{n=1}^{\infty }\int _{ 2\pi nx}^{\infty }\dfrac{\sin u} {u}du \\ & \sim & x -\dfrac{1} {2}\log x -\dfrac{1} {2}\log (2\pi ) -\sum _{n=2}^{\infty } \dfrac{B_{n}(x - [x])} {(n - 1)!x^{n-1}},{}\end{array}$$
(21)

as x tends to infinity, upon successive integrations by parts, where B n (x), n ≥ 2, denotes the nth Bernoulli polynomial. (Complete details may be found in [3, p. 371].) The asymptotic expansion (21) is equivalent to Stirling’s asymptotic series expansion for the gamma function.

We have not recorded all known logarithmic mean identities that can be found in the literature. For example, let F(n) denote the number of nonzero integral ideals of norm n in either an imaginary quadratic number field or a real quadratic number field. Then in each of these cases, identities for \(\sum _{n\leq x}F(n)\log (x/n)\) are derived in [3]. Redmond [16] also considered the case of an imaginary quadratic number field, but with the infinite series of Bessel functions replaced by an error term.