1 Introduction
Zeta functions are very important, playing a pivotal role in the analytic number theory. Properties of zeta functions are essential in the distribution of primes. Prime numbers, in turn, have a broad spectrum of applications, ranging from quantum mechanics to information security (e.g. RSA and the Diffie–Hellman key exchange algorithms or elliptic-curve cryptography). Investigating zeta functions numerically, one needs an algorithm enabling to effectively compute numerous values over the complex plane, not only in the critical strip or on the critical line.
In this paper, we continue the study of efficient algorithms for the computation of zeta functions, extending works of Borwein (2000), Šleževičienė (2004), Vepštas (2008) and Coffey (2009). These algorithms allow the computation of zeta functions over the complex plane. The idea of the method comes from the alternating series convergence and properties of Chebyshev polynomials. The algorithm is nearly optimal in the sense that there is no sequence of n-term exponential polynomials that can converge to a zeta function very much faster than those of the algorithm (see, e.g. Theorem 3.1 in Borwein, 2000, Theorem 5 in Šleževičienė, 2004). The algorithm steps aside for the Riemann–Siegel formula based algorithms (Arias de Reyna, 2011) for computations concerning zeroes on the critical line, where multiple low precision evaluations are required. However, it is more efficient than Euler–Maclaurin based algorithms for arbitrary precision computations (note that the Riemann–Siegel formula permits to approximate $\zeta (\sigma +it)$ in the critical strip for large values of t with a number of terms proportional to $\sqrt{t}$, while Euler–Maclaurin based algorithms require a number of terms proportional to t, cf. Borwein et al., 2000; Borwein, 2000). Belovas obtained central (Belovas, 2019a) and local (Belovas, 2019b) limit theorems, which allowed to introduce an asymptotic approximation for coefficients of the algorithm, providing a considerable speedup in calculations (Belovas and Sakalauskas, 2018).
In the present study, we develop a modification of a globally convergent series for the Riemann zeta function and establish a limit theorem for coefficients of the modified series. We specify the rate of convergence to the limiting distribution, identify the error term and discuss computational complexity. The algorithm is applied to produce 3D visualizations, illustrating underlying structures of surfaces and 3D curves associated with zeta functions.
The paper is organized as follows. The first part is the introduction. In the second part, we introduce a modification of Lerch’s series. In the auxiliary third part, we establish double ordinary and double semi-exponential generating functions for coefficients of the modified series. The proof of the validity of the modification is presented in the fourth section. In the fifth part of the research, we establish analytic expressions of coefficients of the series. In the sixth section, we establish a limit theorem for coefficients and specify the rate of convergence to the limiting distribution. In the seventh section, we prove a theorem for the error term of the series and consider the computational complexity of the method. The numerical aspects of the technique are discussed in the eighth part of the paper. The ninth section of the study is devoted to 3D visualizations of zeta functions and the Riemann hypothesis.
Throughout this paper, we denote by $\Phi (x)$ the cumulative distribution function of the standard normal distribution, and by $\overline{\Phi }(x)$ we denote the corresponding tail distribution $\overline{\Phi }(x)=1-\Phi (x)$. $E(X)$ stands for the expected value of a random variable X. $\Gamma (s)$ denotes the gamma function. ${C_{n}^{k}}$ are the binomial coefficients. $\lfloor x\rfloor $ and $\lceil x\rceil $ stand for the floor function and the ceiling functions respectively. $A\times B$ stands for the Cartesian product of two sets A and B. All limits, unless specified, are taken as $n\to \infty $.
2 Series with Binomial-Like Coefficients
Let $s=\sigma +it$ be a complex variable. The Riemann zeta function is defined by
\[ \zeta (s)={\sum \limits_{n=1}^{\infty }}\frac{1}{{n^{s}}}=\prod \limits_{p\in \mathbb{P}}{\bigg(1-\frac{1}{{p^{s}}}\bigg)^{-1}},\]
for $\sigma >1$, and by analytic continuation elsewhere except for a simple pole at $s=1$. Let us consider a globally convergent series with binomial-like coefficients for the Riemann zeta function.Theorem 1.
For $s\ne 1+2i\pi m/\log 2$, $m\in \mathbb{Z}$,
here
Coefficients ${a_{nk}}$ satisfy a class of triangular arrays and are defined by the following recurrent expression: for $n,k\in \mathbb{N}$,
where ${a_{00}}=1$, ${a_{nk}}=0$ if $n<k$, and ${a_{n0}}=2{a_{n-1,0}}+1$ if $n>0$ (cf. Table 1).
(1)
\[ \zeta (s)=\frac{1}{1-{2^{1-s}}}\underset{n\to \infty }{\lim }{\sum \limits_{k=0}^{n}}\frac{{(-1)^{k}}}{{(k+1)^{s}}}{q_{nk}},\]Table 1
Numbers ${a_{nk}}$ (3) form a triangular array.
0 | 1 | 2 | 3 | 4 | 5 | … | |
0 | 1 | 0 | 0 | 0 | 0 | 0 | … |
1 | 3 | 1 | 0 | 0 | 0 | 0 | … |
2 | 7 | 4 | 1 | 0 | 0 | 0 | … |
3 | 15 | 11 | 5 | 1 | 0 | 0 | … |
4 | 31 | 26 | 16 | 6 | 1 | 0 | … |
5 | 63 | 57 | 42 | 22 | 7 | 1 | … |
… | … | … | … | … | … | … | … |
It is significant to note that though the partial difference equation (3) bears a close resemblance to the partial difference equation of the binomial coefficients, coefficients ${a_{nk}}$ are not symmetric, because of different boundary conditions. Indeed, the coefficients are decreasing by k for any fixed n. In order to investigate the underlying structure of these numbers, we introduce the double ordinary and the double semi-exponential generating functions (this aspect will be dealt in detail in Section 3).
The series (1) is a modification of the globally convergent series for the Riemann zeta function, first given by Lerch (1897),
Borwein studied a similar series with binomial-like coefficients, rapidly convergent and well-suited for high precision numerical calculations (Borwein, 2000; Belovas and Sakalauskas, 2018) introduced an improved version of his algorithm. Vepštas (2008) and Coffey (2009) developed efficient algorithms for Hurwitz zeta function, while Šleževičienė (2004) adapted Borwein’s result for Dirichlet L-functions. These algorithms, using series with binomial-like coefficients, are nearly optimal in the sense that there is no sequence of n-term exponential polynomials that can converge to the Riemann zeta function on an interval much faster that those of the algorithms (cf. Theorem 3.1 in Borwein, 2000 and Theorem 5 in Šleževičienė, 2004). In present paper we extend the study of this class of algorithms. We begin by examining the generating functions of the coefficients of the series (1).
(4)
\[ \zeta (s)=\frac{1}{1-{2^{1-s}}}{\sum \limits_{n=0}^{\infty }}\frac{1}{{2^{n+1}}}{\sum \limits_{k=0}^{n}}\frac{{(-1)^{k}}{C_{n}^{k}}}{{(k+1)^{s}}}.\]3 Generating Functions of the Coefficients of the Series
In this section we establish the double ordinary generating function
and the double semi-exponential generating function
for the coefficients (3). First we will prove an auxiliary lemma for the boundary generating functions.
(5)
\[ G(x,y)={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{\infty }}{a_{nk}}{x^{n}}{y^{k}}={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}{a_{nk}}{x^{n}}{y^{k}}\](6)
\[ F(x,y)={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{\infty }}{a_{nk}}\frac{{x^{n}}}{n!}{y^{k}}={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}{a_{nk}}\frac{{x^{n}}}{n!}{y^{k}}\]Lemma 1.
Coefficients ${a_{nk}}$ have the boundary ordinary generating function ${G_{0}}(x)$ and the boundary exponential generating function ${F_{0}}(x)$ as follows:
Proof.
Let us consider the formal series (5) of the double ordinary generating function (note that ${a_{nk}}=0$ for $n<k$),
\[ G(x,y)={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}{a_{nk}}{x^{n}}{y^{k}}=\underset{=1}{\underbrace{{a_{00}}}}+{\sum \limits_{n=1}^{\infty }}{a_{n0}}{x^{n}}+{\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{n}}{a_{nk}}{x^{n}}{y^{k}}.\]
Hence, the boundary ordinary generating function equals
\[\begin{aligned}{}{G_{0}}(x)& =G(x,0)=1+{\sum \limits_{n=1}^{\infty }}{a_{n0}}{x^{n}}=1+{\sum \limits_{n=1}^{\infty }}(2{a_{n-1,0}}+1){x^{n}}\\ {} & =2{\sum \limits_{n=1}^{\infty }}{a_{n-1,0}}{x^{n}}+{\sum \limits_{n=0}^{\infty }}{x^{n}}=2x\underset{={G_{0}}(x)}{\underbrace{{\sum \limits_{n=0}^{\infty }}{a_{n0}}{x^{n}}}}+\frac{1}{1-x}.\end{aligned}\]
Thereby, statement (i) of the lemma follows.Next, take a look at the formal series (6) of the double semi-exponential generating function,
\[ F(x,y)={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}{a_{nk}}\frac{{x^{n}}}{n!}{y^{k}}=\underset{=1}{\underbrace{{a_{00}}}}+{\sum \limits_{n=1}^{\infty }}{a_{n0}}\frac{{x^{n}}}{n!}+{\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{n}}{a_{nk}}\frac{{x^{n}}}{n!}{y^{k}}.\]
Thus, the boundary exponential generating function equals
\[\begin{aligned}{}{F_{0}}(x)& =F(x,0)=1+{\sum \limits_{n=1}^{\infty }}{a_{n0}}\frac{{x^{n}}}{n!}=1+{\sum \limits_{n=1}^{\infty }}(2{a_{n-1,0}}+1)\frac{{x^{n}}}{n!}\\ {} & =1+2{\sum \limits_{n=1}^{\infty }}{a_{n-1,0}}\frac{{x^{n}}}{n!}+{\sum \limits_{n=1}^{\infty }}\frac{{x^{n}}}{n!}=2{\sum \limits_{n=0}^{\infty }}{a_{n,0}}\frac{{x^{n+1}}}{(n+1)!}+{e^{x}}.\end{aligned}\]
Differentiating, we receive
and, as a result, the linear differential equation
with the initial condition ${F_{0}}(0)=1$. Indeed,
Solving the ordinary differential equation, we obtain statement (ii) of the lemma. □Lemma 2.
Coefficients ${a_{nk}}$ have the double ordinary generating function $G(x,y)$ and the semi-exponential generating function $F(x,y)$ as follows:
Proof.
Let us take the double ordinary generating function (5). Substituting the expression (3) into the generating function, we get
\[\begin{aligned}{}G(x,y)& =1+{\sum \limits_{n=1}^{\infty }}{a_{n0}}{x^{n}}+{\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{\infty }}{a_{nk}}{x^{n}}{y^{k}}\\ {} & ={G_{0}}(x)+{\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{\infty }}{a_{n-1,k-1}}{x^{n}}{y^{k}}+{\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{\infty }}{a_{n-1,k}}{x^{n}}{y^{k}}\\ {} & ={G_{0}}(x)+xyG(x,y)+x\big(G(x,y)-{G_{0}}(x)\big).\end{aligned}\]
Thus,
By substituting (7) into (11) we obtain statement (i) of the lemma.Next, turn to the double semi-exponential generating function (6). Substituting the recurrent expression (3) into the generating function, we have that
\[\begin{aligned}{}F(x,y)& ={\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{n}}{a_{n-1,k-1}}\frac{{x^{n}}}{n!}{y^{k}}+{\sum \limits_{n=1}^{\infty }}{\sum \limits_{k=1}^{n}}{a_{n-1,k}}\frac{{x^{n}}}{n!}{y^{k}}+{\sum \limits_{n=0}^{\infty }}{a_{n0}}\frac{{x^{n}}}{n!}\\ {} & =\underset{=y{\textstyle\textstyle\int _{0}^{x}}Fdt}{\underbrace{{\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}{a_{nk}}\frac{{x^{n+1}}}{(n+1)!}{y^{k+1}}}}+\underset{={\textstyle\textstyle\int _{0}^{x}}Fdt}{\underbrace{{\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}{a_{nk}}\frac{{x^{n+1}}}{(n+1)!}{y^{k}}}}\\ {} & \hspace{1em}-\underset{={\textstyle\textstyle\int _{0}^{x}}{F_{0}}dt}{\underbrace{{\sum \limits_{n=0}^{\infty }}{a_{n0}}\frac{{x^{n+1}}}{(n+1)!}}}+\underset{={F_{0}}}{\underbrace{{\sum \limits_{n=0}^{\infty }}{a_{n0}}\frac{{x^{n}}}{n!}}}.\end{aligned}\]
Therefore, by statement (ii) of Lemma 1, we obtain that
\[ F=(y+1){\int _{0}^{x}}Fdt-\underset{={e^{2x}}-{e^{x}}}{\underbrace{{\int _{0}^{x}}{F_{0}}dt}}+\underset{=2{e^{2x}}-{e^{x}}}{\underbrace{{F_{0}}}}=(y+1){\int _{0}^{x}}Fdt+{e^{2x}}.\]
Calculating the partial derivative by x, we get the first-order linear partial differential equation,
with the initial condition $F{|_{x=0}}=1$. Indeed, by (6), we get
Solving the partial differential equation (note that we can solve it as an ordinary one), we obtain statement (ii) of the lemma. □4 Analytic Expressions of the Coefficients of the Series
The recurrent formula (3) is often inconvenient in practical computations, thus it is purposeful to seek an analytic expression or an asymptotic expansion. We may view (3) as a partial difference equation with constant coefficients. In this section we will establish analytic expressions for the coefficients ${a_{nk}}$, using the double ordinary and the semi-exponential generating functions from (see Lemma 2). The coefficients ${a_{nk}}$ can be expressed by linear combinations of binomial coefficients or by the incomplete beta function.
Lemma 3.
The following analytic expressions are equivalent:
Here ${I_{x}}(a,b)$ stands for the regularized incomplete beta function:
(12)
\[\begin{aligned}{}\text{(i)}\hspace{1em}{a_{nk}}& ={\sum \limits_{j=k}^{n}}{2^{n-j}}{C_{j}^{k}},\\ {} \text{(ii)}\hspace{1em}{a_{nk}}& ={\sum \limits_{j=k+1}^{n+1}}{C_{n+1}^{j}},\\ {} \text{(iii)}\hspace{1em}{a_{nk}}& ={2^{n+1}}{I_{1/2}}(k+1,n-k+1).\end{aligned}\]Proof.
Formal Taylor series in two variables for generating functions $G(x,y)$ and $F(x,y)$, defined by formulas (5) and (6), are equal to
\[ G(x,y)={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{\infty }}\bigg({\left.\frac{{\partial ^{n+k}}}{\partial {x^{n}}\partial {y^{k}}}G(x,y)\right|_{(0,0)}}\bigg)\frac{{x^{n}}{y^{k}}}{n!k!}\]
and
\[ F(x,y)={\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{\infty }}\bigg({\left.\frac{{\partial ^{n+k}}}{\partial {x^{n}}\partial {y^{k}}}F(x,y)\right|_{(0,0)}}\bigg)\frac{{x^{n}}{y^{k}}}{n!k!},\]
respectively. Statements (i) and (ii) of the lemma are obtained by partial differentiation of the generating functions at $(0,0)$. By proposition (i) of Lemma 2, we have that
\[\begin{aligned}{}{a_{nk}}& ={\left.\frac{1}{n!k!}\frac{{\partial ^{n+k}}}{\partial {x^{n}}\partial {y^{k}}}G(x,y)\right|_{(0,0)}}=\frac{1}{n!k!}\frac{{\partial ^{n}}}{\partial {x^{n}}}{\left.\frac{1}{1-2x}\frac{k!{x^{k}}}{{(1-x(y+1))^{k+1}}}\right|_{(0,0)}}\\ {} & =\frac{1}{n!}{\sum \limits_{j=0}^{n}}{C_{n}^{j}}{\big({x^{k}}\big)^{(j)}}{\left.{\bigg(\frac{1}{(1-2x){(1-x(y+1))^{k+1}}}\bigg)^{(n-j)}}\right|_{(0,0)}}\\ {} & =\frac{1}{(n-k)!}{\sum \limits_{j=0}^{n-k}}{C_{n-k}^{j}}{\bigg(\frac{1}{1-2x}\bigg)^{(j)}}{\left.{\bigg(\frac{1}{{(1-x(y+1))^{k+1}}}\bigg)^{(n-k-j)}}\right|_{(0,0)}}\\ {} & ={\sum \limits_{j=0}^{n-k}}\frac{1}{j!(n-k-j)!}j!{2^{j}}(k+1)(k+2)\dots (n-j)={\sum \limits_{j=0}^{n-k}}{2^{j}}{C_{n-j}^{k}}.\end{aligned}\]
Next, using proposition (ii) of Lemma 2, we get
(13)
\[\begin{aligned}{}{a_{nk}}& ={\left.\frac{1}{k!}\frac{{\partial ^{n+k}}}{\partial {x^{n}}\partial {y^{k}}}F(x,y)\right|_{(0,0)}}=\frac{1}{k!}\frac{{\partial ^{k}}}{\partial {y^{k}}}{\left.\frac{{2^{n+1}}{e^{2x}}-{(1+y)^{n+1}}{e^{(y+1)x}}}{1-y}\right|_{(0,0)}}\\ {} & =\frac{1}{k!}{\sum \limits_{j=0}^{k}}{C_{k}^{j}}{\left.\frac{{\partial ^{j}}}{\partial {y^{j}}}{2^{n+1}}{e^{2x}}-{(1+y)^{n+1}}{e^{(y+1)x}}\right|_{(0,0)}}{\left.\frac{{\partial ^{k-j}}}{\partial {y^{k-j}}}\frac{1}{1-y}\right|_{(0,0)}}\\ {} & =-{\sum \limits_{j=1}^{k}}\frac{1}{j!}{\left.{\sum \limits_{i=0}^{j}}{C_{j}^{i}}\frac{{\partial ^{i}}}{\partial {y^{i}}}{(1+y)^{n+1}}\right|_{(0,0)}}\frac{{\partial ^{j-i}}}{\partial {y^{j-i}}}{\left.{e^{(y+1)x}}\right|_{(0,0)}}+{2^{n+1}}-1\\ {} & =-{\sum \limits_{j=1}^{k}}\frac{(n+1)!}{j!(n+1-j)!}+{2^{n+1}}-1={2^{n+1}}-{\sum \limits_{j=0}^{k}}{C_{n+1}^{j}}={\sum \limits_{j=k+1}^{n+1}}{C_{n+1}^{j}}.\end{aligned}\]Now we can proceed with the proof of Theorem 1.
5 Proof of Theorem 1
Proof.
Consider Lerch’s series (4) for the Riemann zeta function
\[ \zeta (s)=\frac{1}{1-{2^{1-s}}}{\sum \limits_{n=0}^{\infty }}{\sum \limits_{k=0}^{n}}\frac{1}{{2^{n+1}}}\frac{{(-1)^{k}}{C_{n}^{k}}}{{(k+1)^{s}}}.\]
Changing the order of the summation in the double sum and applying the first statement of Lemma 3 (12), we obtain that
\[\begin{aligned}{}\zeta (s)& =\frac{1}{1-{2^{1-s}}}{\sum \limits_{k=0}^{\infty }}{\sum \limits_{n=k}^{\infty }}\frac{1}{{2^{n+1}}}\frac{{(-1)^{k}}{C_{n}^{k}}}{{(k+1)^{s}}}\\ {} & =\frac{1}{1-{2^{1-s}}}\underset{N\to \infty }{\lim }{\sum \limits_{k=0}^{N}}\frac{{(-1)^{k}}}{{(k+1)^{s}}}{\sum \limits_{n=k}^{N}}\frac{{C_{n}^{k}}}{{2^{n+1}}}\\ {} & =\frac{1}{1-{2^{1-s}}}\underset{N\to \infty }{\lim }{\sum \limits_{k=0}^{N}}\frac{{(-1)^{k}}}{{(k+1)^{s}}}{2^{-N-1}}\underset{={a_{Nk}}}{\underbrace{{\sum \limits_{n=k}^{N}}{2^{N-n}}{C_{n}^{k}}}}\end{aligned}\]
yielding us the statement of the theorem. □6 Limit Theorem for the Coefficients of the Series and the Rate of Convergence to the Limiting Distribution
We will use Hwang’s result on convergence rates in central limit theorems for combinatorial structures (see Theorem 7 and Corollary 2 in Section 4 in Hwang, 1998) to establish the limit theorem for ${q_{nk}}$ coefficients and specify the rate of convergence to the limiting distribution.
Theorem 2.
(See Hwang, 1998.) Let ${P_{n}}(z)$ be a probability generating function of the random variable ${\Omega _{n}}$, taking only non-negative integral values, with mean ${\mu _{n}}$ and variance ${\sigma _{n}^{2}}$. Suppose that, for each fixed $n\geqslant 1$, ${P_{n}}(z)$ is a Hurwitz polynomial. If ${\sigma _{n}}\to \infty $, then ${\Omega _{n}}$ satisfies
Let us formulate a central limit theorem.
Lemma 4.
Suppose that ${F_{n}}(x)$ is the cumulative distribution function of the random variable ${A_{n}}$ with the probability mass function
mean
and variance
Then it holds
Proof.
Let us consider the moment generating function of the random variable ${A_{n}}$
\[\begin{aligned}{}{M_{n}}(s)& =E\big({e^{s{A_{n}}}}\big)=\sum \limits_{k}P({A_{n}}=k){e^{ks}}={\sum \limits_{k=0}^{n}}\frac{{C_{n+1}^{k}}{e^{ks}}}{{2^{n+1}}-1}\\ {} & =\frac{1}{{2^{n+1}}-1}\Bigg({\sum \limits_{k=0}^{n+1}}{C_{n+1}^{k}}{e^{ks}}-{e^{s(n+1)}}\Bigg)=\frac{{({e^{s}}+1)^{n+1}}-{e^{s(n+1)}}}{{2^{n+1}}-1}.\end{aligned}\]
Calculating the derivatives of ${M_{n}}(s)$, we obtain that
\[\begin{aligned}{}{M^{\prime }_{n}}(s)& =\frac{n+1}{{2^{n+1}}-1}\big({\big({e^{s}}+1\big)^{n}}{e^{s}}-{e^{s(n+1)}}\big),\\ {} {M^{\prime\prime }_{n}}(s)& =\frac{n+1}{{2^{n+1}}-1}\big(n{\big({e^{s}}+1\big)^{n-1}}{e^{2s}}+{\big({e^{s}}+1\big)^{n}}{e^{s}}-(n+1){e^{s(n+1)}}\big).\end{aligned}\]
Hence,
\[\begin{aligned}{}{\mu _{n}}& ={M_{n}^{{^{\prime }}}}(0)=\frac{(n+1)({2^{n}}-1)}{{2^{n+1}}-1}=\frac{n+1}{2}\Bigg(1-{\sum \limits_{k=1}^{\infty }}{\bigg(\frac{1}{{2^{n+1}}}\bigg)^{k}}\Bigg)\\ {} & =\frac{n+1}{2}\bigg(1+O\bigg(\frac{1}{{2^{n}}}\bigg)\bigg)=\frac{n}{2}\bigg(1+\frac{1}{n}+O\bigg(\frac{1}{{2^{n}}}\bigg)\bigg)\end{aligned}\]
and
\[\begin{aligned}{}{\sigma _{n}^{2}}& ={M^{\prime\prime }_{n}}(0)-{\big({M^{\prime }_{n}}(0)\big)^{2}}=\frac{n+1}{{({2^{n+1}}-1)^{2}}}\big({2^{2n}}-{2^{n-1}}(n+2)\big)\\ {} & =\frac{n+1}{4}\Bigg(1-{\sum \limits_{k=1}^{\infty }}\frac{kn+k-1}{{2^{kn+k}}}\Bigg)=\frac{n}{4}\bigg(1+\frac{1}{n}+O\bigg(\frac{n}{{2^{n}}}\bigg)\bigg),\end{aligned}\]
granting us with estimates for the mean and the variance (cf. (16) and (17)). Note that ${\sigma _{n}}\to \infty $.Next, let us examine the probability generating function of the random variable ${A_{n}}$
Hurwitz polynomial is a polynomial whose zeros are located in the left half-plane of the complex plane or on the imaginary axis. Let us locate the roots of the polynomial (19). Since $z\ne 0$, we have that
Calculating an nth root of unity, we obtain that
(19)
\[ {P_{n}}(z)=E\big({z^{{A_{n}}}}\big)=\sum \limits_{k}P({A_{n}}=k){z^{k}}={\sum \limits_{k=0}^{n}}\frac{{C_{n+1}^{k}}{z^{k}}}{{2^{n+1}}-1}=\frac{{(z+1)^{n+1}}-{z^{n+1}}}{{2^{n+1}}-1}.\]
\[ \frac{{z_{k}}+1}{{z_{k}}}=\cos \frac{2\pi k}{n+1}+i\sin \frac{2\pi k}{n+1},\hspace{1em}k=0,\dots ,n.\]
Thus, the roots of (19) are equal to
The real part of every root is negative. Hence, the probability generating function ${P_{n}}(z)$ is a Hurwitz polynomial. By Theorem 2, we have that
yielding us the statement of the lemma. □Now we can formulate the central limit theorem for the coefficients ${q_{nk}}$.
Proof.
Note that the cumulative distribution function of the random variable ${A_{n}}$ equals
\[ {F_{n}}({\sigma _{n}}x+{\mu _{n}})=\sum \limits_{j\leqslant {\sigma _{n}}x+{\mu _{n}}}\frac{{C_{n+1}^{j}}}{{2^{n+1}}-1}.\]
Denoting $k=\lfloor {\sigma _{n}}x+{\mu _{n}}\rfloor $ and taking into account Lemma 4 and the equality (cf. (13))
we obtain that
Thus,
and the statement of the theorem follows. □7 Error Term of the Series and the Computational Complexity
Let us investigate the error term of the series (1).
Proof.
By (2.3) of Algorithm 1 in Borwein (2000), the error term of the series equals
By the definition of the coefficients of the series and the expression of the generating function of the binomial coefficients, the polynomial ${p_{n+1}}(x)$ equals
Thus, ${p_{n+1}}(-1)={2^{n+1}}$ and, for $0<x<1$, we have $0<{p_{n+1}}(x)<1$. It follows
For the integral factor, we have that
The product representation of the gamma function equals
The product representation of the hyperbolic sine equals
Combining (26) and (27), we get
Next, combining (24), (25) and (28), we obtain that
yielding us the statement of the theorem. □
(23)
\[ {\xi _{n+1}}(s)=\frac{1}{{p_{n+1}}(-1)(1-{2^{1-s}})}\frac{1}{\Gamma (s)}{\int _{0}^{1}}\frac{{p_{n+1}}(x)|\log x{|^{s-1}}}{1+x}dx.\](24)
\[ |{\xi _{n+1}}(s)|\leqslant \frac{1}{{2^{n+1}}|1-{2^{1-s}}|}\frac{1}{|\Gamma (s)|}{\int _{0}^{1}}\frac{{(-\log x)^{\sigma -1}}}{1+x}dx.\](25)
\[ {\int _{0}^{1}}\frac{{(-\log x)^{\sigma -1}}}{1+x}dx\leqslant {\int _{0}^{1}}{(-\log x)^{\sigma -1}}dx=\Gamma (\sigma ).\](26)
\[ {\bigg|\frac{\Gamma (\sigma )}{\Gamma (s)}\bigg|^{2}}={\prod \limits_{n=0}^{\infty }}\bigg(1+\frac{{t^{2}}}{{(\sigma +n)^{2}}}\bigg).\](28)
\[ {\bigg|\frac{\Gamma (\sigma )}{\Gamma (s)}\bigg|^{2}}=\bigg(1+\frac{{t^{2}}}{{\sigma ^{2}}}\bigg){\prod \limits_{n=1}^{\infty }}\bigg(1+\frac{{t^{2}}}{{(\sigma +n)^{2}}}\bigg)\leqslant \bigg(1+\frac{{t^{2}}}{{\sigma ^{2}}}\bigg)\frac{\sinh \pi |t|}{\pi |t|}.\]Remark 2.
For $\sigma >0$ and $s\ne 1+2i\pi m/\log 2$, $m\in \mathbb{Z}$, the inequality
holds. Hence, to compute the Riemann zeta function with d decimal digits of accuracy, the approach requires a number n of terms in the sum (21),
Noticing that (cf. 8.328.1, Gradshteyn and Ryzhik, 2014),
(30)
\[ |{\xi _{n+1}}(s)|\leqslant \frac{1}{{2^{n+1}}|1-{2^{1-s}}|}\frac{\Gamma (\sigma )}{|\Gamma (s)|}\](31)
\[\begin{aligned}{}n& =\bigg\lfloor \frac{\log \Gamma (\sigma )-\log |\Gamma (s)|+d\log 10-\log |1-{2^{1-s}}|}{\log 2}\bigg\rfloor \\ {} & =\bigg\lfloor \frac{\log \Gamma (\sigma )-\log |\Gamma (s)|+d\log 10-\log \sqrt{1-{2^{2-\sigma }}\cos (t\log 2)+{2^{2-2\sigma }}}}{\log 2}\bigg\rfloor \\ {} & \leqslant \bigg\lfloor \frac{\log \Gamma (\sigma )-\log |\Gamma (\sigma +it)|+d\log 10-\log |1-{2^{1-\sigma }}|}{\log 2}\bigg\rfloor .\end{aligned}\]
\[ \underset{t\to \infty }{\lim }|\Gamma (\sigma +it)|{t^{\frac{1}{2}-\sigma }}{e^{\frac{\pi }{2}t}}=\sqrt{2\pi },\]
we obtain, for fixed d and σ, that
For numerical purposes (if t is large enough, e.g. $t>0.2$), we can choose n by the following approximate formula
Here
8 Numerical Aspects
Apart from a certain theoretical interest, the representation (20) of ${q_{nk}}$ is pivotal in numerical applications of the series (1), providing a considerable speedup in calculations. It relieves the computer memory, circumvents the computation of the binomial coefficients (i.e. time-consuming calculations of factorials). It allows us to cut the tails of the series. We do not to calculate ${q_{nk}}$ while $k\to 0$ and ${q_{nk}}\to 1$, and do not include corresponding terms into the sum, while $k\to n$ and ${q_{nk}}\to 0$. The process is controlled by choosing the accuracy level ε. For the right tail, we have $\Phi ((k-{\mu _{n}})/{\sigma _{n}})>1-\varepsilon $. Solving the inequality we obtain that
For the left tail, we have ${n_{0}}=\lfloor {\mu _{n}}-{z_{1-\varepsilon }}{\sigma _{n}}\rfloor $. Here ${z_{p}}$ is the quantile function of the standard normal distribution.
The algorithm requires a number of terms n (32) to compute $\zeta (s)$ with d decimal digits. However, the use of the asymptotic, proposed in Theorem 3, or analytic expression (iii) of Lemma 3, allows us to select n adaptively, depending on accuracy required and t given. This implies that there is no need to recalculate coefficients with every new s.
Naturally, a direct application of the recurrent equation (3) (if values are stored) is faster, compared to straightforward repeated recalculations. However, this storage-intensive approach is unattractive (note order of ${n^{2}}$ storage).
Table 2
Time required to achieve six decimal digits of accuracy, [sec].
Alg. mod. | $H={10^{2}}$ and $(\sigma ,t)\in {\Sigma _{i}}\times {T_{1}}$ | $H={10^{3}}$ and $(\sigma ,t)\in {\Sigma _{i}}\times {T_{2}}$ | ||||
${\Sigma _{0}}\times {T_{1}}$ | ${\Sigma _{1}}\times {T_{1}}$ | ${\Sigma _{2}}\times {T_{1}}$ | ${\Sigma _{0}}\times {T_{2}}$ | ${\Sigma _{1}}\times {T_{2}}$ | ${\Sigma _{2}}\times {T_{2}}$ | |
RE | 0.38 | 0.36 | 0.31 | 293.55 | 298.09 | 290.84 |
BF | 0.14 | 0.14 | 0.13 | 12.20 | 12.47 | 11.58 |
NA | 0.05 | 0.05 | 0.05 | 4.16 | 4.41 | 4.07 |
RE${n_{1}}$ | 0.18 | 0.18 | 0.16 | 90.20 | 97.51 | 87.74 |
BF${n_{1}}$ | 0.10 | 0.10 | 0.09 | 6.63 | 6.96 | 6.57 |
NA${n_{1}}$ | 0.04 | 0.04 | 0.04 | 2.37 | 2.53 | 2.38 |
In Table 2 we compare the performance of six modifications of the algorithm for the computation of the Riemann zeta function, based on the series with binomial-like coefficients. Namely,
-
• Normal approximation (NA). The coefficients of the series (21) are calculated using the asymptotic (20). The standard normal cumulative distribution function is approximated with a 16-digit precision using the fast computation algorithm proposed by (West, 2005). The number of terms n in the sum is obtained by applying the approximation (33).
Let us denote the sets for σ: ${\Sigma _{0}}=(0.7)$, ${\Sigma _{1}}=(1/2,1)$, ${\Sigma _{2}}=(1,10)$ and for t: ${T_{1}}=({10^{1}},{10^{2}})$, ${T_{2}}=({10^{2}},{10^{3}})$. We generate uniformly distributed samples of arguments $s=(\sigma ,t)$ of the Riemann zeta function from the sets ${\Sigma _{i}}\times {T_{j}}$. Here × stands for the Cartesian product. Number H in Table 2 stands for the length of a sample. All calculations were performed with i7-2600 CPU, 8 GB RAM (Python 3.6.3).
We can see that asymptotic-based modifications are 2–3 times faster than beta-based modifications, while recurrence-based modifications have proved too computationally demanding for intensive practical use. Note that C++ version of the program would bring more substantial benefits in speedup (cf. Belovas and Sakalauskas, 2018). Numerical experiments have shown that processing 3D visualizations of surfaces and curves, associated with zeta functions, the performance comparable with Zetafast algorithm (Fischer, 2017), while the specified accuracy level does not exceed six decimal digits of accuracy and the coefficients ${q_{nk}}$ for a mesh are precalculated.
9 3D visualizations of Zeta Functios
Visualizing a complex function of a complex variable ${f_{\mathbb{C}}}:\mathbb{C}\to \mathbb{C}$ we have to bear in mind that actually we are faced with a mapping of a 2D subspace to another 2D subspace – an essentially four-dimensional problem ${f_{\mathbb{R}}}:{\mathbb{R}^{2}}\to {\mathbb{R}^{2}}$. There are a lot of ways of using three dimensions to handle a 4D-structure. We can colour a complex function of a complex variable according to the argument of the function, with the height representing the modulus of the function. We have tried this approach and have found the visualizations unappealing. Our goal is to provide a clear visualization of underlying structures of surfaces and 3D curves associated with zeta functions. Hence, we emphasize on the visualization of 3D intersection lines between the real $\mathrm{\Re }(\tilde{\zeta })$ and the imaginary $\mathrm{\Im }(\tilde{\zeta })$ surfaces of a zeta function, along with 2D lines of intersection between the real $\mathrm{\Re }(\tilde{\zeta })$ and the imaginary $\mathrm{\Im }(\tilde{\zeta })$ surfaces of a zeta function with the complex plane. We apply the aforementioned algorithms to obtain illustrations, disclosing the placement of zeroes of a zeta function under consideration, and as a result, enabling us to probe a hypothesis concerning the distribution of zeroes visually. All graphs of zeta functions presented in this work are generated using the normal approximation (NA${k_{0}}$) of the coefficients ${q_{nk}}$. This algorithm is chosen as the fastest.
The first two figures present two examples of 3D visualizations of the pattern of the allocation of non-trivial zeros of the Riemann zeta function. Figure 1 illustrates the initial allocation (for $(\sigma ,t)\in (-1/2,3/2)\times (10,35)$). The first five non-trivial zeros are indicated by cyan globes at the points of intersections of the real surface of the Riemann zeta function (yellow surface), the imaginary surface of the Riemann zeta function (red surface) and the critical line $\sigma =1/2$.
Fig. 1
Zeroes, $\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces for $(\sigma ,t)\in (-1/2,3/2)\times (10,35)$.
Figure 2 visualizes a segment of the pattern, containing 91–100th non-trivial zeroes of the Riemann zeta function (for $(\sigma ,t)\in (-1/2,3/2)\times (10,35)$. The height is cut at the level of $|\mathrm{\Re }\zeta (s)|\leqslant 5$ and $|\mathrm{\Im }\zeta (s)|\leqslant 5$). Note close pairs of zeroes, resembling Lehmer’s phenomenon (a set of pairs of zeros of the Riemann zeta function, that are close to each other) (Stopple, 2017). It is an unsolved problem, whether there exist infinitely many Lehmer pairs.
Fig. 2
Zeroes, $\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces for $(\sigma ,t)\in (-1/2,3/2)\times (10,35)$.
Fig. 3
$\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces for $(\sigma ,t)\in (-40,10)\times (-20,100)$.
Figure 3 shows numerous ridges shaped by the real (yellow) and the imaginary (red) surfaces of the Riemann zeta function (for $(\sigma ,t)\in (-40,10)\times (-20,100)$). The height is cut at the level of $|\mathrm{\Re }\zeta (s)|\leqslant 5$ and $|\mathrm{\Im }\zeta (s)|\leqslant 5$. Note the peak at the point of a simple pole $s=1$. Non-trivial zeros are indicated by small cyan balls. Trivial zeros are indicated by green ones.
Figure 4 extends the visualization of the previous illustration, demonstrating a 2D pattern of intersections of the real and the imaginary surfaces of the Riemann zeta function with the complex plane. Non-trivial zeros are indicated by small cyan balls. Trivial zeros are indicated by green ones.
Fig. 4
2D curves corresponding the intersections of $\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces with the complex plane, $(\sigma ,t)\in (-40,10)\times (-20,100)$.
Figure 5 shows a pattern of intersections of the real (yellow) and the imaginary (red) surfaces of the Riemann zeta function (for $(\sigma ,t)\in (-40,10)\times (-20,100)$). The height was cut at the level of $|\mathrm{\Re }\zeta (s)|\leqslant 50$ and $|\mathrm{\Im }\zeta (s)|\leqslant 50$. 3D intersection lines between the real and the imaginary surfaces of the Riemann zeta function are highlighted (bold black).
Fig. 5
$\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces for $(\sigma ,t)\in (-40,10)\times (-20,100)$.
Figure 6 extends the visualization of the previous illustration, revealing a knot of 3D curves corresponding the intersections of the surfaces, while the surfaces themselves are not shown.
Fig. 6
3D curves corresponding the intersections of $\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces for $(\sigma ,t)\in (-40,10)\times (-20,100)$.
Figure 7 presents a visualization of the Riemann hypothesis. We can see ribs, formed by the intersections of the real and the imaginary surfaces of the Riemann zeta function, going through the critical line (red) in the critical strip $0<\sigma <1$ (green) at non-trivial zero points (cyan balls).
Fig. 7
3D curves corresponding the intersections of $\mathrm{\Re }\zeta (s)$ and $\mathrm{\Im }\zeta (s)$ surfaces in the critical strip.
The next visualizations present a counterexample to a “generalized Riemann hypothesis”. Let us consider the linear combination of the Riemann zeta function and the Dirichlet L-function (cf. Garunkštis and Šimėnas, 2015),
where $\tau \in [0,1]$ and $L(s,\chi )$ is the Dirichlet L-function (χ mod 5, $\chi (2)=-1$). Hence,
\[ L(s,\chi )={\sum \limits_{n=1}^{\infty }}\frac{\chi (n)}{{n^{s}}}={\sum \limits_{n=1}^{\infty }}\bigg(\frac{1}{{(5n-4)^{s}}}-\frac{1}{{(5n-3)^{s}}}-\frac{1}{{(5n-2)^{s}}}+\frac{1}{{(5n-1)^{s}}}\bigg).\]
By the joint universality theorem for Dirichlet L-functions, it follows that for any $0<\tau <1$ there are infinitely many zeros of $f(s,\tau )$ in the strip $1/2<\sigma <1$ (see Theorem 2 by Kaczorowski and Kulas, 2007).Let us go with $\tau =3/4$. The 3D visualization in Fig. 8 shows the pattern of intersections of the real (yellow) and the imaginary (red) surfaces of the linear combination (35) (for $(\sigma ,t)\in (-1,2)\times (1.65,1.95)$).
Fig. 8
$\mathrm{\Re }f(s,3/4)$ and $\mathrm{\Im }f(s,3/4)$ surfaces for $(\sigma ,t)\in (-1,2)\times (1.65,1.95)$.
Figure 9 demonstrates the intersections of 3D curves (corresponding the intersections of the real and the imaginary surfaces of the linear combination (35)) with the complex plane in the critical strip $0<\sigma <1$ (while the surfaces themselves are not shown). We can see two pairs of intersections in the critical strip (green) not belonging to the critical line (blue).