e01.org

Bernoulli number

In mathematics, the Bernoulli numbers are a sequence of rational numbers which occur frequently in analysis. The Bernoulli numbers appear in (and can be defined by) the Taylor series expansions of the tangent and hyperbolic tangent functions, in Faulhaber's formula for the sum of m-th powers of the first n positive integers, in the Euler–Maclaurin formula, and in expressions for certain values of the Riemann zeta function. The values of the first 20 Bernoulli numbers are given in the adjacent table. Two conventions are used in the literature, denoted here by B^{-{}}_n and B^{+{}}_n ; they differ only for , where B^{-{}}_1=-1/2 and B^{+{}}_1=+1/2 . For every odd , . For every even , is negative if is divisible by 4 and positive otherwise. The Bernoulli numbers are special values of the Bernoulli polynomials B_n(x) , with B^{-{}}_n=B_n(0) and B^+_n=B_n(1) . The Bernoulli numbers were discovered around the same time by the Swiss mathematician Jacob Bernoulli, after whom they are...

In mathematics, the Bernoulli numbers are a sequence of rational numbers which occur frequently in analysis. The Bernoulli numbers appear in (and can be defined by) the Taylor series expansions of the tangent and hyperbolic tangent functions, in Faulhaber's formula for the sum of m-th powers of the first n positive integers, in the Euler–Maclaurin formula, and in expressions for certain values of the Riemann zeta function. The values of the first 20 Bernoulli numbers are given in the adjacent table. Two conventions are used in the literature, denoted here by B^{-{}}_n and B^{+{}}_n ; they differ only for , where B^{-{}}_1=-1/2 and B^{+{}}_1=+1/2 . For every odd , . For every even , is negative if is divisible by 4 and positive otherwise. The Bernoulli numbers are special values of the Bernoulli polynomials B_n(x) , with B^{-{}}_n=B_n(0) and B^+_n=B_n(1) . The Bernoulli numbers were discovered around the same time by the Swiss mathematician Jacob Bernoulli, after whom they are named, and independently by Japanese mathematician Seki Takakazu. Seki's discovery was posthumously published in 1712 in his work Katsuyō Sanpō; Bernoulli's, also posthumously, in his Ars Conjectandi of 1713. Ada Lovelace's note G on the Analytical Engine from 1842 describes an algorithm for generating Bernoulli numbers with Babbage's machine; it is disputed whether Lovelace or Babbage developed the algorithm. As a result, the Bernoulli numbers have the distinction of being the subject of the first published complex computer program. ==Notation== The superscript used in this article distinguishes the two sign conventions for Bernoulli numbers. Only the term is affected: with ( / ) is the sign convention prescribed by NIST and many modern textbooks. with ( / ) was used in the older literature, and (since 2022) by Donald Knuth following Peter Luschny's "Bernoulli Manifesto". In the formulas below, one can switch from one sign convention to the other with the relation B_n^{+}=(-1)^n B_n^{-} , or for integer = 2 or greater, simply ignore it. Since for all odd , and many formulas only involve even-index Bernoulli numbers, a few authors write " " instead of . This article does not follow that notation. ==History== \sum n^m = \frac 1{m+1}\left( B_0n^{m+1}-\binom{m+1} 1 B_1 n^m+\binom{m+1} 2B_2n^{m-1}-\cdots +(-1)^m\binom{m+1}mB_mn\right) for all sums of powers. He never mentioned, for example, the fact that almost half of the coefficients turned out to be zero after he had converted his formulas for from polynomials in to polynomials in ." In the above Knuth meant B_1^- ; instead using B_1^+ the formula avoids subtraction: \sum n^m = \frac 1{m+1}\left( B_0n^{m+1}+\binom{m+1} 1 B^+_1 n^m+\binom{m+1} 2B_2n^{m-1}+\cdots+\binom{m+1}mB_mn\right). \sum_{k=1}^n k^c = \frac{n^{c+1}}{c+1}+\frac 1 2 n^c+\sum_{k=2}^c \frac{B_k}{k!} c^{\underline{k-1}}n^{c-k+1}. This formula suggests setting when switching from the so-called 'archaic' enumeration which uses only the even indices 2, 4, 6... to the modern form. Most striking in this context is the fact that the falling factorial has for the value . Thus Bernoulli's formula can be written \sum_{k=1}^n k^c = \sum_{k=0}^c \frac{B_k}{k!}c^{\underline{k-1}} n^{c-k+1} if , recapturing the value Bernoulli gave to the coefficient at that position. The formula for \textstyle \sum_{k=1}^n k^9 on page 97 of Bernoulli's Ars Conjectandi contains an error at the last term; it should be -\tfrac {3}{20}n^2 instead of -\tfrac {1}{12}n^2 . \begin{align} \sum_{k=0}^{m}\binom {m+1} k B^{-{}}_k &= \delta_{m, 0} \\ \sum_{k=0}^{m}\binom {m+1} k B^{+{}}_k &= m+1 \end{align} where m=0,1,2... and denotes the Kronecker delta. The first of these is sometimes written as the formula (for m > 1) (B+1)^m-B_m=0, where the power is expanded formally using the binomial theorem and B^k is replaced by B_k . Solving for B^{\mp{}}_m gives the recursive formulas \begin{align} B_m^{-{}} &= \delta_{m, 0} - \sum_{k=0}^{m-1} \binom{m}{k} \frac{B^{-{}}_k}{m - k + 1} \\ B_m^+ &= 1 - \sum_{k=0}^{m-1} \binom{m}{k} \frac{B^+_k}{m - k + 1}. \end{align} B^-_m &= \sum_{k=0}^m \frac1{k+1} \sum_{j=0}^k \binom{k}{j} (-1)^j j^m \\ B^+_m &= \sum_{k=0}^m \frac1{k+1} \sum_{j=0}^k \binom{k}{j} (-1)^j (j + 1)^m. \end{align} \frac{t}{e^t - 1} &= \frac{t}{2} \left( \operatorname{coth} \frac{t}{2} -1 \right) &&= \sum_{m=0}^\infty \frac{B^{-{}}_m t^m}{m!}\\ \frac{te^t}{e^t - 1} = \frac{t}{1 - e^{-t}} &= \frac{t}{2} \left( \operatorname{coth} \frac{t}{2} +1 \right) &&= \sum_{m=0}^\infty \frac{B^+_m t^m}{m!}. \end{alignat} where the substitution is t \to - t . The arithmetic difference between the generating functions for B^+_m and B^{-}_m is t. If we let F(t)=\sum_{i=1}^\infty f_it^i and G(t)=1/(1+F(t))=\sum_{i=0}^\infty g_it^i then G(t)=1-F(t)G(t). Then g_0=1 and for m>0 the m term in the series for G(t) is: g_mt^m=-\sum_{j=0}^{m-1}f_{m-j}g_jt^m If F(t)=\frac{e^t-1}t-1=\sum_{i=1}^\infty \frac{t^i}{(i+1)!} then we find that G(t)=t/(e^t-1) \begin{align} m!g_m&=-\sum_{j=0}^{m-1}\frac{m!}{j!}\frac{j!g_j}{(m-j+1)!}\\ &=-\frac 1{m+1}\sum_{j=0}^{m-1}\binom{m+1}jj!g_j\\ \end{align} showing that the values of i!g_i obey the recursive formula for the Bernoulli numbers B^-_i . The (ordinary) generating function z^{-1} \psi_1(z^{-1}) = \sum_{m=0}^{\infty} B^+_m z^m is an asymptotic series. It contains the trigamma function . B_{2n} = 4n (-1)^{n+1} \int_0^{\infty} \frac{t^{2n-1}}{e^{2 \pi t} -1 } \mathrm{d} t B_n^+ = -n\, \zeta(1-n) \quad for  . Here the argument of the zeta function is 0 or negative. As \zeta(k) is zero for negative even integers (the trivial zeroes), if n>1 is odd, \zeta(1-n) is zero. By means of the zeta functional equation and the gamma reflection formula the following relation can be obtained: B_{2n} = \frac {(-1)^{n+1}2(2n)!} {(2\pi)^{2n}} \zeta(2n) \quad for integers  . Now the argument of the zeta function is positive. It then follows from ( ) and Stirling's formula that |B_{2 n}| \sim 4 \sqrt{\pi n} \left(\frac{n}{ \pi e} \right)^{2n} \quad for  . Akiyama and Tanigawa give a simple "triangle algorithm" (vis-à-vis Pascal's triangle) for computing the Bernoulli numbers. First let b_{0,m} = \frac{1}{m+1} (for m ≥ 0). Then successive terms in the triangle can be computed with the recurrence relation b_{n+1,m} = (m+1)(b_{n,m} - b_{n,m+1}) The terms b_{n,0} correspond to the th Bernoulli number . Brent and Harvey give several algorithms for computing the Bernoulli numbers, including a simple algorithm that is faster and uses less space than the Akiyama-Tanigawa algorithm. It uses a recurrence to compute the tangent numbers and applies T_n = (-1)^{n-1}2^{2n}(2^{2n}-1)\frac{B_{2n}}{2n} to compute the Bernoulli numbers. This is related to a method given by Knuth and Buckholtz. In some applications it is useful to be able to compute the Bernoulli numbers through modulo , where is a prime; for example to test whether Vandiver's conjecture holds for , or even just to determine whether is an irregular prime. It is not feasible to carry out such a computation using the above recursive formulae, since at least (a constant multiple of) arithmetic operations would be required. Fortunately, faster methods have been developed which require only operations (see big notation). David Harvey describes an algorithm for computing Bernoulli numbers by computing modulo for many small primes , and then reconstructing via the Chinese remainder theorem. Harvey writes that the asymptotic time complexity of this algorithm is and claims that this implementation is significantly faster than implementations based on other methods. Using this implementation Harvey computed for . Harvey's implementation has been included in SageMath since version 3.1. Prior to that, Bernd Kellner computed to full precision for in December 2002 and Oleksandr Pavlyk for with Mathematica in April 2008. * Digits is to be understood as the exponent of 10 when is written as a real number in normalized scientific notation. \sum_{k=a}^{b-1} f(k) = \int_a^b f(x)\,dx + \sum_{k=1}^m \frac{B^-_k}{k!} (f^{(k-1)}(b)-f^{(k-1)}(a))+R_-(f,m). This formulation assumes the convention . Using the convention the formula becomes \sum_{k=a+1}^{b} f(k) = \int_a^b f(x)\,dx + \sum_{k=1}^m \frac{B^+_k}{k!} (f^{(k-1)}(b)-f^{(k-1)}(a))+R_+(f,m). Here f^{(0)}=f (i.e. the zeroth-order derivative of f is just f ). Moreover, let f^{(-1)} denote an antiderivative of f . By the fundamental theorem of calculus, \int_a^b f(x)\,dx = f^{(-1)}(b) - f^{(-1)}(a). Thus the last formula can be further simplified to the following succinct form of the Euler–Maclaurin formula \sum_{k=a+1}^{b} f(k)= \sum_{k=0}^m \frac{B_k}{k!} (f^{(k-1)}(b)-f^{(k-1)}(a))+R(f,m). This form is for example the source for the important Euler–Maclaurin expansion of the zeta function \begin{align} \zeta(s) & =\sum_{k=0}^m \frac{B^+_k}{k!} s^{\overline{k-1}} + R(s,m) \\ & = \frac{B_0}{0!}s^{\overline{-1}} + \frac{B^+_1}{1!} s^{\overline{0}} + \frac{B_2}{2!} s^{\overline{1}} +\cdots+R(s,m) \\ & = \frac{1}{s-1} + \frac{1}{2} + \frac{1}{12}s + \cdots + R(s,m). \end{align} Here denotes the rising factorial power. Bernoulli numbers are also frequently used in other kinds of asymptotic expansions. The following example is the classical Poincaré-type asymptotic expansion of the digamma function . \psi(z) \sim \ln z - \sum_{k=1}^\infty \frac{B^+_k}{k z^k} S_m(n) = \sum_{k=1}^n k^m = 1^m + 2^m + \cdots + n^m. This expression can always be rewritten as a polynomial in of degree . The coefficients of these polynomials are related to the Bernoulli numbers by Bernoulli's formula: S_m(n) = \frac{1}{m + 1} \sum_{k=0}^m \binom{m + 1}{k} B^+_k n^{m + 1 - k} = m! \sum_{k=0}^m \frac{B^+_k n^{m + 1 - k}}{k! (m+1-k)!} , where denotes the binomial coefficient. For example, taking to be 1 gives the triangular numbers . 1 + 2 + \cdots + n = \frac{1}{2} (B_0 n^2 + 2 B^+_1 n^1) = \tfrac12 (n^2 + n). Taking to be 2 gives the square pyramidal numbers . 1^2 + 2^2 + \cdots + n^2 = \frac{1}{3} (B_0 n^3 + 3 B^+_1 n^2 + 3 B_2 n^1) = \tfrac13 \left(n^3 + \tfrac32 n^2 + \tfrac12 n\right). Some authors use the alternate convention for Bernoulli numbers and state Bernoulli's formula in this way: S_m(n) = \frac{1}{m + 1} \sum_{k=0}^m (-1)^k \binom{m + 1}{k} B^{-{}}_k n^{m + 1 - k}. Bernoulli's formula is sometimes called Faulhaber's formula after Johann Faulhaber who also found remarkable ways to calculate sums of powers. Faulhaber's formula was generalized by V. Guo and J. Zeng to a -analog. ===Taylor series=== The Bernoulli numbers appear in the Taylor series expansion of many trigonometric functions and hyperbolic functions. \begin{align} \tan x &= \hphantom \sum_{n=1}^\infty \frac{(-1)^{n-1} 2^{2n} (2^{2n}-1) B_{2n} }{(2n)!}\; x^{2n-1}, && \left|x \right| ===Laurent series=== The Bernoulli numbers appear in the following Laurent series: Digamma function: \psi(z)= \ln z- \sum_{k=1}^\infty \frac {B_k^{+{}}} {k z^k} \textit{ES}_n = (2^{2n-2}-2^{4n-3}) \operatorname{Numerator}\left(\frac{B_{4n}}{4n} \right) . The Hirzebruch signature theorem for the genus of a smooth oriented closed manifold of dimension 4n also involves Bernoulli numbers. W_{n,k}=\sum_{v=0}^k (-1)^{v+k} (v+1)^n {k \choose v}\ . They can also be expressed through the Stirling numbers of the second kind W_{n,k}=k! \left\{ {n+1\atop k+1} \right\}. A Bernoulli number is then introduced as an inclusion–exclusion sum of Worpitzky numbers weighted by the harmonic sequence 1,  ,  , ... B_{n}=\sum_{k=0}^n (-1)^k \frac{W_{n,k}}{k+1}\ =\ \sum_{k=0}^n \frac{1}{k+1} \sum_{v=0}^k (-1)^v (v+1)^n {k \choose v}\ . This representation has . Consider the sequence , . From Worpitzky's numbers , applied to is identical to the Akiyama–Tanigawa transform applied to (see Connection with Stirling numbers of the first kind). This can be seen via the table: The first row represents . Hence for the second fractional Euler numbers ( ) / ( ): A second formula representing the Bernoulli numbers by the Worpitzky numbers is for B_n=\frac n {2^{n+1}-2}\sum_{k=0}^{n-1} (-2)^{-k}\, W_{n-1,k} . The simplified second Worpitzky's representation of the second Bernoulli numbers is: ( ) / ( ) = × ( ) / ( ) which links the second Bernoulli numbers to the second fractional Euler numbers. The beginning is: The numerators of the first parentheses are (see Connection with Stirling numbers of the first kind). x^k=\sum_{m=0}^k {x^{\underline{m}}} S(k,m) where denotes the falling factorial function. The Bernoulli polynomials can be written as: B_k(x)=k\sum_{m=0}^{k-1}\binom{x}{m+1}S(k-1,m)m!+B_k where for are the Bernoulli numbers. The following property of the binomial coefficient: \binom{x}{m}=\binom{x+1}{m+1}-\binom{x}{m+1} thus implies that x^k=\frac{B_{k+1}(x+1)-B_{k+1}(x)}{k+1}. One also has the following for Bernoulli polynomials, B_k(x)=\sum_{n=0}^k \binom{k}{n} B_n x^{k-n}. The coefficient of in is . The coefficient of in the first expression for B_k(x) is k\sum_{m=0}^{k-1}\frac{(-1)^m}{m+1}S(k-1,m)m! whereas in the second expression it is kB_{k-1}. Replacing k-1 by k this yields: B_k=\sum_{m=0}^k (-1)^m \frac{m!}{m+1} S(k,m) (resulting in ) which is an explicit formula for Bernoulli numbers and can be used to prove Von-Staudt Clausen theorem. \frac{1}{m!}\sum_{k=0}^m (-1)^{k} \left[{m+1\atop k+1}\right] B_k = \frac{1}{m+1}, and the inversion of this sum (for , ) \frac{1}{m!}\sum_{k=0}^m (-1)^k \left[{m+1\atop k+1}\right] B_{n+k} = A_{n,m}. Here the number are the rational Akiyama–Tanigawa numbers, the first few of which are displayed in the following table. The Akiyama–Tanigawa numbers satisfy a simple recurrence relation which can be exploited to iteratively compute the Bernoulli numbers. See / . An autosequence is a sequence which has its inverse binomial transform equal to the signed sequence. If the main diagonal is zeroes = , the autosequence is of the first kind. Example: , the Fibonacci numbers. If the main diagonal is the first upper diagonal multiplied by 2, it is of the second kind. Example: / , the second Bernoulli numbers (see ). The Akiyama–Tanigawa transform applied to = 1/ leads to (n) / (n + 1). Hence: See and . ( ) / ( ) are the second (fractional) Euler numbers and an autosequence of the second kind. ( = ) × ( = ) = = . Also valuable for / (see Connection with Worpitzky numbers). ===Connection with Pascal's triangle=== There are formulas connecting Pascal's triangle to Bernoulli numbers B^{+}_n=\frac {(n+1)!}~~~ with row-column definitions [A_n]_{i, k} := \begin{cases} 0 & \text{if } k>1+i \\ {i+1 \choose k-1} & \text{otherwise} \end{cases} where |A_n| is the determinant of a n-by-n Hessenberg matrix part of Pascal's triangle Example: B^{+}_6 =\frac{\begin{vmatrix} 1& 2& 0& 0& 0& 0\\ 1& 3& 3& 0& 0& 0\\ 1& 4& 6& 4& 0& 0\\ 1& 5& 10& 10& 5& 0\\ 1& 6& 15& 20& 15& 6\\ 1& 7& 21& 35& 35& 21 \end{vmatrix}}{7!}=\frac{120}{5040}=\frac 1 {42} \sum_{m=0}^n (-1)^m \left \langle {n\atop m} \right \rangle &= 2^{n+1} (2^{n+1}-1) \frac{B_{n+1}}{n+1}, \\ \sum_{m=0}^n (-1)^m \left \langle {n\atop m} \right \rangle \binom{n}{m}^{-1} &= (n+1) B_n. \end{align} Both formulae are valid for if is set to . If is set to − they are valid only for and respectively. ==A binary tree representation== The Stirling polynomials are related to the Bernoulli numbers by . S. C. Woon described an algorithm to compute as a binary tree: Woon's recursive algorithm (for ) starts by assigning to the root node . Given a node of the tree, the left child of the node is and the right child . A node is written as in the initial part of the tree represented above with ± denoting the sign of . Given a node the factorial of is defined as N! = a_1 \prod_{k=2}^{\operatorname{length}(N)} a_k!. Restricted to the nodes of a fixed tree-level the sum of is , thus B_n = \sum_\stackrel{N \text{ node of}}{\text{ tree-level } n} \frac{n!}{N!}. For example: ==Integral representation and continuation== The integral b(s) = 2e^{s i \pi/2}\int_0^\infty \frac{st^s}{1-e^{2\pi t}} \frac{dt}{t} = \frac{s!}{2^{s-1}}\frac{\zeta(s)}{{ }\pi^s{ }}(-i)^s= \frac{2s!\zeta(s)}{(2\pi i)^s} has as special values for . For example, and . Here, is the Riemann zeta function, and is the imaginary unit. Leonhard Euler (Opera Omnia, Ser. 1, Vol. 10, p. 351) considered these numbers and calculated \begin{align} p &= \frac{3}{2\pi^3}\left(1+\frac{1}{2^3}+\frac{1}{3^3}+\cdots \right) = 0.0581522\ldots \\ q &= \frac{15}{2\pi^5}\left(1+\frac{1}{2^5}+\frac{1}{3^5}+\cdots \right) = 0.0254132\ldots \end{align} Another similar integral representation is b(s) = -\frac{e^{s i \pi/2}}{2^{s}-1}\int_0^\infty \frac{st^{s}}{\sinh\pi t} \frac{dt}{t}= \frac{2e^{s i \pi/2}}{2^{s}-1}\int_0^\infty \frac{e^{\pi t}st^s}{1-e^{2\pi t}} \frac{dt}{t}. B_n &= \sum_{k=0}^{n-1}\binom{n-1}{k} \frac{n}{4^n-2^n}E_k & n&=2, 4, 6, \ldots \\[6pt] E_n &= \sum_{k=1}^n \binom{n}{k-1} \frac{2^k-4^k}{k} B_k & n&=2,4,6,\ldots \end{align} These conversion formulas express a connection between the Bernoulli and the Euler numbers. But more important, there is a deep arithmetic root common to both kinds of numbers, which can be expressed through a more fundamental sequence of numbers, also closely tied to . These numbers are defined for as S_n = 2 \left(\frac{2}{\pi}\right)^n \sum_{k = 0}^\infty \frac{ (-1)^{kn} }{(2k+1)^n} = 2 \left(\frac{2}{\pi}\right)^n \lim_{K\to \infty} \sum_{k = -K}^K (4k+1)^{-n}. The magic of these numbers lies in the fact that they turn out to be rational numbers. This was first proved by Leonhard Euler in a landmark paper De summis serierum reciprocarum (On the sums of series of reciprocals) and has fascinated mathematicians ever since. The first few of these numbers are S_n = 1,1,\frac{1}{2},\frac{1}{3},\frac{5}{24}, \frac{2}{15},\frac{61}{720},\frac{17}{315},\frac{277}{8064},\frac{62}{2835},\ldots ( / ) These are the coefficients in the expansion of . The Bernoulli numbers and Euler numbers can be understood as special views of these numbers, selected from the sequence and scaled for use in special applications. \begin{align} B_{n} &= (-1)^{\left\lfloor \frac{n}{2}\right\rfloor} [ n \text{ even}] \frac{n! }{2^n - 4^n}\, S_{n}\ , & n&= 2, 3, \ldots \\ E_n &= (-1)^{\left\lfloor \frac{n}{2}\right\rfloor} [ n \text{ even}] n! \, S_{n+1} & n &= 0, 1, \ldots \end{align} The expression [ even] has the value 1 if is even and 0 otherwise (Iverson bracket). These identities show that the quotient of Bernoulli and Euler numbers at the beginning of this section is just the special case of when is even. The are rational approximations to and two successive terms always enclose the true value of . Beginning with the sequence starts ( / ): 2, 4, 3, \frac{16}{5}, \frac{25}{8}, \frac{192}{61}, \frac{427}{136}, \frac{4352}{1385}, \frac{12465}{3968}, \frac{158720}{50521},\ldots \quad \longrightarrow \pi. These rational numbers also appear in the last paragraph of Euler's paper cited above. Consider the Akiyama–Tanigawa transform for the sequence ( ) / ( ): From the second, the numerators of the first column are the denominators of Euler's formula. The first column is − × . ==An algorithmic view: the Seidel triangle== The sequence S n has another unexpected yet important property: The denominators of S n+1 divide the factorial . In other words: the numbers , sometimes called Euler zigzag numbers, are integers. T_n = 1,\,1,\,1,\,2,\,5,\,16,\,61,\,272,\,1385,\,7936,\,50521,\,353792,\ldots \quad n=0, 1, 2, 3, \ldots ( ). See ( ). Their exponential generating function is the sum of the secant and tangent functions. \sum_{n=0}^\infty T_n \frac{x^n}{n!} = \tan \left(\frac\pi4 + \frac x2\right) = \sec x + \tan x . Thus the above representations of the Bernoulli and Euler numbers can be rewritten in terms of this sequence as \begin{align} B_n &= (-1)^{\left\lfloor \frac{n}{2}\right\rfloor} [n\text{ even}] \frac{n }{2^n-4^n}\, T_{n-1}\ & n &\geq 2 \\ E_n &= (-1)^{\left\lfloor \frac{n}{2}\right\rfloor} [n\text{ even}] T_{n} & n &\geq 0 \end{align} These identities make it easy to compute the Bernoulli and Euler numbers: the Euler numbers are given immediately by and the Bernoulli numbers are fractions obtained from by some easy shifting, avoiding rational arithmetic. What remains is to find a convenient way to compute the numbers . However, already in 1877 Philipp Ludwig von Seidel published an ingenious algorithm, which makes it simple to calculate . {{image frame|align=none|caption=Seidel's algorithm for |content= \begin{array}{crrrcc} { } & { } & {\color{red}1} & { } & { } & { } \\ { } & {\rightarrow} & {\color{blue}1} & {\color{red}1} & { } \\ { } & {\color{red}2} & {\color{blue}2} & {\color{blue}1} & {\leftarrow} \\ {\rightarrow} & {\color{blue}2} & {\color{blue}4} & {\color{blue}5} & {\color{red}5} \\ {\color{red}16} & {\color{blue}16} & {\color{blue}14} & {\color{blue}10} & {\color{blue}5} & {\leftarrow} \end{array} }} Start by putting 1 in row 0 and let denote the number of the row currently being filled If is odd, then put the number on the left end of the row in the first position of the row , and fill the row from the left to the right, with every entry being the sum of the number to the left and the number to the upper At the end of the row duplicate the last number. If is even, proceed similar in the other direction. Seidel's algorithm is in fact much more general (see the exposition of Dominique Dumont ) and was rediscovered several times thereafter. Similar to Seidel's approach D. E. Knuth and T. J. Buckholtz gave a recurrence equation for the numbers and recommended this method for computing and 'on electronic computers using only simple operations on integers'. V. I. Arnold rediscovered Seidel's algorithm and later Millar, Sloane and Young popularized Seidel's algorithm under the name boustrophedon transform. Triangular form: Only , with one 1, and , with two 1s, are in the OEIS. Distribution with a supplementary 1 and one 0 in the following rows: This is , a signed version of . The main andiagonal is . The main diagonal is . The central column is . Row sums: 1, 1, −2, −5, 16, 61.... See . See the array beginning with 1, 1, 0, −2, 0, 16, 0 below. The Akiyama–Tanigawa algorithm applied to ( ) / ( ) yields: 1. The first column is . Its binomial transform leads to: The first row of this array is . The absolute values of the increasing antidiagonals are . The sum of the antidiagonals is 2. The second column is . Its binomial transform yields: The first row of this array is . The absolute values of the second bisection are the double of the absolute values of the first bisection. Consider the Akiyama-Tanigawa algorithm applied to ( ) / ( ( ) = abs( ( )) + 1 = . The first column whose the absolute values are could be the numerator of a trigonometric function. is an autosequence of the first kind (the main diagonal is ). The corresponding array is: The first two upper diagonals are =  ×  . The sum of the antidiagonals is = 2 ×  (n + 1). − is an autosequence of the second kind, like for instance / . Hence the array: The main diagonal, here , is the double of the first upper one, here . The sum of the antidiagonals is = 2 ×  ( 1).  −  = 2 ×  . ==A combinatorial view: alternating permutations== Around 1880, three years after the publication of Seidel's algorithm, Désiré André proved a now classic result of combinatorial analysis. Looking at the first terms of the Taylor expansion of the trigonometric functions and , André made a discovery. \begin{align} \tan x &= x + \frac{2x^3}{3!} + \frac{16x^5}{5!} + \frac{272x^7}{7!} + \frac{7936x^9}{9!} + \cdots\\[6pt] \sec x &= 1 + \frac{x^2}{2!} + \frac{5x^4}{4!} + \frac{61x^6}{6!} + \frac{1385x^8}{8!} + \frac{50521x^{10}}{10!} + \cdots \end{align} The coefficients are the Euler zigzag numbers of odd and even index, respectively. In consequence the ordinary expansion of has as coefficients the rational numbers . \tan x + \sec x = 1 + x + \tfrac{1}{2}x^2 + \tfrac{1}{3}x^3 + \tfrac{5}{24}x^4 + \tfrac{2}{15}x^5 + \tfrac{61}{720}x^6 + \cdots André then succeeded by means of a recurrence argument to show that the alternating permutations of odd size are enumerated by the Euler numbers of odd index (also called tangent numbers) and the alternating permutations of even size by the Euler numbers of even index (also called secant numbers). ==Related sequences== The arithmetic mean of the first and the second Bernoulli numbers are the associate Bernoulli numbers: , , , , , / . Via the second row of its inverse Akiyama–Tanigawa transform , they lead to Balmer series / . The Akiyama–Tanigawa algorithm applied to ( ) / ( ) leads to the Bernoulli numbers / , / , or without , named intrinsic Bernoulli numbers . Hence another link between the intrinsic Bernoulli numbers and the Balmer series via ( ). ( ) = 0, 2, 1, 6,... is a permutation of the non-negative numbers. The terms of the first row are f(n) = . 2, f(n) is an autosequence of the second kind. 3/2, f(n) leads by its inverse binomial transform to 3/2 −1/2 1/3 −1/4 1/5 ... = 1/2 + log 2. Consider g(n) = 1/2 – 1 / (n+2) = 0, 1/6, 1/4, 3/10, 1/3. The Akiyama-Tanagiwa transforms gives: 0, g(n), is an autosequence of the second kind. Euler ( ) / ( ) without the second term ( ) are the fractional intrinsic Euler numbers The corresponding Akiyama transform is: The first line is . preceded by a zero is an autosequence of the first kind. It is linked to the Oresme numbers. The numerators of the second line are preceded by 0. The difference table is: ==Arithmetical properties of the Bernoulli numbers== The Bernoulli numbers can be expressed in terms of the Riemann zeta function as for integers provided for the expression is understood as the limiting value and the convention is used. This intimately relates them to the values of the zeta function at negative integers. As such, they could be expected to have and do have deep arithmetical properties. For example, the Agoh–Giuga conjecture postulates that is a prime number if and only if is congruent to −1 modulo . Divisibility properties of the Bernoulli numbers are related to the ideal class groups of cyclotomic fields by a theorem of Kummer and its strengthening in the Herbrand-Ribet theorem, and to class numbers of real quadratic fields by Ankeny–Artin–Chowla. === -adic continuity=== If , and are positive integers such that and are not divisible by and , then (1-p^{m-1})\frac{B_m}{m} \equiv (1-p^{n-1})\frac{B_n} n \pmod{p^b}. Since , this can also be written \left(1-p^{-u}\right)\zeta(u) \equiv \left(1-p^{-v}\right)\zeta(v) \pmod{p^b}, where and , so that and are nonpositive and not congruent to 1 modulo . This tells us that the Riemann zeta function, with taken out of the Euler product formula, is continuous in the -adic numbers on odd negative integers congruent modulo to a particular , and so can be extended to a continuous function for all -adic integers \mathbb{Z}_p, the -adic zeta function. \binom{m+3}{m} B_m=\begin{cases} \frac{m+3}{3}-\sum\limits_{j=1}^\frac{m}{6}\binom{m+3}{m-6j}B_{m-6j}, & \text{if } m\equiv 0\pmod 6;\\ \frac{m+3}{3}-\sum\limits_{j=1}^\frac{m-2}{6}\binom{m+3}{m-6j}B_{m-6j}, & \text{if } m\equiv 2\pmod 6;\\ -\frac{m+3}{6}-\sum\limits_{j=1}^\frac{m-4}{6}\binom{m+3}{m-6j}B_{m-6j}, & \text{if } m\equiv 4\pmod 6.\end{cases} \varphi_k(n) = \sum_{i=0}^n i^k - \frac{n^k} 2 can be evaluated for negative values of the index . Doing so will show that it is an odd function for even values of , which implies that the sum has only terms of odd index. This and the formula for the Bernoulli sum imply that is 0 for even and ; and that the term for is cancelled by the subtraction. The von Staudt–Clausen theorem combined with Worpitzky's representation also gives a combinatorial answer to this question (valid for n > 1). From the von Staudt–Clausen theorem it is known that for odd the number is an integer. This seems trivial if one knows beforehand that the integer in question is zero. However, by applying Worpitzky's representation one gets 2B_n =\sum_{m=0}^n (-1)^m \frac{2}{m+1}m! \left\{{n+1\atop m+1} \right\} = 0\quad(n>1 \text{ is odd}) as a sum of integers, which is not trivial. Here a combinatorial fact comes to surface which explains the vanishing of the Bernoulli numbers at odd index. Let be the number of surjective maps from to , then . The last equation can only hold if \sum_{\text{odd }m=1}^{n-1} \frac 2 {m^2}S_{n,m}=\sum_{\text{even } m=2}^n \frac{2}{m^2} S_{n,m} \quad (n>2 \text{ is even}). This equation can be proved by induction. The first two examples of this equation are , . Thus the Bernoulli numbers vanish at odd index because some non-obvious combinatorial identities are embodied in the Bernoulli numbers. R(x) = 2 \sum_{k=1}^\infty \frac{k^{\overline{k}} x^{k}}{(2\pi)^{2k}\left(\frac{B_{2k}}{2k}\right)} = 2\sum_{k=1}^\infty \frac{k^{\overline{k}}x^k}{(2\pi)^{2k}\beta_{2k}}. denotes the rising factorial power in the notation of D. E. Knuth. The numbers occur frequently in the study of the zeta function and are significant because is a -integer for primes where does not divide . The are called divided Bernoulli numbers. == Generalized Bernoulli numbers== The generalized Bernoulli numbers are certain algebraic numbers, defined similarly to the Bernoulli numbers, that are related to special values of Dirichlet -functions in the same way that Bernoulli numbers are related to special values of the Riemann zeta function. Let be a Dirichlet character modulo . The generalized Bernoulli numbers attached to are defined by \sum_{a=1}^f \chi(a) \frac{te^{at}}{e^{ft}-1} = \sum_{k=0}^\infty B_{k,\chi}\frac{t^k}{k!}. Apart from the exceptional , we have, for any Dirichlet character , that if . Generalizing the relation between Bernoulli numbers and values of the Riemann zeta function at non-positive integers, one has the for all integers : L(1-k,\chi)=-\frac{B_{k,\chi}}k, where is the Dirichlet -function of . ===Eisenstein–Kronecker number=== Eisenstein–Kronecker numbers are an analogue of the generalized Bernoulli numbers for imaginary quadratic fields. They are related to critical L-values of Hecke characters. ==Appendix== |1 = Umbral calculus gives a compact form of Bernoulli's formula, by using an abstract symbol , S_m(n) = \frac 1 {m+1} ((\mathbf{B} + n)^{m+1} - B_{m+1}), where the symbol that appears during binomial expansion of the parenthesized term is to be replaced by the Bernoulli number (and ). More suggestively and mnemonically, this may be written as S_m(n) = \int_0^n (\mathbf{B}+x)^m\,dx. Other Bernoulli identities can be written compactly with this symbol. For example, (1-2\mathbf{B})^m = (2-2^m) B_m. |2 = Let be non-negative and even. Then \zeta(n) = \frac{(-1)^{\frac{n}{2} - 1} B_n (2\pi)^n}{2(n!)}. |3 = The th cumulant of the uniform probability distribution on the interval [−1, 0] is . |4 = For , is given by the determinant of an matrix. Namely, B_n = n! \begin{vmatrix} 1 & 0 & \cdots & 0 & 1 \\ \frac{1}{2!} & 1 & \cdots & 0 & 0 \\ \vdots & \vdots & \ddots & \vdots & \vdots \\ \frac{1}{n!} & \frac{1}{(n-1)!} & \cdots & 1 & 0 \\ \frac{1}{(n+1)!} & \frac{1}{n!} & \cdots & \frac{1}{2!} & 0 \end{vmatrix}. So, the determinant is , the Stirling polynomial at . |5 = The even-numbered Bernoulli number is given by the determinant of an matrix. Namely, B_{2n} = -\frac{(2n)!}{2^{2n} - 2} \begin{vmatrix} 1 & 0 & 0 & \cdots & 0 & 1 \\ \frac{1}{3!} & 1 & 0 & \cdots & 0 & 0 \\ \frac{1}{5!} & \frac{1}{3!} & 1 & \cdots & 0 & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots& \vdots \\ \frac{1}{(2n+1)!} & \frac{1}{(2n-1)!} & \frac{1}{(2n-3)!} &\cdots & \frac{1}{3!} & 0 \end{vmatrix}. |6 = Let . Then \frac{1}{n} \sum_{k=1}^n \binom{n}{k}B_k B_{n-k}+B_{n-1}=-B_n. |7 = Let . Then \sum_{k=0}^n \binom{n+1}k (n+k+1)B_{n+k}=0. |8 = Let . Then (Leopold Kronecker 1883) B_n = - \sum_{k=1}^{n+1} \frac{(-1)^k}{k} \binom{n+1}{k} \sum_{j=1}^k j^n. |9 = Let and . Then (-1)^m \sum_{r=0}^m \binom{m}{r} B_{n+r}=(-1)^n \sum_{s=0}^n \binom{n}{s} B_{m+s}. |10 = Let and denote the th harmonic number, that is, H_n=\sum_{k=1}^n k^{-1}. Then (H. Miki 1978) \frac{n}{2}\sum_{k=2}^{n-2}\frac{B_{n-k}}{n-k}\frac{B_k}{k} - \sum_{k=2}^{n-2} \binom{n}{k}\frac{B_{n-k}}{n-k} B_k =H_n B_n. |11 = Let . Then (Yuri Matiyasevich 1997) (n+2)\sum_{k=2}^{n-2}B_k B_{n-k}-2\sum_{l=2}^{n-2}\binom{n+2}{l} B_l B_{n-l}=n(n+1)B_n. |12 = The Faber–Pandharipande–Zagier–Gessel identity states that for , \frac{n}{2}\left(B_{n-1}(x)+\sum_{k=1}^{n-1}\frac{B_{k}(x)}{k} \frac{B_{n-k}(x)}{n-k}\right) -\sum_{k=0}^{n-1}\binom{n}{k}\frac{B_{n-k}} {n-k} B_k(x) =H_{n-1}B_n(x). Choosing or results in the Bernoulli number identity. |13 = For if , or if , \sum_{k=0}^n \binom{n}{k} \frac{B_k}{n-k+2} = \frac{B_{n+1}}{n+1}. |14 = Let . Then -1 + \sum_{k=0}^n \binom{n}{k} \frac{2^{n-k+1}}{n-k+1}B_k(1) = 2^n and -1 + \sum_{k=0}^n \binom{n}{k} \frac{2^{n-k+1}}{n-k+1}B_{k}(0) = \delta_{n,0}. |15 = A reciprocity relation of M. B. Gelfand states that (-1)^{m+1} \sum_{j=0}^k \binom{k}{j} \frac{B_{m+1+j}}{m+1+j} + (-1)^{k+1} \sum_{j=0}^m \binom{m}{j}\frac{B_{k+1+j}}{k+1+j} = \frac{k!m!}{(k+m+1)!}. }} ==External links== The first 498 Bernoulli Numbers from Project Gutenberg A multimodular algorithm for computing Bernoulli numbers The Bernoulli Number Page Bernoulli number programs at LiteratePrograms

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Bernoulli number". 1790866959. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377868864

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·