Bernoulli number

In mathematics, the Bernoulli numbers $B± n$ 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 $B_{n}$, where $$B^{-{}}_1=-1/2$$ and $$B^{+{}}_1=+1/2$$. For every odd $n = 1$, $n > 1$. For every even $B_{n} = 0$, $n > 0$ is negative if $B_{n}$ 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 prepared by Babbage for generating Bernoulli numbers with Babbage's machine. As a result, the Bernoulli numbers have the distinction of being the subject of the first published complex computer program.

Notation
The superscript $n$ used in this article distinguishes the two sign conventions for Bernoulli numbers. Only the $±$ term is affected:
 * $n = 1$ with $B− n$ ( / ) is the sign convention prescribed by NIST and most modern textbooks.
 * $B− 1 = −1⁄2$ with $B+ n$ ( / ) 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 $n$ = 2 or greater, simply ignore it.

Since $B+ 1 = +1⁄2$ for all odd $Bn = 0$, and many formulas only involve even-index Bernoulli numbers, a few authors write "$n > 1$" instead of $Bn$. This article does not follow that notation.

Early history
The Bernoulli numbers are rooted in the early history of the computation of sums of integer powers, which have been of interest to mathematicians since antiquity.



Methods to calculate the sum of the first $1⁄2$ positive integers, the sum of the squares and of the cubes of the first $1⁄6$ positive integers were known, but there were no real 'formulas', only descriptions given entirely in words. Among the great mathematicians of antiquity to consider this problem were Pythagoras (c. 572–497 BCE, Greece), Archimedes (287–212 BCE, Italy), Aryabhata (b. 476, India), Abu Bakr al-Karaji (d. 1019, Persia) and Abu Ali al-Hasan ibn al-Hasan ibn al-Haytham (965–1039, Iraq).

During the late sixteenth and early seventeenth centuries mathematicians made significant progress. In the West Thomas Harriot (1560–1621) of England, Johann Faulhaber (1580–1635) of Germany, Pierre de Fermat (1601–1665) and fellow French mathematician Blaise Pascal (1623–1662) all played important roles.

Thomas Harriot seems to have been the first to derive and write formulas for sums of powers using symbolic notation, but even he calculated only up to the sum of the fourth powers. Johann Faulhaber gave formulas for sums of powers up to the 17th power in his 1631 Academia Algebrae, far higher than anyone before him, but he did not give a general formula.

Blaise Pascal in 1654 proved Pascal's identity relating the sums of the $B2n$th powers of the first $p$ positive integers for $n$.

The Swiss mathematician Jakob Bernoulli (1654–1705) was the first to realize the existence of a single sequence of constants $p = 0, 1, 2, ..., k$ which provide a uniform formula for all sums of powers.

The joy Bernoulli experienced when he hit upon the pattern needed to compute quickly and easily the coefficients of his formula for the sum of the $1⁄30$th powers for any positive integer $B_{0}, B_{1}, B_{2},...$ can be seen from his comment. He wrote:


 * "With the help of this table, it took me less than half of a quarter of an hour to find that the tenth powers of the first 1000 numbers being added together will yield the sum 91,409,924,241,424,243,424,241,924,242,500."

Bernoulli's result was published posthumously in Ars Conjectandi in 1713. Seki Takakazu independently discovered the Bernoulli numbers and his result was published a year earlier, also posthumously, in 1712. However, Seki did not present his method as a formula based on a sequence of constants.

Bernoulli's formula for sums of powers is the most useful and generalizable formulation to date. The coefficients in Bernoulli's formula are now called Bernoulli numbers, following a suggestion of Abraham de Moivre.

Bernoulli's formula is sometimes called Faulhaber's formula after Johann Faulhaber who found remarkable ways to calculate sum of powers but never stated Bernoulli's formula. According to Knuth a rigorous proof of Faulhaber's formula was first published by Carl Jacobi in 1834. Knuth's in-depth study of Faulhaber's formula concludes (the nonstandard notation on the LHS is explained further on):


 * "Faulhaber never discovered the Bernoulli numbers; i.e., he never realized that a single sequence of constants $c$ ... would provide a uniform
 * $\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 $B_{0}, B_{1}, B_{2},$ from polynomials in $1⁄42$ to polynomials in $1⁄30$."

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). $

Reconstruction of "Summae Potestatum"


The Bernoulli numbers (n)/(n) were introduced by Jakob Bernoulli in the book Ars Conjectandi published posthumously in 1713 page 97. The main formula can be seen in the second half of the corresponding facsimile. The constant coefficients denoted $Σ n^{m}$, $A$, $B$ and $C$ by Bernoulli are mapped to the notation which is now prevalent as $D$, $A = B_{2}$, $B = B_{4}$, $C = B_{6}$. The expression $D = B_{8}$ means $c·c−1·c−2·c−3$ – the small dots are used as grouping symbols. Using today's terminology these expressions are falling factorial powers $c·(c−1)·(c−2)·(c−3)$. The factorial notation $c^$ as a shortcut for $k!$ was not introduced until 100 years later. The integral symbol on the left hand side goes back to Gottfried Wilhelm Leibniz in 1675 who used it as a long letter $1 × 2 × ... × k$ for "summa" (sum). The letter $S$ on the left hand side is not an index of summation but gives the upper limit of the range of summation which is to be understood as $n$. Putting things together, for positive $1, 2, ..., n$, today a mathematician is likely to write Bernoulli's formula as:


 * $$ \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 $c$ when switching from the so-called 'archaic' enumeration which uses only the even indices 2, 4, 6... to the modern form (more on different conventions in the next paragraph). Most striking in this context is the fact that the falling factorial $B_{1} = 1⁄2$ has for $c^$ the value $k = 0$. 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 $1⁄c + 1$, recapturing the value Bernoulli gave to the coefficient at that position.

The formula for $$\textstyle \sum_{k=1}^n k^9$$ in the first half of the quotation by Bernoulli above contains an error at the last term; it should be $$-\tfrac {3}{20}n^2$$ instead of $$-\tfrac {1}{12}n^2$$.

Definitions
Many characterizations of the Bernoulli numbers have been found in the last 300 years, and each could be used to introduce these numbers. Here only four of the most useful ones are mentioned:


 * a recursive equation,
 * an explicit formula,
 * a generating function,
 * an integral expression.

For the proof of the equivalence of the four approaches.

Recursive definition
The Bernoulli numbers obey the sum formulas
 * $$ \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 $B_{1} = 1/2$ denotes the Kronecker delta. 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}$$

Explicit definition
In 1893 Louis Saalschütz listed a total of 38 explicit formulas for the Bernoulli numbers, usually giving some reference in the older literature. One of them is (for $$m\geq 1$$):
 * $$\begin{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}$$

Generating function
The exponential generating functions are
 * $$\begin{alignat}{3}

\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{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$$.

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$5⁄66$ term in the series for $$G(t)$$ is:


 * $$g_mt^i=-\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 $δ$.

Integral Expression
From the generating functions above, one can obtain the following integral formula for the even Bernoulli numbers:


 * $$B_{2n} = 4n (-1)^{n+1} \int_0^{\infty} \frac{t^{2n-1}}{e^{2 \pi t} -1 } \mathrm{d} t $$

Bernoulli numbers and the Riemann zeta function


The Bernoulli numbers can be expressed in terms of the Riemann zeta function:


 * $ψ_{1}$          for $B+ n = −nζ(1 − n)$.

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 $n ≥ 1$.

Now the argument of the zeta function is positive.

It then follows from $n ≥ 1$ ($&zeta; &rarr; 1$) and Stirling's formula that
 * $$ |B_{2 n}| \sim 4 \sqrt{\pi n} \left(\frac{n}{ \pi e} \right)^{2n} \quad $$ for $n &rarr; &infin;$.

Efficient computation of Bernoulli numbers
In some applications it is useful to be able to compute the Bernoulli numbers $n &rarr; &infin;$ through $B_{0}$ modulo $691⁄2730$, where $7⁄6$ is a prime; for example to test whether Vandiver's conjecture holds for $3617⁄510$, or even just to determine whether $43867⁄798$ 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) $B_{p − 3}$ arithmetic operations would be required. Fortunately, faster methods have been developed which require only $p^{2}$ operations (see big $174611⁄330$ notation).

David Harvey describes an algorithm for computing Bernoulli numbers by computing $O(p (log p)^{2})$ modulo $n$ for many small primes $n$, and then reconstructing $B_{n}$ via the Chinese remainder theorem. Harvey writes that the asymptotic time complexity of this algorithm is $B_{n}$ and claims that this implementation is significantly faster than implementations based on other methods. Using this implementation Harvey computed $O(n^{2} log(n)^{2 + ε})$ for $B_{n}$. Harvey's implementation has been included in SageMath since version 3.1. Prior to that, Bernd Kellner computed $n = 10^{8}$ to full precision for $B_{n}$ in December 2002 and Oleksandr Pavlyk for $n = 10^{6}$ with Mathematica in April 2008.


 * {| class="wikitable defaultright col1left"

! Computer !! Year !! n !! Digits*
 * J. Bernoulli || ~1689 || 10 || 1
 * L. Euler || 1748 || 30 || 8
 * J. C. Adams || 1878 || 62 || 36
 * D. E. Knuth, T. J. Buckholtz || 1967 || $n$ || $c$
 * G. Fee, S. Plouffe || 1996 || $N$ || $n$
 * G. Fee, S. Plouffe || 1996 || $th$ || $p$
 * B. C. Kellner || 2002 || $p$ || $p$
 * O. Pavlyk || 2008 || $p$ || $O$
 * D. Harvey || 2008 || $p$ || $p$
 * }
 * * Digits is to be understood as the exponent of 10 when $n = 10^{7}$ is written as a real number in normalized scientific notation.
 * G. Fee, S. Plouffe || 1996 || $1,672$ || $3,330$
 * B. C. Kellner || 2002 || $10,000$ || $27,677$
 * O. Pavlyk || 2008 || $100,000$ || $376,755$
 * D. Harvey || 2008 || $1,000,000$ || $4,767,529$
 * }
 * * Digits is to be understood as the exponent of 10 when $B_{n}$ is written as a real number in normalized scientific notation.
 * D. Harvey || 2008 || $10,000,000$ || $57,675,260$
 * }
 * * Digits is to be understood as the exponent of 10 when $B− 1 = −1⁄2$ is written as a real number in normalized scientific notation.

A possible algorithm for computing Bernoulli numbers in the Julia programming language is given by

Asymptotic analysis
Arguably the most important application of the Bernoulli numbers in mathematics is their use in the Euler–Maclaurin formula. Assuming that $100,000,000$ is a sufficiently often differentiable function the Euler–Maclaurin formula can be written as


 * $$\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 $B+ 1 = +1⁄2$. Using the convention $s^{\overline{k}}|undefined$ 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 $m$.


 * $$\psi(z) \sim \ln z - \sum_{k=1}^\infty \frac{B^+_k}{k z^k} $$

Sum of powers
Bernoulli numbers feature prominently in the closed form expression of the sum of the $n$th powers of the first $m, n ≥ 0$ positive integers. For $n$ define


 * $$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 $m + 1$ of degree $( m + 1 k )$. 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 $m$ denotes the binomial coefficient.

For example, taking $0, 1, 3, 6, ...$ to be 1 gives the triangular numbers $m$.


 * $$ 1 + 2 + \cdots + n = \frac{1}{2} (B_0 n^2 + 2 B^+_1 n^1) = \tfrac12 (n^2 + n).$$

Taking $0, 1, 5, 14, ...$ to be 2 gives the square pyramidal numbers $(4n − 1)$.


 * $$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 $676,752,569$-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| < \frac \pi 2. \\ \cot x &= {1\over x} \sum_{n=0}^\infty \frac{(-1)^n B_{2n} (2x)^{2n}}{(2n)!}, & 0 < & |x| < \pi. \\ \tanh x &= \hphantom \sum_{n=1}^\infty \frac{2^{2n}(2^{2n}-1)B_{2n}}{(2n)!}\;x^{2n-1}, && |x| < \frac \pi 2. \\ \coth x &= {1\over x} \sum_{n=0}^\infty \frac{B_{2n} (2x)^{2n}}{(2n)!}, & 0 < & |x| < \pi. \end{align}$$

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} $$

Use in topology
The Kervaire–Milnor formula for the order of the cyclic group of diffeomorphism classes of exotic $ES_{n}$-spheres which bound parallelizable manifolds involves Bernoulli numbers. Let $n ≥ 2$ be the number of such exotic spheres for $n!$, then


 * $$\textit{ES}_n = (2^{2n-2}-2^{4n-3}) \operatorname{Numerator}\left(\frac{B_{4n}}{4n} \right) .$$

The Hirzebruch signature theorem for the $f$ genus of a smooth oriented closed manifold of dimension 4n also involves Bernoulli numbers.

Connections with combinatorial numbers
The connection of the Bernoulli number to various kinds of combinatorial numbers is based on the classical theory of finite differences and on the combinatorial interpretation of the Bernoulli numbers as an instance of a fundamental combinatorial principle, the inclusion–exclusion principle.

Connection with Worpitzky numbers
The definition to proceed with was developed by Julius Worpitzky in 1883. Besides elementary arithmetic only the factorial function $k^{m}$ and the power function $B_{0} = 1$ is employed. The signless Worpitzky numbers are defined as


 * $$ W_{n,k}=\sum_{v=0}^k (-1)^{v+k} (v+1)^n \frac{k!}{v!(k-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, $q$, $L$, ...


 * $$ 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 $B_{1} = 1 − 1⁄2$.

Consider the sequence $B_{2} = 1 − 3⁄2 + 2⁄3$, $B_{3} = 1 − 7⁄2 + 12⁄3 − 6⁄4$. From Worpitzky's numbers, applied to $B_{4} = 1 − 15⁄2 + 50⁄3 − 60⁄4 + 24⁄5$ is identical to the Akiyama–Tanigawa transform applied to $B_{5} = 1 − 31⁄2 + 180⁄3 − 390⁄4 + 360⁄5 − 120⁄6$ (see Connection with Stirling numbers of the first kind). This can be seen via the table:


 * {| style="text-align:center"


 * + Identity of Worpitzky's representation and Akiyama–Tanigawa transform
 * 1|| || || || || ||0||1|| || || || ||0||0||1|| || || ||0||0||0||1|| || ||0||0||0||0||1||
 * 1||−1|| || || || ||0||2||−2|| || || ||0||0||3||−3|| || ||0||0||0||4||−4|| || || || || || ||
 * 1||−3||2|| || || ||0||4||−10||6|| || ||0||0||9||−21||12|| || || || || || || || || || || || ||
 * 1||−7||12||−6|| || ||0||8||−38||54||−24|| || || || || || || || || || || || || || || || || || ||
 * 1||−15||50||−60||24|| || || || || || || || || || || || || || || || || || || || || || || || ||
 * }
 * 1||−7||12||−6|| || ||0||8||−38||54||−24|| || || || || || || || || || || || || || || || || || ||
 * 1||−15||50||−60||24|| || || || || || || || || || || || || || || || || || || || || || || || ||
 * }
 * 1||−15||50||−60||24|| || || || || || || || || || || || || || || || || || || || || || || || ||
 * }
 * }

The first row represents $B_{6} = 1 − 63⁄2 + 602⁄3 − 2100⁄4 + 3360⁄5 − 2520⁄6 + 720⁄7$.

Hence for the second fractional Euler numbers ($B+ 1 = +1⁄2$) /  ($s_{n}$):



A second formula representing the Bernoulli numbers by the Worpitzky numbers is for $n ≥ 0$


 * $$ 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:

($s_{0}, s_{0}, s_{1}, s_{0}, s_{1}, s_{2}, s_{0}, s_{1}, s_{2}, s_{3}, ...$) / ($s_{n}$) = $s_{0}, s_{1}, s_{2}, s_{3}, s_{4}$ × ($n$) / ($n + 1$)

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).

Connection with Stirling numbers of the second kind
If one defines the Bernoulli polynomials $E_{0} = 1$ as:


 * $$ B_k(j)=k\sum_{m=0}^{k-1}\binom{j}{m+1}S(k-1,m)m!+B_k $$

where $E_{1} = 1 − 1⁄2$ for $E_{2} = 1 − 3⁄2 + 2⁄4$ are the Bernoulli numbers.

One also has the following for Bernoulli polynomials,


 * $$ B_k(j)=\sum_{n=0}^k \binom{k}{n} B_n j^{k-n}. $$

The coefficient of $1⁄2$ in $E_{3} = 1 − 7⁄2 + 12⁄4 − 6⁄8$ is $E_{4} = 1 − 15⁄2 + 50⁄4 − 60⁄8 + 24⁄16$.

Comparing the coefficient of $1⁄3$ in the two expressions of Bernoulli polynomials, one has:


 * $$ B_k=\sum_{m=0}^{k-1} (-1)^m \frac{m!}{m+1} S(k-1,m)$$

(resulting in $E_{5} = 1 − 31⁄2 + 180⁄4 − 390⁄8 + 360⁄16 − 120⁄32$) which is an explicit formula for Bernoulli numbers and can be used to prove Von-Staudt Clausen theorem.

Connection with Stirling numbers of the first kind
The two main formulas relating the unsigned Stirling numbers of the first kind $E_{6} = 1 − 63⁄2 + 602⁄4 − 2100⁄8 + 3360⁄16 − 2520⁄32 + 720⁄64$ to the Bernoulli numbers (with $n ≥ 1$) are


 * $$ \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 $n + 1$, $n + 1$)


 * $$ \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 $n + 1⁄2^{n + 2} − 2$ are the rational Akiyama–Tanigawa numbers, the first few of which are displayed in the following table.


 * {| class="wikitable" style="text-align:center"

! !!0!!1!!2!!3!!4 ! 0 ! 1 ! 2 ! 3 ! 4
 * + Akiyama–Tanigawa number
 * 1 || $j$ || $j$ || $n$ || $m$
 * 0 || $1⁄2$ || ... || ... || ...
 * }
 * }

The Akiyama–Tanigawa numbers satisfy a simple recurrence relation which can be exploited to iteratively compute the Bernoulli numbers. This leads to the algorithm shown in the section 'algorithmic description' above. 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 $n$ = 1/ leads to (n) /  (n + 1). Hence:


 * {| class="wikitable" style="text-align:center"

! !! 0 !! 1 !! 2 !! 3 !! 4 ! 0 ! 1 ! 2 ! 3 ! 4
 * + Akiyama–Tanigawa transform for the second Euler numbers
 * 1 || $1⁄3$ || $1⁄4$ || $1⁄5$ || $1⁄2$
 * 0 || $1⁄3$ || $1⁄4$ || ... || ...
 * 0 || ... || ... || ... || ...
 * }

See and. ($n + 1$) / ($1⁄2, 1⁄6, 0, −1⁄30, 0, 1⁄42, ... = (1⁄2, 1⁄3, 3⁄14, 2⁄15, 5⁄62, 1⁄21, ...) × (1, 1⁄2, 0, −1⁄4, 0, 1⁄2, ...)$) 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{|A_n|}{(n+1)!}$$

where $$|A_n|$$ is the determinant of a n-by-n Hessenberg matrix part of Pascal's triangle whose elements are: $$ a_{i, k} = \begin{cases} 0 & \text{if } k>1+i \\ {i+1 \choose k-1} & \text{otherwise} \end{cases} $$

Example:


 * $$ B^{+}_6 =\frac{\det\begin{pmatrix}

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{pmatrix}}{7!}=\frac{120}{5040}=\frac 1 {42} $$

Connection with Eulerian numbers
There are formulas connecting Eulerian numbers $B_{k}(j)$ to Bernoulli numbers:


 * $$\begin{align}

\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 $B_{k}$ if $k = 0, 1, 2,...$ is set to $1⁄5$. If $( j m + 1 )$ is set to −$1⁄6$ they are valid only for $(−1)^{m}⁄m + 1$ and $B_{1} = +1⁄2$ respectively.

A binary tree representation
The Stirling polynomials $[ n m ]$ are related to the Bernoulli numbers by $B_{1} = +1⁄2$. S. C. Woon described an algorithm to compute $n ≥ 0$ as a binary tree:


 * [[File:SCWoonTree.png]]

Woon's recursive algorithm (for $m ≥ 0$) starts by assigning to the root node $A_{n,m}$. Given a node $2^{−n}$ of the tree, the left child of the node is $n$ and the right child $n + 1$. A node $n + 2$ is written as $n + 2$ in the initial part of the tree represented above with ± denoting the sign of $1⁄6, 0, −1⁄30, 0, 1⁄42, ...$.

Given a node $1⁄6$ the factorial of $3⁄20$ is defined as


 * $$ N! = a_1 \prod_{k=2}^{\operatorname{length}(N)} a_k!. $$

Restricted to the nodes $1⁄30$ of a fixed tree-level $1⁄30$ the sum of $2^{n + 3} − 2⁄n + 2$ is $3, 14⁄3, 15⁄2, 62⁄5, 21, ...$, 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 $n + 1$ for $n + 2$.

For example, $1⁄2, 0, −1⁄4, 0, 1⁄2, ...$ and $⟨ n m ⟩$. Here, $n$ is the Riemann zeta function, and $m$ 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}. $$

The relation to the Euler numbers and $\pi$
The Euler numbers are a sequence of integers intimately connected with the Bernoulli numbers. Comparing the asymptotic expansions of the Bernoulli and the Euler numbers shows that the Euler numbers $n ≥ 0$ are in magnitude approximately $B_{1}$ times larger than the Bernoulli numbers $B_{1}$. In consequence:


 * $$ \pi \sim 2 (2^{2n} - 4^{2n}) \frac{B_{2n}}{E_{2n}}. $$

This asymptotic equation reveals that π lies in the common root of both the Bernoulli and the Euler numbers. In fact π could be computed from these rational approximations.

Bernoulli numbers can be expressed through the Euler numbers and vice versa. Since, for odd $1⁄2$, $n ≥ 1$ (with the exception $n ≥ 2$), it suffices to consider the case when $1⁄4$ is even.


 * $$\begin{align}

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 $σ_{n}(x)$ 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 $B_{n} = n!σ_{n}(1)$.

The Bernoulli numbers and Euler numbers can be understood as special views of these numbers, selected from the sequence $σ_{n}(1)$ 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 [$n ≥ 1$ even] has the value 1 if $N = [1,2]$ 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 $N = [a_{1}, a_{2}, ..., a_{k}]$ when $1⁄8$ is even. The $L(N) = [−a_{1}, a_{2} + 1, a_{3}, ..., a_{k}]$ are rational approximations to π and two successive terms always enclose the true value of π. Beginning with $R(N) = [a_{1}, 2, a_{2}, ..., a_{k}]$ 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 ($N = [a_{1}, a_{2}, ..., a_{k}]$) /  ($±[a_{2}, ..., a_{k}]$):


 * {| class="wikitable" style="text-align:right;"

! 0 ! 1 ! 2 ! 3 ! 4 ! 5 ! 6
 * 1||$1⁄16$||0||−$1⁄2$||−$1⁄2$||−$3⁄8$||0
 * $1⁄4$|| 1|| $1⁄4$|| 0|| −$3⁄8$|| −$1⁄4$||
 * −1|| −$1⁄4$|| −$($a_{1}$)⁄($1⁄N!$)$|| $($σ_{n}(1)$)⁄($B_{1} = 1!(1⁄2!)$)$|| || ||
 * 8|| $1⁄2$|| || || || ||
 * }
 * }

From the second, the numerators of the first column are the denominators of Euler's formula. The first column is −$1⁄2$ ×.

An algorithmic view: the Seidel triangle
The sequence Sn has another unexpected yet important property: The denominators of Sn+1 divide the factorial $B_{2} = 2!(−1⁄3! + 1⁄2!2!)$. In other words: the numbers $B_{3} = 3!(1⁄4! − 1⁄2!3! − 1⁄3!2! + 1⁄2!2!2!)$, 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 $b(2n) = B_{2n}$ are given immediately by $n > 0$ and the Bernoulli numbers $b(3) = 3⁄2ζ(3)&pi;^{−3}i$ are fractions obtained from $b(5) = −15⁄2ζ(5)&pi;^{−5}i$ by some easy shifting, avoiding rational arithmetic.

What remains is to find a convenient way to compute the numbers $E_{2n}$. However, already in 1877 Philipp Ludwig von Seidel published an ingenious algorithm, which makes it simple to calculate $2⁄π(4^{2n} − 2^{2n})$.


 * 1) Start by putting 1 in row 0 and let $B_{2n}$ denote the number of the row currently being filled
 * 2) If $B_{n} = E_{n} = 0$ is odd, then put the number on the left end of the row $B_{1}$ in the first position of the row $n ≥ 1$, 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
 * 3) At the end of the row duplicate the last number.
 * 4) If $sec x + tan x$ 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 $S_{n}$ and recommended this method for computing $n$ and $n$ '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:


 * {| style="text-align:right"


 * || || || || || || 1|| || || || || ||
 * || || || || || 1|| || 1|| || || || ||
 * || || || || 2|| || 2|| || 1|| || || ||
 * || || || 2|| || 4|| || 5|| || 5|| || ||
 * || || 16|| || 16|| || 14|| || 10|| || 5|| ||
 * || 16|| || 32|| || 46|| || 56|| || 61|| || 61||
 * 272|| ||272|| ||256|| ||224|| ||178|| ||122|| || 61
 * }
 * || || 16|| || 16|| || 14|| || 10|| || 5|| ||
 * || 16|| || 32|| || 46|| || 56|| || 61|| || 61||
 * 272|| ||272|| ||256|| ||224|| ||178|| ||122|| || 61
 * }
 * 272|| ||272|| ||256|| ||224|| ||178|| ||122|| || 61
 * }

Only, with one 1, and , with two 1s, are in the OEIS.

Distribution with a supplementary 1 and one 0 in the following rows:


 * {| style="text-align:right"


 * || || || || || || 1|| || || || || ||
 * || || || || || 0|| || 1|| || || || ||
 * || || || || −1|| || −1|| || 0|| || || ||
 * || || || 0|| || −1|| || −2|| || −2|| || ||
 * || || 5|| ||  5|| ||  4|| ||  2|| ||  0|| ||
 * || 0|| || 5|| || 10|| || 14|| || 16|| || 16||
 * −61|| ||−61|| ||−56|| ||−46|| ||−32|| ||−16|| || 0
 * }
 * || || 5|| ||  5|| ||  4|| ||  2|| ||  0|| ||
 * || 0|| || 5|| || 10|| || 14|| || 16|| || 16||
 * −61|| ||−61|| ||−56|| ||−46|| ||−32|| ||−16|| || 0
 * }
 * −61|| ||−61|| ||−56|| ||−46|| ||−32|| ||−16|| || 0
 * }

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 ($R_{n} = 2S_{n}⁄S_{n + 1}$) / ($R_{n}$) yields:


 * {| style="text-align:right"


 * 1|| 1|| $N$|| 0|| −$N$|| −$N$|| −$n$
 * 0|| 1|| $ζ$|| 1|| 0|| −$i$
 * −1|| −1|| $n$|| 4|| $n$
 * 0|| −5|| −$n$|| 1
 * 5|| 5|| −$1⁄2$
 * 0|| 61
 * −61
 * }
 * 5|| 5|| −$1⁄4$
 * 0|| 61
 * −61
 * }
 * −61
 * }

1. The first column is. Its binomial transform leads to:


 * {| style="text-align:right"


 * 1|| 1|| 0|| −2|| 0|| 16|| 0
 * 0||−1||−2||2||16||−16
 * −1||−1||4||14||−32
 * 0||5||10||−46
 * 5||5||−56
 * 0||−61
 * −61
 * }
 * 5||5||−56
 * 0||−61
 * −61
 * }
 * −61
 * }
 * }

The first row of this array is. The absolute values of the increasing antidiagonals are. The sum of the antidiagonals is − ($n = 1$).

2. The second column is 1 1 −1 −5 5 61 −61 −1385 1385.... Its binomial transform yields:


 * {| style="text-align:right"


 * 1|| 2|| 2|| −4|| −16|| 32|| 272
 * 1||0||−6||−12||48||240
 * −1||−6||−6||60||192
 * −5||0||66||32
 * 5||66||66
 * 61||0
 * −61
 * }
 * 5||66||66
 * 61||0
 * −61
 * }
 * −61
 * }
 * }

The first row of this array is 1 2 2 −4 −16 32 272 544 −7936 15872 353792 −707584.... 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 ($n + 2$) / ( ($n + 1$) = abs( ($1⁄4$)) + 1 = 1, 2, 2, $1⁄8$, 1, $1⁄2$, $3⁄4$, $5⁄8$, 1, $3⁄4$, $1⁄2$, $1⁄2$....


 * {| style="text-align:right"


 * 1||2||2||$9⁄4$||1||$5⁄2$||$5⁄8$
 * −1||0||$7⁄2$||2||$3⁄4$||0
 * −1||−3||−$15⁄2$||3||$5⁄2$
 * 2||−3||−$11⁄2$||−13
 * 5||21||−$99⁄4$
 * −16||45
 * −61
 * }
 * 5||21||−$77⁄2$
 * −16||45
 * −61
 * }
 * −61
 * }

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:


 * {| style="text-align:right"


 * 0||−1||−1||2||5||−16||−61
 * −1||0||3||3||−21||−45
 * 1||3||0||−24||−24
 * 2||−3||−24||0
 * −5||−21||24
 * −16||45
 * −61
 * }
 * −5||−21||24
 * −16||45
 * −61
 * }
 * −61
 * }

The first two upper diagonals are −1 3 −24 402... = $n!$ ×. The sum of the antidiagonals is 0 −2 0 10... = 2 × (n + 1).

− is an autosequence of the second kind, like for instance /. Hence the array:


 * {| style="text-align:right"


 * 2||1||−1||−2||5||16||−61
 * −1||−2||−1||7||11||−77
 * −1||1||8||4||−88
 * 2||7||−4||−92
 * 5||−11||−88
 * −16||−77
 * −61
 * }
 * 5||−11||−88
 * −16||−77
 * −61
 * }
 * −61
 * }
 * }

The main diagonal, here 2 −2 8 −92..., is the double of the first upper one, here. The sum of the antidiagonals is 2 0 −4 0... = 2 × ($T_{n} = S_{n + 1} n!$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 $E_{2n}$ and $T_{2n}$ André made a startling 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 numbers of odd and even index, respectively. In consequence the ordinary expansion of $B_{2n}$ has as coefficients the rational numbers $T_{2n - 1}$.


 * $$ \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: $T_{n}$, $T_{n}$, $T_{n}$, $k$, $k$, / . Via the second row of its inverse Akiyama–Tanigawa transform, they lead to Balmer series  /.

The Akiyama–Tanigawa algorithm applied to ($k − 1$) /  ($61⁄2$) leads to the Bernoulli numbers  /,  / , or   without $k$, named intrinsic Bernoulli numbers $k$.


 * {| style="text-align:center; padding-left; padding-right: 2em;"


 * 1||$1⁄2$||$1⁄2$||$1⁄4$||$1⁄4$
 * 0||$1⁄8$||$3⁄2$||$3⁄4$||$3⁄2$
 * −$15⁄4$||−$15⁄2$||−$51⁄2$||−$n$||0
 * 0||−$3⁄2$||−$3⁄4$||−$3⁄4$||−$7⁄8$
 * }
 * 0||$17⁄16$||$17⁄16$||$33⁄32$||$3⁄2$
 * −$3⁄4$||−$3⁄4$||−$3⁄2$||−$5⁄4$||0
 * 0||−$3⁄2$||−$25⁄4$||−$27⁄2$||−$3⁄2$
 * }
 * 0||−$n$||−$5⁄6$||−$3⁄4$||−$7⁄10$
 * }

Hence another link between the intrinsic Bernoulli numbers and the Balmer series via ($T_{2n}$).

($B_{2n}$) = 0, 2, 1, 6,... is a permutation of the non-negative numbers.

The terms of the first row are f(n) = $E_{2n}$. 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:


 * {| style="text-align:center; padding-left; padding-right:2em;"


 * 0||$2⁄3$||$1⁄6$||$1⁄6$||$3⁄20$||$2⁄15$||...
 * 0||−$5⁄42$||−$1⁄30$||−$1⁄20$||−$2⁄35$||−$5⁄84$||...
 * $1⁄30$||$1⁄30$||$3⁄140$||$1⁄105$||0||−$1⁄42$||...
 * }
 * 0||−$1⁄28$||−$4⁄105$||−$1⁄28$||−$1⁄6$||−$1⁄4$||...
 * $3⁄10$||$1⁄3$||$5⁄14$||$1⁄6$||0||−$1⁄6$||...
 * }
 * $3⁄20$||$2⁄15$||$5⁄42$||$3⁄28$||0||−$1⁄30$||...
 * }

0, g(n), is an autosequence of the second kind.

Euler ($n + 1$) /  ($n$) without the second term ($1⁄20$) are the fractional intrinsic Euler numbers $n + 1$ The corresponding Akiyama transform is:


 * {| style="text-align:center; padding-left; padding-right: 2em;"


 * 1||1||$2⁄35$||$5⁄84$||$5⁄84$
 * 0||$1⁄30$||$1⁄30$||$3⁄140$||$1⁄105$
 * −$1⁄140$||−$1⁄2$||0||$7⁄8$||$3⁄4$
 * 0||−$21⁄32$||−$1⁄4$||−$3⁄8$||−$3⁄8$
 * }
 * −$5⁄16$||−$1⁄4$||0||$1⁄4$||$1⁄4$
 * 0||−$25⁄64$||−$1⁄2$||−$3⁄4$||−$9⁄16$
 * }
 * }
 * }
 * }

The first line is $n$. $n + 1$ 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:


 * {| style="text-align:center; padding-left; padding-right: 2em;"


 * 0||1||1||$5⁄32$||$1⁄2$||$1⁄2$||$9⁄16$
 * 1||0||−$13⁄8$||−$125⁄64$||−$7⁄8$||−$3⁄4$||−$21⁄32$
 * −1||−$19⁄32$||0||$1⁄8$||$1⁄8$||$3⁄32$||$1⁄16$
 * }
 * −1||−$5⁄128$||0||$1⁄8$||$1⁄32$||$1⁄32$||$3⁄128$
 * }
 * }

Arithmetical properties of the Bernoulli numbers
The Bernoulli numbers can be expressed in terms of the Riemann zeta function as $(−1)^{n + 1}$ for integers $n +$ provided for $tan x$ the expression $sec x$ is understood as the limiting value and the convention $tan x + sec x$ 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 $1⁄64$ is a prime number if and only if $S_{n}$ is congruent to −1 modulo $p$. 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.

The Kummer theorems
The Bernoulli numbers are related to Fermat's Last Theorem (FLT) by Kummer's theorem, which says:


 * If the odd prime $p$ does not divide any of the numerators of the Bernoulli numbers $B_{0} = 1$ then $B_{1} = 0$ has no solutions in nonzero integers.

Prime numbers with this property are called regular primes. Another classical result of Kummer are the following congruences.


 * Let $p$ be an odd prime and $p$ an even number such that $B_{2} = 1⁄6$ does not divide $b$. Then for any non-negative integer $b$
 * $$ \frac{B_{k(p-1)+b}}{k(p-1)+b} \equiv \frac{B_{b}}{b} \pmod{p}. $$

A generalization of these congruences goes by the name of $B_{3} = 0$-adic continuity.

$B_{4} = −1⁄30$-adic continuity
If $k$, $b$ and $m$ are positive integers such that $n$ and $m$ are not divisible by $n + 4$ and $B_{1}$, then


 * $$(1-p^{m-1})\frac{B_m}{m} \equiv (1-p^{n-1})\frac{B_n} n \pmod{p^b}.$$

Since $B_{i}(n)$, this can also be written


 * $$\left(1-p^{-u}\right)\zeta(u) \equiv \left(1-p^{-v}\right)\zeta(v) \pmod{p^b},$$

where $n$ and $n − 2$, so that $n$ and $u$ are nonpositive and not congruent to 1 modulo $1⁄2 + 1⁄n + 2$. This tells us that the Riemann zeta function, with $n$ taken out of the Euler product formula, is continuous in the $v$-adic numbers on odd negative integers congruent modulo $n + 1$ to a particular $E_{i}(n) = 1, 0, −1⁄4, 0, 1⁄2, 0, −17⁄8, 0, ...$, and so can be extended to a continuous function $Eu(n)$ for all $p$-adic integers $$\mathbb{Z}_p,$$ the $p$-adic zeta function.

Ramanujan's congruences
The following relations, due to Ramanujan, provide a method for calculating Bernoulli numbers that is more efficient than the one given by their original recursive definition:


 * $$\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}$$

Von Staudt–Clausen theorem
The von Staudt–Clausen theorem was given by Karl Georg Christian von Staudt and Thomas Clausen independently in 1840. The theorem states that for every $Eu(n)$,
 * $$ B_{2n} + \sum_{(p-1)\,\mid\,2n} \frac1p$$

is an integer. The sum extends over all primes $B_{n} = −nζ(1 − n)$ for which $n ≥ 0$ divides $n = 0$.

A consequence of this is that the denominator of $−nζ(1 − n)$ is given by the product of all primes $B_{1} = 1⁄2$ for which $pB_{p − 1}$ divides $B_{2}, B_{4}, ..., B_{p − 3}$. In particular, these denominators are square-free and divisible by 6.

Why do the odd Bernoulli numbers vanish?
The sum


 * $$\varphi_k(n) = \sum_{i=0}^n i^k - \frac{n^k} 2$$

can be evaluated for negative values of the index $x^{p} + y^{p} + z^{p} = 0$. Doing so will show that it is an odd function for even values of $p − 1$, which implies that the sum has only terms of odd index. This and the formula for the Bernoulli sum imply that $p$ is 0 for $p$ even and $p − 1$; and that the term for $m ≡ n (mod p^{b − 1} (p − 1))$ 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 $B_{n} = −nζ(1 − n)$ the number $u = 1 − m$ 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 $v = 1 − n$ be the number of surjective maps from $p − 1$ to $1 − p^{−s}$, then $p − 1$. 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.

A restatement of the Riemann hypothesis
The connection between the Bernoulli numbers and the Riemann zeta function is strong enough to provide an alternate formulation of the Riemann hypothesis (RH) which uses only the Bernoulli numbers. In fact Marcel Riesz proved that the RH is equivalent to the following assertion:


 * For every $a ≢ 1 mod (p − 1)$ there exists a constant $ζ_{p}(s)$ (depending on $n > 0$) such that $p$ as $p − 1$.

Here $2n$ is the Riesz function


 * $$ 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}}. $$

$B_{2n}$ denotes the rising factorial power in the notation of D. E. Knuth. The numbers $p$ occur frequently in the study of the zeta function and are significant because $p − 1$ is a $2n$-integer for primes $n$ where $k$ does not divide $B_{2k + 1 − m}$. The $m$ 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 $p$-functions in the same way that Bernoulli numbers are related to special values of the Riemann zeta function.

Let $L$ be a Dirichlet character modulo $χ$. The generalized Bernoulli numbers attached to $f$ 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 $2k + 1 − m > 1$, we have, for any Dirichlet character $χ$, that $B_{1}$ if $n > 1$.

Generalizing the relation between Bernoulli numbers and values of the Riemann zeta function at non-positive integers, one has the for all integers $2B_{n}$:


 * $$L(1-k,\chi)=-\frac{B_{k,\chi}}k,$$

where $S_{n,m}$ is the Dirichlet $χ$-function of $L$.

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.