Introduction

Zeta functions of various kinds, such as Hurwitz zeta function, Epstein zeta function and Dirichlet \(L\)-function, are all-pervasive objects in modern mathematics, especially in analytical number theory, and among which the prototype zeta function is the famous Riemann zeta function. It is classically defined as the sum of the infinite series [13]

$$\begin{aligned} \zeta (s)=\sum _{n=1}^{\infty }\frac{1}{n^s} \end{aligned}$$
(1)

with the complex variable \(s=\sigma +it\). Specially, the series converges if \(\sigma ={\text {Re}}\,s>1\). We can extend \(\zeta (s)\) from \(s\) with \({\text {Re}}\,s > 1\) to \(s\) with \({\text {Re}}\,(s)>0, s\not =1\) by the following formula

$$\begin{aligned} \eta (s)=\sum _{n=1}^{\infty }\frac{(-1)^{n+1}}{n^s}=\left( 1-2^{1-s}\right) \zeta (s) \end{aligned}$$
(2)

where \(\eta (s)\) is the Dirichlet eta function or alternating eta function.

Historically, people prefer to study the closed form of the Riemann zeta function at positive integer arguments in that those special values seem to dictate the properties of the objects they associated. In condensed matter physics for instance, the famous Sommerfeld expansion, which is useful for the calculation of particle number and internal energy of electrons, involves Riemann zeta function at even integers [4], while the spin–spin correlation functions of isotropic spin-\(1/2\) Heisenberg model are expressed by \(\ln 2\) and Riemann zeta functions with odd-integer arguments [5]. It was, without doubt, a profound discovery of Euler in 1736 to work out the prolonged Basel problem [6]

$$\begin{aligned} \zeta (2)=\frac{{\pi }^2}{6} \end{aligned}$$
(3)

superbly. It is well known that for positive even-integer arguments, the Riemann zeta function can be expressed explicitly as [7]

$$\begin{aligned} \zeta (2n)=\frac{(-1)^{n+1}(2\pi )^{2n}}{2(2n)!}B_{2n} \end{aligned}$$
(4)

in terms of the Bernoulli numbers \(B_{n}\). On the contrary, however, the explicit formula for Riemann zeta function at odd values is difficult if not fundamentally impossible to obtain. Euler himself once conjectured that \(\zeta (2n+1)=c(n)\pi ^{2n+1}\) and \(c\) involve the irrational constant \(\eta (1) = \ln 2\) [8]. This suggests that Riemann zeta function at odd integers produces a recurrence relation that is self-recursive. Even up to now, for positive odd-integer arguments, the Riemann zeta function can only be expressed by series and integral [see (35) and (36) for detail]. One possible integral expression is [9]

$$\begin{aligned} \zeta (2n+1)=\frac{(-1)^{n+1}(2\pi )^{2n+1}}{2(2n+1)!}\int _{0}^{1}B_{2n+1}(x)\cot ({\pi }x)dx \end{aligned}$$
(5)

where \(B_{2n+1}(x)\) are Bernoulli polynomials. A relevant aspect is that, for Riemann zeta function, the celebrated Goldbach–Euler theorem[10] assumes the elegant form

$$\begin{aligned} \sum _{n=2}^{\infty }{\mathbf frac} (\zeta (n))=1, \end{aligned}$$
(6)

where \({\mathbf frac} (x)=x-[x]\) denotes the fractional part of the real number \(x\). It turns out that

$$\begin{aligned} \sum _{n=1}^{\infty }{\mathbf frac} (\zeta (2n))=\frac{3}{4},\sum _{n=1}^{\infty }{\mathbf frac} (\zeta (2n+1))=\frac{1}{4}. \end{aligned}$$
(7)

Indeed, the formulas (4) and (5), along with (7) do reveal somewhat similarity for the values of Riemann zeta function at even and odd arguments. Meanwhile, the calculation of Riemann zeta function and related series is a hot topic in computational mathematics. The traditional methods are Euler–Maclaurin formula and Riemann–Siegel formula, and algorithms are still being developed in earnest ever since [1114]. Typically, a particular numerical method is limited to a special domain. Therefore, when concentrating on Riemann zeta function at odd integers, a special method should be constructed in view of the connection of Riemann zeta function values between odd and even integers.

In this paper, we mainly obtain a recurrence formula (22) relating to the Riemann zeta function and based on which we construct an algorithm for the calculation of the Riemann zeta function at odd integers. In addition, numerical calculation implies that the algorithm can reach considerable accuracies with small odd-integer arguments, not to speak of larger ones. Quantificationally, the behavior of the error bound is \(O(10^{-n})\) where \(n\) is the argument.

Notations and preliminaries

We begin by recalling the definition of the Bernoulli polynomials \(B_{n}(x)\) and their basic properties in a nutshell to render the paper essentially self-contained. The generating function of the Bernoulli polynomials \(B_{n}(x)\) is [13]

$$\begin{aligned} \frac{te^{tx}}{e^t-1}=\sum _{n=0}^{\infty }\frac{B_{n}(x)}{n!}t^n. \end{aligned}$$
(8)

Taking a derivative with respect to \(x\) on both sides of (8), we find that

$$\begin{aligned} B_{n}^{\prime }(x)=nB_{n-1}(x). \end{aligned}$$
(9)

Bernoulli polynomials can also be expressed explicitly from Bernoulli numbers

$$\begin{aligned} B_{n}(x)=\sum _{k=0}^{n}\left( \begin{array}{c} n \\ k\end{array}\right) B_{k}x^{n-k}. \end{aligned}$$
(10)

For convenience, we introduce two kinds of reduced Bernoulli numbers (RBNs), one relates to the even-labeled Bernoulli numbers (denoted by \(+\))

$$\begin{aligned} B_{n}^{+}=(-1)^{n+1}B_{2n}, \end{aligned}$$
(11)

and another relates to the odd-labeled Bernoulli polynomials (denoted by \(-\))

$$\begin{aligned} B_{n}^{-}=(-1)^{n+1}\int _{0}^{1}B_{2n+1}(x)\cot ({\pi }x)dx. \end{aligned}$$
(12)

In this section, we will demonstrate the asymptotic representation of the two kinds of RBNs in a uniform framework and establish their integral representation subsequently.

Asymptotic representations of RBNs

The asymptotic expressions of Bernoulli polynomials at even and odd subscript are, respectively [17]

$$\begin{aligned} (-1)^{n+1}\frac{(2\pi )^{2n}}{2(2n)!}B_{2n}(x){\sim }\cos (2{\pi }x), \end{aligned}$$
(13a)
$$\begin{aligned} (-1)^{n+1}\frac{(2\pi )^{2n+1}}{2(2n+1)!}B_{2n+1}(x){\sim }\sin (2{\pi }x). \end{aligned}$$
(13b)

Moreover, the Bernoulli polynomials can also be expressed in a stronger form based on Fourier sine and cosine series expansion [18]

$$\begin{aligned} B_{2n}(x)=(-1)^{n+1}\frac{2(2n)!}{(2\pi )^{2n}}\sum _{k=1}^{\infty }\frac{\cos (2{\pi }kx)}{k^{2n}}, \end{aligned}$$
(14a)
$$\begin{aligned} B_{2n+1}(x)=(-1)^{n+1}\frac{2(2n+1)!}{(2\pi )^{2n+1}}\sum _{k=1}^{\infty }\frac{\sin (2{\pi }kx)}{k^{2n+1}}. \end{aligned}$$
(14b)

Obviously, (13a, b) is just the corollary of (14a, b). Joining together we, therefore, obtain the asymptotic behavior of RBNs

$$\begin{aligned} B_{n}^{+}=(-1)^{n+1}B_{2n}(0){\sim }\frac{2(2n)!}{(2\pi )^{2n}} \end{aligned}$$
(15a)
$$\begin{aligned} B_{n}^{-}=(-1)^{n+1}\int _{0}^{1}B_{2n+1}(x)\cot ({\pi }x)\mathrm{d}x{\sim }\frac{2(2n+1)!}{(2\pi )^{2n+1}}. \end{aligned}$$
(15b)

where we use the fact that \(\int _{0}^{1}\sin (2{\pi }x)\cot ({\pi }x)\mathrm{d}x=1\).

Integral representations of RBNs

Let us consider two auxiliary integrals [7]

$$\begin{aligned} I_{c}(n,m)=\int _{0}^{1}B_{2n}(t)\cos (m{\pi }t)\mathrm{d}t \end{aligned}$$
(16a)
$$\begin{aligned} I_{s}(n,m)=\int _{0}^{1}B_{2n+1}(t)\sin (m{\pi }t)\mathrm{d}t \end{aligned}$$
(16b)

with \(m\) and \(n\) are integers and \(n\ge 1\). Specially, when \(n=1\), direct computation shows that

$$\begin{aligned} I_{c}(1,m)&=\int _{0}^{1}\Big (t^2-t+\frac{1}{6}\Big )\cos (m{\pi }t)\mathrm{d}t \nonumber \\&=\left\{ \begin{array}{cl} 0, &{} m=1,3,5,\ldots \\ \frac{2!}{(m\pi )^2},&{} m=2,4,6,\ldots \end{array}, \right. \end{aligned}$$
(17a)
$$\begin{aligned} I_{s}(1,m)&=\int _{0}^{1}\left (t^3-\frac{3}{2}t^2+\frac{1}{2}t\right )\sin (m{\pi }t)\mathrm{d}t \nonumber \\&=\left\{ \begin{array}{cl} 0, &{} m=1,3,5,\ldots \\ \frac{3!}{(m\pi )^3}, &{} m=2,4,6,\ldots \end{array}. \right. \end{aligned}$$
(17b)

By virtue of (9) and integrating by parts twice, readily yields

$$\begin{aligned} I_{c}(n,m)=-\frac{(2n)(2n-1)}{(m{\pi })^2}I_{c}(n-1,m) \end{aligned}$$
(18a)
$$\begin{aligned} I_{s}(n,m)=-\frac{(2n+1)(2n)}{(m{\pi })^2}I_{s}(n-1,m). \end{aligned}$$
(18b)

Combining (17a, b) and (18a, b), we find that

$$\begin{aligned} I_{c}(n,m)=\frac{(-1)^{n+1}(2n)!}{(m{\pi })^{2n}} \end{aligned}$$
(19a)
$$\begin{aligned} I_{s}(n,m)=\frac{(-1)^{n+1}(2n+1)!}{(m{\pi })^{2n+1}} \end{aligned}$$
(19b)

hold if \(m\) is even. Immediately, the integral representations of the two RBNs \(B_{n}^{+}\) and \(B_{n}^{-}\) are

$$\begin{aligned} B_{n}^{+}{\sim }2(-1)^{n+1}I_{c}(n,2) \end{aligned}$$
(20a)
$$\begin{aligned} B_{n}^{-}{\sim }2(-1)^{n+1}I_{s}(n,2). \end{aligned}$$
(20b)

Algorithm to calculate the Riemann zeta function

Mathematically, Riemann zeta function is said to be monotonically decreasing since its values are only falling and never rising with increasing values of \(s\) with \(s\ge 2\). Besides, \(\zeta (2)=\frac{\pi ^2}{6}\), \(\zeta (+\infty )>1\), thus \(0<\zeta (s)-1<1\). Analogously, one can show that \(0<\frac{1}{\eta (s)}-1<1\). For brevity, we denote the reciprocal function as below

$$\begin{aligned} \rho (s)\equiv {\mathbf frac} \Big (\frac{1}{\eta (s)}\Big )=\frac{1}{\eta (s)}-1. \end{aligned}$$
(21)

Now that what we concerned most is the values of the Riemann zeta function at integers for the moment, the asymptotic behavior of the ratio of the reciprocal function (21) at odd integers and even integers interests us. Motivated by (6) and (7), we manage to demonstrate a formula, the so-called recurrence formula (not in a strict sense, though), on condition that the argument is a positive integer. Motivated by the recurrence, we manage to construct an algorithm to compute the Riemann zeta function.

Demonstration of the recurrence formula

Theorem 1

If \(n\) is a positive integer such that \(n \ge 1\), the recurrence relation holds

$$\begin{aligned} \lim _{n\rightarrow \infty }\frac{\rho (2n+1)}{\rho (2n)}=\frac{1}{2}. \end{aligned}$$
(22)

Proof

Using (4) and (5) and the definition of reciprocal function (21), we have

$$\begin{aligned} \frac{\rho (2n+1)}{\rho (2n)}=\frac{(2n+1)!-(2^{2n}-1){\pi }^{2n+1}B_{n}^{-}}{(2n)!-(2^{2n-1}-1){\pi }^{2n}B_{n}^{+}}\frac{B_{n}^{+}}{{\pi }B_{n}^{-}}\frac{2^{2n-1}-1}{2^{2n}-1}. \end{aligned}$$
(23)

Since the limitation of the rightmost term is exactly equal to \(1/2\) if \(n\) is large enough, what we want to prove is

$$\begin{aligned} \frac{(2n+1)!-(2^{2n}-1){\pi }^{2n+1}B_{n}^{-}}{(2n)!-(2^{2n-1}-1){\pi }^{2n}B_{n}^{+}}\frac{B_{n}^{+}}{{\pi }B_{n}^{-}}{\sim }1 \end{aligned}$$
(24)

or equivalently

$$\begin{aligned} \frac{(2n+1)!}{{\pi }^{2n+1}}\frac{1}{B_{n}^{-}}-\frac{(2n)!}{{\pi }^{2n}}\frac{1}{B_{n}^{+}}{\sim }2^{2n-1}. \end{aligned}$$
(25)

From the asymptotic formulae (15a) and (b) of the two kinds of RBNs, we find that, without any difficulty, we have finished the demonstration of the recurrence formula of the Riemann zeta function. \(\square \)

As a matter of fact, we can extend the validity of (22) from positive integers to positive real numbers straightforward. We, therefore, can obtain the asymptotic behavior of Riemann zeta function as

$$\begin{aligned} \frac{1}{\zeta (s)}{\sim }\frac{2^{s-1}-1}{2^{2s-3}}\Big (\frac{2}{\zeta (2)}-1\Big )+\frac{2^{s-1}-1}{2^{s-1}}. \end{aligned}$$
(26)

using (22). The application of (26) can be diverse, here we just pick a example relating to prime number theorem. The positive integer \(x\) is \(s\)-free if and only if in the prime factorization of \(x\), no prime number occurs more than \(s-1\). Indeed, if \(Q(x,s)\) denotes the number of \(s\)-free integers (e.g., 2-free integers being square-free integers) between 1 and \(x\), one can show that[19]

$$\begin{aligned} Q(x,s)=\frac{x}{\zeta (s)}+O(\root s \of {x}), \end{aligned}$$
(27)

therefore, we find that the asymptotic density of \(s\)-free integers \(Q(x,s)/x{\sim }\frac{1}{\zeta (s)}\) is nothing but (26).

Another intriguing issue is to what degree can (26) reveals its ability to obtain the \(\zeta \)-values. Figure 1 is thus plotted as follow.

Fig. 1
figure 1

Asymptotic behavior of Riemann zeta function. The solid line represents the approximate values \((\zeta ^{\mathbf {ap}}(s))\) obtained by (26), while the stars represent the accurate values \((\zeta ^{\mathbf {ac}}(s))\) when \(s\) is an integer. The crosses in the inserted figure indicate the base 10 logarithm of the absolute errors(\(\epsilon (s)=\lg \big (\vert {\zeta ^{\mathbf {ap}}(s)-\zeta ^{\mathbf {ac}}(s)}\vert \big )\)) at integers

The fact that all the stars “*” lie on the solid curve indicates that (26) may be a suitable candidate for the calculation of Riemann zeta function. The emergence of the abnormal slope between \(s=3\) and \(s=4\) in the inserted figure, however, implies that any \(\zeta \)-value obtained from its nearest neighbors should be much more accuracy. We, therefore, come up with a satisfactory proposal which is postponed until next subsection.

Basic ideas for the algorithm

Abundant methods to evaluate the \(\zeta (2n)\) have appeared in the mathematical literatures from now and then ever since Euler’s seminal work. In contract, the explicit formula for odd-argument \(\zeta \)-values remains to be an open problem though some results shed light on it [15, 16]. By analogy to \(\zeta (2n)\), several authors have established the series and integral representations of \(\zeta (2n+1)\), which, to some degree, provides some perspectives on the difficulty of evaluating \(\zeta (2n+1)\) as opposed to \(\zeta (2n)\). From the viewpoint of numerical method, one natural way to construct the corresponding algorithm to evaluate the odd-argument Riemann zeta function is by virtue of the even-argument \(\zeta \)-values near to them. In the current paper, only the two nearest \(\zeta \)-values are taken into consideration currently for simplicity. When \(n\) is large enough, (22) can be rewritten as

$$\begin{aligned} \rho ^{l}(2n+1){\sim }\frac{1}{2}\rho (2n) \end{aligned}$$
(28a)
$$\begin{aligned} \rho ^{r}(2n+1){\sim }2\rho (2n+2) \end{aligned}$$
(28b)

where \(\rho ^{l}(2n+1)\) and \(\rho ^{r}(2n+1)\) represent two different representations of the asymptotic behavior of \(\rho (2n+1)\). Judging by appearance, One can use any of the formula above to calculate the Riemann zeta function at odd integers. When considering that those two formulae give the upper and lower bound of the zeta-values at odd integers (see Theorem 2), we come up with the idea that we can combine them together by a special method. It happens to us that there may exist a somewhat mysterious map from \(\zeta (2n)\) and \(\zeta (2n+2)\) to \(\zeta (2n+1)\), which will ensure us to obtain the approximation values of \(\zeta (2n+1)\) with higher precision. Let us give a proposition relating to Dirichlet eta function first before we move forward to give another theorem.

Lemma 1

If \(n\) is a positive integer such that \(n \ge 1\), the two inequalities hold

$$\begin{aligned} \frac{4}{\eta (2n+2)}-\frac{1}{\eta (2n)}>3 \end{aligned}$$
(29)
$$\begin{aligned} \eta (2n)>\frac{2^{2n-1}-2}{2^{2n-1}-1} \end{aligned}$$
(30)

Those two inequalities are quite new to the authors because we have not seen them in any literature or monograph before. However, we are not intended to give the details here since the demonstration is rather elementary. The theorem below holds once we take advantage of Lemma 1.

Theorem 2

If \(n\) is a positive integer such that \(n \ge 1\), the inequality holds

$$\begin{aligned} \zeta ^{l}(2n+1)>\zeta ^{r}(2n+1)>1 \end{aligned}$$
(31)

where \(\zeta ^{l}(2n+1)\) and \(\zeta ^{r}(2n+1)\) correspond to \(\rho ^{l}(2n+1)\) and \(\rho ^{r}(2n+1)\), respectively.

Since Riemann zeta function is a monotonic decreasing function, the exact value \(\zeta (2n+1)\) is just between \(\zeta ^{l}(2n+1)\) and \(\zeta ^{r}(2n+1)\) for any given positive integer \(n\). For the benefit of accuracy, we regard the geometric mean values of (28a) and (b) as the approximate values of the reciprocal function \(\rho (2n+1)\), namely

$$\begin{aligned} \rho (2n+1){\approx }\sqrt{\rho (2n)\rho (2n+2)} \end{aligned}$$
(32)

which is the most valuable ingredient of our algorithm.

The basic steps for the calculation of \(\zeta (2n+1)\) are presented as follow. First, \(\rho (2n)\) and \(\rho (2n+2)\) should be calculated from (4), (2) and (21) in sequence. Second, the value of \(\rho (2n+1)\) is ready to be obtained in light of (32). Lastly, the ultimate aim, i.e., \(\zeta (2n+1)\) is just at hand from (21) and (2), reversely. Our algorithm does not bother circulation of any kind, it just looks like a formula, therefore, we refer it as the direct formula method.

To start our method, we need to know some \(\zeta \)-values at even integers. For example, \(\zeta (2)\) and \(\zeta (4)\) should be available to get \(\zeta (3)\). We can obtain \(\zeta (2n)\) through (4) systematically for small argument. However, it is almost impossible to obtain Bernoulli numbers by the ordinary recursive methods thus we hardly know the values of \(\zeta (2n)\), if the argument is large enough. Many methods for computing Bernoulli numbers have been invented. David Harvey introduced an efficient multimodular algorithm [20] which ensures us to obtain the Bernoulli numbers \(B_n\) at \(n=10^8\). However, one can also use the intrinsic function Zeta[\(s\)] in Mathematica since it is also based on an efficient algorithm. Therefore, for convenience, our computation platform is mainly on Mathematica and we regard those values as benchmarks.

Calculation of Riemann zeta function at odd integers

The calculation of Riemann zeta function plays an essential role in the study of number theory and associated subjects such as statistical physics and condensed matter physics. Various approaches to accomplish this task have been proposed [1113, 21], especially for the evaluation of zeta function at integer arguments or in the critical strip (for the computation of Riemann’s zeros). Most of the methods available consist of using integral forms of some particular functions or recursive series forms. Quite recently, Babolian et al. transform \(\zeta (s)\) to some appropriate integral forms and introduce a method to compute the Riemann zeta function based on Gauss–Hermite and Gauss–Laguerre quadratures [11]. Numerical result shows that 20 points are capable of producing an accuracy of seven-decimal place for small arguments. Besides, many rapidly converging series for \(\zeta (2n+1)\) have been introduced by Srivastava in a review article [13] and by other authors [12, 14]. In this section, we first give some numerical examples according to our method to illustrate its accuracy, then we compare our method to two selected ones to show that our method is especially powerful to calculate the \(\zeta \)-values at large odd-integer arguments.

Numerical test and error bound of the algorithm

We regard the \(\zeta \)-values obtained by Mathematica as benchmarks. The result of the Riemann zeta function at odd integers with \(n=1,2,\ldots ,10\) obtained by our method (approximate value) is presented in Table 1. The accuracy values and the absolute errors are also presented at the same time.

Table 1 Comparison between accurate values \(\zeta ^{\mathbf {ac}}(2n+1)\) and approximate values \(\zeta ^{\mathbf {ac}}(2n+1)\)

Table 1 tells us that, the idea that making the geometric mean instead of any of the upper or lower bound (see Theorem 2) be the best estimate of the Riemann zeta function dramatically reduces errors and satisfactory accuracy such as twelve decimal places in the tenth odd argument of the Riemann zeta function can be achieved. It is interesting to find that only the Apéry’s constant \(\zeta (3)\) sightly larger than the approximate value obtained by our method. It is also funny to see the errors present an upside-down stair configuration, which implies that the error declines about ten times as long as the argument \(n\) increase 1.

In Table 2, we present the absolute errors \( \epsilon (n)\) versus \(n\), for the purpose of exploring the error bound when the argument \(n\) is large enough.

Table 2 The errors of \(\zeta (2n+1)\) based on our method

It is clear that, from Table 2, the error is of the order \(O(10^{-n})\) approximately. Using least square method, we notice that

$$\begin{aligned} \lg (\epsilon (n))=-0.9542n-1.6884. \end{aligned}$$
(33)

This formula suggests that when the argument of Riemann zeta function is large enough, our algorithm should be powerful enough to obtain the \(\zeta \)-values at odd integers.

Comparison with the existed methods

In this subsection, we aim to compare our algorithm with the already existed ones, namely the Gauss–Hermite quadrature (Integral method, see [11], Corollary 3.1) and rapid converging series (Series method, see [13, eq.(3.30)]). The Gauss–Hermite quadrature formula has the form [11]

$$\begin{aligned} \int _{-\infty }^{\infty }f(x)e^{-x^2}\mathrm{{d}}x=\sum _{k=1}^{N}w_{k}f(x_k)+R_N \end{aligned}$$
(34)

where \(x_k\) is one of the zeros of \(H_N(x)\), the Hermite polynomial of degree \(N\), and \(w_k=-\frac{2^{N+1}N!\sqrt{\pi }}{H_N'(x_k)H_{N+1}(x_k)}\) is the corresponding weight. \(R_N=\frac{N!\sqrt{\pi }}{2^{N}(2N)!}f^{2N}(\eta )\),\(\eta \in (-\infty ,\infty )\) is, obviously, the error bound of the above integral. Riemann zeta function is such an amazing function that it can be transformed into [11]

$$\begin{aligned} \zeta (s)=\frac{\int _{-\infty }^{\infty }\left( \vert x\vert ^{2s-1}\mathrm{{e}}^{-x^2}/\big (1-\mathrm{{e}}^{-x^2}\big )\right) \mathrm{{d}}x}{\int _{-\infty }^{\infty }\vert x\vert ^{2s-1}\mathrm{{e}}^{-x^2}\mathrm{{d}}x} \end{aligned}$$
(35)

whose numerator and denominator are of the form presented in (34). Among all the series representations of Riemann zeta function, the series below

$$\begin{aligned}&\zeta (2n+1)=\frac{(-1)^{n-1}(2\pi )^{2n}}{(2n)![2^{2n}(2n-3)-2n+1]}\cdot \nonumber \\&\left[ \sum _{m=1}^{n-1}(-1)^m\left( {\begin{array}{c}2n-1\\ 2m-2\end{array}}\right) \frac{(2m)!(2^{2m}-1)}{(2\pi )^{2m}}\zeta (2m+1)+2\sum _{k=0}^{\infty }\frac{\zeta (2k)}{(2k+2n-1)(k+n)(2k+2n+1)2^{2k}}\right] \end{aligned}$$
(36)

converges most rapidly as pointed out by Srivastava [13]. When \(n=1\) for instance, the error bound \(R_N^{\mathbf{(s)}}\) of the \(N\)-th partial sum of the infinite series in (36) satisfies

$$\begin{aligned}\vert R_N^{\mathbf{(s)}}\vert &=\frac{4\pi ^2}{15}\sum _{k=N+1}^{\infty }\frac{\zeta (2k)}{(2k+1)(k+1)(2k+3)4^{k}}\nonumber \\&<\frac{4\pi ^2}{15}\frac{\zeta (2N+2)}{(2N+3)(N+2)(2N+5)}\sum _{k=N+1}^{\infty }\frac{1}{4^{k}}\nonumber \\&=\frac{4\pi ^2}{45}\frac{1}{(2N+3)(N+2)(2N+5)(4^{N}-\frac{1}{2})} \end{aligned}$$
(37)

where we have used the fact that \(\zeta (s)<\frac{1}{1-2^{1-s}}\) since \(\eta (s)<1\). If \(N=25\), the error bound is \(\vert R_{25}^{\mathbf{(s)}}\vert < 1.0\times 10^{-20}\), which is superior to other rapid series \(\vert R_{25}\vert < 0.9\times 10^{-18}\) as noted in [8, 12]. Specially, when \(N\) is larger than some typical numbers, the asymptotic behavior of (37) reads

$$\begin{aligned} \lg (\vert R_N^{{\mathbf {(s)}}}\vert ) \sim -2\lg 2(N+1)-3\lg N. \end{aligned}$$
(38)

The accuracy of the latter two methods relies on the number of zeros (denoted as \(N_1\)) of the associated polynomial (in this occasion, it is Hermite polynomial) and the terms (denoted as \(N_2\)) of partial sum of the infinite series, respectively. We set two integers to be the same value, i.e., \(N_1=N_2=25\) since the corresponding methods are both efficient as have been declared by many Mathematicians.

Table 3 Errors of three different methods for \(\zeta (2n+1)\)

The behaviors of the error bound of integral method and series method, as can be seen from Table 3, are totally different. When the argument increases, the errors of the former decrease exponential from a high level, while the latter maintain at a nearly constant low level despite of the variation of \(n\). Our method exhibits the worst results for small arguments, but the errors decrease dramatically with argument increasing. It outstrips integration method and series method before \(n=12\) and \(n=21\), respectively. Our method superior to them absolutely afterwards. To reach the accuracy obtained by our method, the number of nodes and terms in the above two methods should be augmented largely. In the series method for instance, the terms of the order \(n\) in the infinity series should be included according to (33) and (38). Obviously, it is almost impossible to carry on within the limited CPU time when \(n\) is an astronomical number.

Conclusion

In summary, we first introduce two kinds of reduced Bernoulli numbers (RBNs) and prove their asymptotic behaviors in an uniform framework, and their series and integral representations are available at the same time. What is more, we discover and prove a recurrence formula (22) of the Riemann zeta function original and construct an algorithm to evaluate the Riemann zeta function at odd integers based on it. The idea of our method is quiet simple, but it turns out to be a competent algorithm. The behavior of the error bound \(\epsilon (n)\) is governed by \(\lg (\epsilon (n))=-0.9542n-1.6884\) or \(\epsilon (n)=O(10^{-n})\) approximately, which, of course, suggests that our method is especially suit for the calculation of \(\zeta \)-values at large odd-integer arguments. Therefore, our results can also work as benchmarks to test the accuracy of other related algorithms. However, more works should be carried on to improve the accuracy at small arguments in future. Remarkably, the recurrence formula (22) is likely to act as a touchstone to explore the closed form of the Riemann zeta function at positive integers since it witnesses the connection between \(\zeta \)-values at odd integers and even integers.