In analytic number theory, a Dirichlet series, or Dirichlet generating function (DGF), of a sequence is a common way of understanding and summing arithmetic functions in a meaningful way. A little known, or at least often forgotten about, way of expressing formulas for arithmetic functions and their summatory functions is to perform an integral transform that inverts the operation of forming the DGF of a sequence. This inversion is analogous to performing an inverse Z-transform to the generating function of a sequence to express formulas for the series coefficients of a given ordinary generating function.
For now, we will use this page as a compendia of "oddities" and oft-forgotten facts about transforming and inverting Dirichlet series, DGFs, and relating the inversion of a DGF of a sequence to the sequence's summatory function. We also use the notation for coefficient extraction usually applied to formal generating functions in some complex variable, by denoting
for any positive integer
, whenever

denotes the DGF (or Dirichlet series) of f which is taken to be absolutely convergent whenever the real part of s is greater than the abscissa of absolute convergence,
.
The relation of the Mellin transformation of the summatory function of a sequence to the DGF of a sequence provides us with a way of expressing arithmetic functions
such that
, and the corresponding Dirichlet inverse functions,
, by inversion formulas involving the summatory function, defined by

In particular, provided that the DGF of some arithmetic function f has an analytic continuation to
, we can express the Mellin transform of the summatory function of f by the continued DGF formula as
=-{\frac {D_{f}(-s)}{s}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/917cbb897f1700cf0454c34c70382938ca3a0c35)
It is often also convenient to express formulas for the summatory functions over the Dirichlet inverse function of f using this construction of a Mellin inversion type problem.
Preliminaries: Notation, conventions and known results on DGFs
[edit]
DGFs for Dirichlet inverse functions
[edit]
Recall that an arithmetic function is Dirichlet invertible, or has an inverse
with respect to Dirichlet convolution such that
, or equivalently
, if and only if
. It is not difficult to prove that is
is the DGF of f and is absolutely convergent for all complex s satisfying
, then the DGF of the Dirichlet inverse is given by
and is also absolutely convergent for all
. The positive real
associated with each invertible arithmetic function f is called the abscissa of convergence.
We also see the following identities related to the Dirichlet inverse of some function g that does not vanish at one:
![{\displaystyle {\begin{aligned}(g^{-1}\ast \mu )(n)&=[n^{-s}]\left({\frac {1}{\zeta (s)D_{g}(s)}}\right)\\(g^{-1}\ast 1)(n)&=[n^{-s}]\left({\frac {\zeta (s)}{D_{g}(s)}}\right).\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/dff7690e267c499b4eff614d3f633d94479ab8f6)
Summatory functions
[edit]
Using the same convention in expressing the result of Perron's formula, we assume that the summatory function of a (Dirichlet invertible) arithmetic function
, is defined for all real
according to the formula
![{\displaystyle S_{f}(x):={\sum _{n\leq x}}^{\prime }f(n)={\begin{cases}0,&0\leq x<1\\\sum \limits _{n<[x]}f(n),&x\in \mathbb {R} \setminus \mathbb {Z} ^{+}\wedge x\geq 1\\\sum \limits _{n\leq [x]}f(n)-{\frac {f(x)}{2}},&x\in \mathbb {Z} ^{+}.\end{cases}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8f816ce11b5133b75e9bd90a9b08720bb9d9c908)
We know the following relation between the Mellin transform of the summatory function of f and the DGF of f whenever
:

Some examples of this relation include the following identities involving the Mertens function, or summatory function of the Moebius function, the prime zeta function and the prime-counting function, and the Riemann prime-counting function:

For any s such that
, we have that
![{\displaystyle f(x)\equiv [x^{-s}]D_{f}(s)=\lim _{T\rightarrow \infty }{\frac {1}{2T}}\int _{-T}^{T}x^{\sigma +\imath t}D_{f}(\sigma +\imath t)\,dt.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6e296fff7513654da74715bd40aca76a15680681)
If we write the DGF of f according to the Mellin transform formula of the summatory function of f, then the stated integral formula simply corresponds to a special case of Perron's formula. Another variant of the previous formula stated in Apostol's book provides an integral formula for an alternate sum in the following form for
and any real
where we denote
:

Direct proof: from Apostol's book
[edit]
- Define the Dirichlet series
and its associated partial sums
.
- Define the function
.
- Use partial summation to write
.
- Apply the Euler–Maclaurin summation formula to obtain an approximation for
in terms of
and its derivatives.
- Express the error term in the approximation as an integral of a certain function
over the interval
.
- Use Abel's summation formula to express
as a sum of integrals involving
and its derivatives.
- Express the integrals involving
and its derivatives in terms of
and its derivatives.
- Substitute the results from steps 4, 5, and 7 into the formula from step 3, and simplify to obtain the classical integral formula for Dirichlet inversion.
This proof shows that the function
can be recovered from its associated Dirichlet series by means of an integral, which is known as the classical integral formula for Dirichlet inversion.
If we are interested in expressing formulas for the Dirichlet inverse of f, denoted by
whenever
, we write
. Then we have by absolute convergence of the DGF for any
that

Now we can call on integration by parts to see that if we denote by
denotes the
antiderivative of F, for any fixed non-negative integers
, we have

Thus we obtain that
![{\displaystyle {\begin{aligned}\int _{-T}^{T}{\frac {x^{\imath t}}{D_{f}(\sigma +\imath t)}}\,dt&={\frac {1}{\imath }}\left(\sum _{j\geq 0}\sum _{k=0}^{j}\sum _{m=0}^{k}{\frac {k!}{m!}}(-1)^{m}(\sigma +\imath t)^{m}\left[D_{f}^{k}\right]^{(j+1-k)}(\sigma +\imath t){\frac {\log ^{j-k}(x)}{(j-k)!}}\right){\Biggr |}_{t=-T}^{t=+T}.\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5af5b317899694268c017b4dddf4e80c17297f20)
We also can relate the iterated integrals for the
antiderivatives of F by a finite sum of k single integrals of power-scaled versions of F:

In light of this expansion, we can then write the partially limiting T-truncated Dirichlet series inversion integrals at hand in the form of
{\frac {dv}{v^{n}}}\right){\Biggr |}_{t=-T}^{t=+T}\\&={\frac {1}{2T\cdot \imath }}\left(\sum _{j\geq 0}\sum _{k=0}^{j}\sum _{m=0}^{k}{\frac {(-1)^{j-k}\cdot (-s)^{m}}{m!}}{\frac {\log ^{k}(x)}{k!}}\int _{0}^{1}s\cdot D_{f}^{j-k}(rs)\left(1-{\frac {1}{rs}}\right)^{k}\,dv\right){\Biggr |}_{s=\sigma -\imath T}^{s=\sigma +\imath T}\\&={\frac {s\left(e^{-s}+O_{s}(1)\right)}{2T\cdot \imath }}\int _{0}^{1}{\frac {x^{1-{\frac {1}{rs}}}}{1+D_{f}(rs)}}dr{\Biggr |}_{s=\sigma -\imath T}^{s=\sigma +\imath T}\\&={\frac {\left(e^{-s}+O_{s}(1)\right)}{2T\cdot \imath }}\int _{0}^{s}{\frac {x^{1-{\frac {1}{v}}}}{1+D_{f}(v)}}\,dv{\Biggr |}_{s=\sigma -\imath T}^{s=\sigma +\imath T}.\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ca94874d0b41c0e23c280ac85ef086f7dce4b502)
- The Dirichlet generating function of a sequence
is the Mellin transform of the sequence, evaluated at
:
.
- The Dirichlet inverse of a sequence
is related to the inverse Mellin transform of its generating function:
, where
is a real number greater than the abscissa of convergence of the Dirichlet series
.
- The Mellin transform of a convolution of two sequences
and
is the product of their Mellin transforms:
.
- If
is a sequence and
is a function such that the integral
converges absolutely and uniformly for
in some right half plane, then we can define a Dirichlet series by
, and the Dirichlet series is the Mellin transform of
.
Suppose that we wish to treat the integrand integral formula for Dirichlet coefficient inversion in powers of
where
, and then proceed as if we were evaluating a traditional integral on the real line. Then we have that

We require the result given by the following formula, which is proved rigorously by an application of integration by parts, for any non-negative integer
:

So the respective real and imaginary parts of our arithmetic function coefficients f at positive integers x satisfy:

The last identities suggest an application of the Hadamard product formula for generating functions. In particular, we can work out the following identities which express the real and imaginary parts of our function f at x in the following forms:[1]
![{\displaystyle {\begin{aligned}\operatorname {Re} (f(x))&=\lim _{T\rightarrow \infty }\left[{\frac {x^{\sigma }}{2T}}\times {\frac {1}{2\pi }}\int _{-\pi }^{\pi }\left(D_{f}(\sigma +\imath T\cdot e^{\imath s})+D_{f}(\sigma -\imath Te^{\imath s})\right)\left(FUNC(e^{-\imath s})\right)\,ds\right]\\\operatorname {Im} (f(x))&=\lim _{T\rightarrow \infty }\left[{\frac {x^{\sigma }}{2T}}\times {\frac {1}{2\pi }}\int _{-\pi }^{\pi }\left(D_{f}(\sigma +\imath T\cdot e^{\imath s})-D_{f}(\sigma -\imath Te^{\imath s}\right)()\,ds\right].\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c7d5a212c396072f9930680a623fffc340207488)
Notice that in the special case where the arithmetic function f is strictly real-valued, we expect that the inner terms in the previous limit formula are always zero (i.e., for any T).
- ^ To apply the integral formula for the Hadamard product, we observe that
![{\displaystyle {\begin{aligned}\sum _{r=0}^{\lfloor k/2\rfloor }{\frac {(-1)^{r+1}T^{2r}}{\log ^{k-2r}(x)(2r)!}}&=-{\frac {1}{2}}[z^{k}]\left({\frac {e^{\imath T{\sqrt {z}}}}{1-{\frac {z}{\log x}}}}+{\frac {e^{-\imath T{\sqrt {z}}}}{1+{\frac {z}{\log x}}}}\right)\\\sum _{r=0}^{\lfloor k/2\rfloor }{\frac {(-1)^{r+1}T^{2r+1}}{\log ^{k-2r-1}(x)(2r+1)!}}&=-{\frac {1}{2}}[z^{k}]\left({\frac {e^{\imath T{\sqrt {z}}}}{1-{\frac {z}{\log x}}}}-{\frac {e^{-\imath T{\sqrt {z}}}}{1+{\frac {z}{\log x}}}}\right).\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b512e63f34d5beb591a85a0c451b1baa2813b7d2)
From this observation, the formula stated below is now a standard application of the cited integral formula to compute the Hadamard product of two generating functions.