In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the Bernoulli numbers are a
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
of
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s which occur frequently in
analysis
Analysis (: analyses) is the process of breaking a complex topic or substance into smaller parts in order to gain a better understanding of it. The technique has been applied in the study of mathematics and logic since before Aristotle (38 ...
. The Bernoulli numbers appear in (and can be defined by) the
Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
expansions of the
tangent
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is, intuitively, the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points o ...
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 Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for and its analytic c ...
.
The values of the first 20 Bernoulli numbers are given in the adjacent table. Two conventions are used in the literature, denoted here by
and
; they differ only for , where
and
. 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
In mathematics, the Bernoulli polynomials, named after Jacob Bernoulli, combine the Bernoulli numbers and binomial coefficients. They are used for series expansion of functions, and with the Euler–MacLaurin formula.
These polynomials occur ...
, with
and
.
The Bernoulli numbers were discovered around the same time by the Swiss mathematician
Jacob Bernoulli
Jacob Bernoulli (also known as James in English or Jacques in French; – 16 August 1705) was a Swiss mathematician. He sided with Gottfried Wilhelm Leibniz during the Leibniz–Newton calculus controversy and was an early proponent of Leibniz ...
, 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
Augusta Ada King, Countess of Lovelace (''née'' Byron; 10 December 1815 – 27 November 1852), also known as Ada Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage's proposed mechanical general-pur ...
's
note G
Note G is a computer algorithm written by Ada Lovelace that was designed to calculate Bernoulli numbers using the hypothetical analytical engine. Note G is generally agreed to be the first algorithm specifically for a computer, and Lovelace is c ...
on the
Analytical Engine from 1842 describes an
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
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
A computer program is a sequence or set of instructions in a programming language for a computer to Execution (computing), execute. It is one component of software, which also includes software documentation, documentation and other intangibl ...
.
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
The National Institute of Standards and Technology (NIST) is an agency of the United States Department of Commerce whose mission is to promote American innovation and industrial competitiveness. NIST's activities are organized into physical s ...
and most modern textbooks.
* with ( / ) was used in the older literature, and (since 2022) by
Donald Knuth
Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist and mathematician. He is a professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of comp ...
following Peter Luschny's "Bernoulli Manifesto".
In the formulas below, one can switch from one sign convention to the other with the relation
, 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
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 positive integers, the sum of the squares and of the cubes of the first 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
Pythagoras of Samos (; BC) was an ancient Ionian Greek philosopher, polymath, and the eponymous founder of Pythagoreanism. His political and religious teachings were well known in Magna Graecia and influenced the philosophies of P ...
(c. 572–497 BCE, Greece),
Archimedes
Archimedes of Syracuse ( ; ) was an Ancient Greece, Ancient Greek Greek mathematics, mathematician, physicist, engineer, astronomer, and Invention, inventor from the ancient city of Syracuse, Sicily, Syracuse in History of Greek and Hellenis ...
(287–212 BCE, Italy),
Aryabhata
Aryabhata ( ISO: ) or Aryabhata I (476–550 CE) was the first of the major mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy. His works include the '' Āryabhaṭīya'' (which mentions that in 3600 ' ...
(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
Thomas Harriot (; – 2 July 1621), also spelled Harriott, Hariot or Heriot, was an English astronomer, mathematician, ethnographer and translator to whom the theory of refraction is attributed. Thomas Harriot was also recognized for his con ...
(1560–1621) of England,
Johann Faulhaber (1580–1635) of Germany,
Pierre de Fermat
Pierre de Fermat (; ; 17 August 1601 – 12 January 1665) was a French mathematician who is given credit for early developments that led to infinitesimal calculus, including his technique of adequality. In particular, he is recognized for his d ...
(1601–1665) and fellow French mathematician
Blaise Pascal
Blaise Pascal (19June 162319August 1662) was a French mathematician, physicist, inventor, philosopher, and Catholic Church, Catholic writer.
Pascal was a child prodigy who was educated by his father, a tax collector in Rouen. His earliest ...
(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 to the sums of the th powers of the first positive integers for .
The Swiss mathematician Jakob Bernoulli (1654–1705) was the first to realize the existence of a single sequence of constants 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 th powers for any positive integer 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
Abraham de Moivre FRS (; 26 May 166727 November 1754) was a French mathematician known for de Moivre's formula, a formula that links complex numbers and trigonometry, and for his work on the normal distribution and probability theory.
He move ...
.
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'' ''... would provide a uniform''
::
:''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
; instead using
the formula avoids subtraction:
:
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 , , and by Bernoulli are mapped to the notation which is now prevalent as , , , . The expression means – the small dots are used as grouping symbols. Using today's terminology these expressions are
falling factorial powers . The factorial notation as a shortcut for was not introduced until 100 years later. The integral symbol on the left hand side goes back to
Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz (or Leibnitz; – 14 November 1716) was a German polymath active as a mathematician, philosopher, scientist and diplomat who is credited, alongside Sir Isaac Newton, with the creation of calculus in addition to ...
in 1675 who used it as a long letter for "summa" (sum). The letter on the left hand side is not an index of
summation
In mathematics, summation is the addition of a sequence of numbers, called ''addends'' or ''summands''; the result is their ''sum'' or ''total''. Beside numbers, other types of values can be summed as well: functions, vectors, matrices, pol ...
but gives the upper limit of the range of summation which is to be understood as . Putting things together, for positive , today a mathematician is likely to write Bernoulli's formula as:
:
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 (more on different conventions in the next paragraph). Most striking in this context is the fact that the
falling factorial
In mathematics, the falling factorial (sometimes called the descending factorial, falling sequential product, or lower factorial) is defined as the polynomial
\begin
(x)_n = x^\underline &= \overbrace^ \\
&= \prod_^n(x-k+1) = \prod_^(x-k) .
\end ...
has for the value . Thus Bernoulli's formula can be written
:
if , recapturing the value Bernoulli gave to the coefficient at that position.
The formula for
in the first half of the quotation by Bernoulli above contains an error at the last term; it should be
instead of
.
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, see or .
Recursive definition
The Bernoulli numbers obey the sum formulas
:
where
and denotes the
Kronecker delta
In mathematics, the Kronecker delta (named after Leopold Kronecker) is a function of two variables, usually just non-negative integers. The function is 1 if the variables are equal, and 0 otherwise:
\delta_ = \begin
0 &\text i \neq j, \\
1 &\ ...
.
The first of these is sometimes written as the formula (for m > 1)
where the power is expanded formally using the binomial theorem and
is replaced by
.
Solving for
gives the recursive formulas
:
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
):
:
Generating function
The exponential
generating function
In mathematics, a generating function is a representation of an infinite sequence of numbers as the coefficients of a formal power series. Generating functions are often expressed in closed form (rather than as a series), by some expression invo ...
s are
:
where the substitution is
. The two generating functions only differ by ''t''.
If we let
and
then
:
Then
and for
the m term in the series for
is:
:
If
:
then we find that
:
:
showing that the values of
obey the recursive formula for the Bernoulli numbers
.
The (ordinary) generating function
:
is an
asymptotic series
In mathematics, an asymptotic expansion, asymptotic series or Poincaré expansion (after Henri Poincaré) is a formal series of functions which has the property that truncating the series after a finite number of terms provides an approximation t ...
. It contains the
trigamma function .
Integral Expression
From the generating functions above, one can obtain the following integral formula for the even Bernoulli numbers:
:
Bernoulli numbers and the Riemann zeta function

The Bernoulli numbers can be expressed in terms of the
Riemann zeta function
The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for and its analytic c ...
:
: for .
Here the argument of the zeta function is ''0 ''or negative. As
is zero for negative even integers (the
trivial zeroes), if ''n>1'' is odd,
is zero.
By means of the zeta
functional equation
In mathematics, a functional equation
is, in the broadest meaning, an equation in which one or several functions appear as unknowns. So, differential equations and integral equations are functional equations. However, a more restricted meaning ...
and the gamma
reflection formula the following relation can be obtained:
:
for .
Now the argument of the zeta function is positive.
It then follows from () and
Stirling's formula that
:
for .
Efficient computation of Bernoulli numbers
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
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
. Harvey writes that the
asymptotic
In analytic geometry, an asymptote () of a curve is a line such that the distance between the curve and the line approaches zero as one or both of the ''x'' or ''y'' coordinates Limit of a function#Limits at infinity, tends to infinity. In pro ...
time complexity
In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations ...
of this algorithm is and claims that this
implementation
Implementation is the realization of an application, execution of a plan, idea, scientific modelling, model, design, specification, Standardization, standard, algorithm, policy, or the Management, administration or management of a process or Goal ...
is significantly faster than implementations based on other methods. Using this implementation Harvey computed for . Harvey's implementation has been included in
SageMath
SageMath (previously Sage or SAGE, "System for Algebra and Geometry Experimentation") is a computer algebra system (CAS) with features covering many aspects of mathematics, including algebra, combinatorics, graph theory, group theory, differentia ...
since version 3.1. Prior to that, Bernd Kellner computed to full precision for in December 2002 and Oleksandr Pavlyk for with
Mathematica
Wolfram (previously known as Mathematica and Wolfram Mathematica) is a software system with built-in libraries for several areas of technical computing that allows machine learning, statistics, symbolic computation, data manipulation, network ...
in April 2008.
:
::
* ''Digits'' is to be understood as the exponent of 10 when is written as a real number in normalized
scientific notation
Scientific notation is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientif ...
.
Applications of the Bernoulli numbers
Asymptotic analysis
Arguably the most important application of the Bernoulli numbers in mathematics is their use in the
Euler–Maclaurin formula. Assuming that is a sufficiently often differentiable function the Euler–Maclaurin formula can be written as
:
This formulation assumes the convention . Using the convention the formula becomes
:
Here
(i.e. the zeroth-order derivative of
is just
). Moreover, let
denote an
antiderivative
In calculus, an antiderivative, inverse derivative, primitive function, primitive integral or indefinite integral of a continuous function is a differentiable function whose derivative is equal to the original function . This can be stated ...
of
. By the
fundamental theorem of calculus
The fundamental theorem of calculus is a theorem that links the concept of derivative, differentiating a function (mathematics), function (calculating its slopes, or rate of change at every point on its domain) with the concept of integral, inte ...
,
:
Thus the last formula can be further simplified to the following succinct form of the Euler–Maclaurin formula
:
This form is for example the source for the important Euler–Maclaurin expansion of the zeta function
:
Here denotes the
rising factorial power.
Bernoulli numbers are also frequently used in other kinds of
asymptotic expansion
In mathematics, an asymptotic expansion, asymptotic series or Poincaré expansion (after Henri Poincaré) is a formal series of functions which has the property that truncating the series after a finite number of terms provides an approximation ...
s. The following example is the classical Poincaré-type asymptotic expansion of the
digamma function
In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function:
:\psi(z) = \frac\ln\Gamma(z) = \frac.
It is the first of the polygamma functions. This function is Monotonic function, strictly increasing a ...
.
:
Sum of powers
Bernoulli numbers feature prominently in the
closed form expression of the sum of the th powers of the first positive integers. For define
:
This expression can always be rewritten as a
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
in of degree . The
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s of these polynomials are related to the Bernoulli numbers by Bernoulli's formula:
:
where denotes the
binomial coefficient
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
.
For example, taking to be 1 gives the
triangular number
A triangular number or triangle number counts objects arranged in an equilateral triangle. Triangular numbers are a type of figurate number, other examples being square numbers and cube numbers. The th triangular number is the number of dots in ...
s .
:
Taking to be 2 gives the
square pyramidal numbers .
:
Some authors use the alternate convention for Bernoulli numbers and state Bernoulli's formula in this way:
:
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
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
expansion of many
trigonometric functions
In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in all ...
and
hyperbolic function
In mathematics, hyperbolic functions are analogues of the ordinary trigonometric functions, but defined using the hyperbola rather than the circle. Just as the points form a circle with a unit radius, the points form the right half of the ...
s.
Laurent series
The Bernoulli numbers appear in the following
Laurent series
In mathematics, the Laurent series of a complex function f(z) is a representation of that function as a power series which includes terms of negative degree. It may be used to express complex functions in cases where a Taylor series expansio ...
:
Digamma function
In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function:
:\psi(z) = \frac\ln\Gamma(z) = \frac.
It is the first of the polygamma functions. This function is Monotonic function, strictly increasing a ...
:
Use in topology
The
Kervaire–Milnor formula for the order of the cyclic group of diffeomorphism classes of
exotic -spheres which bound
parallelizable manifold
In mathematics, a differentiable manifold M of dimension ''n'' is called parallelizable if there exist Smooth function, smooth vector fields
\
on the manifold, such that at every point p of M the tangent vectors
\
provide a Basis of a vector space, ...
s involves Bernoulli numbers. Let be the number of such exotic spheres for , then
:
The
Hirzebruch signature theorem for the
genus of a
smooth oriented closed manifold
In mathematics, a closed manifold is a manifold Manifold with boundary, without boundary that is Compact space, compact.
In comparison, an open manifold is a manifold without boundary that has only ''non-compact'' components.
Examples
The onl ...
of
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
4''n'' 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
In combinatorics, the inclusion–exclusion principle is a counting technique which generalizes the familiar method of obtaining the number of elements in the union (set theory), union of two finite sets; symbolically expressed as
: , A \cup B, ...
.
Connection with Worpitzky numbers
The definition to proceed with was developed by Julius Worpitzky in 1883. Besides elementary arithmetic only the factorial function and the power function is employed. The signless Worpitzky numbers are defined as
:
They can also be expressed through the
Stirling numbers of the second kind
:
A Bernoulli number is then introduced as an inclusion–exclusion sum of Worpitzky numbers weighted by the
harmonic sequence 1, , , ...
:
:
:
:
:
:
:
:
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
:
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).
Connection with Stirling numbers of the second kind
If one defines the
Bernoulli polynomials
In mathematics, the Bernoulli polynomials, named after Jacob Bernoulli, combine the Bernoulli numbers and binomial coefficients. They are used for series expansion of functions, and with the Euler–MacLaurin formula.
These polynomials occur ...
as:
:
where for are the Bernoulli numbers,
and is a
Stirling number of the second kind.
One also has the following for Bernoulli polynomials,
:
The coefficient of in is .
Comparing the coefficient of in the two expressions of Bernoulli polynomials, one has:
:
(resulting in ) 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 to the Bernoulli numbers (with ) are
:
and the inversion of this sum (for , )
:
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. 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 = 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
:
where
is the determinant of a n-by-n
Hessenberg matrix
In linear algebra, a Hessenberg matrix is a special kind of square matrix, one that is "almost" triangular. To be exact, an upper Hessenberg matrix has zero entries below the first subdiagonal, and a lower Hessenberg matrix has zero entries above ...
part of
Pascal's triangle
In mathematics, Pascal's triangle is an infinite triangular array of the binomial coefficients which play a crucial role in probability theory, combinatorics, and algebra. In much of the Western world, it is named after the French mathematician Bla ...
whose elements are:
Example:
:
Connection with Eulerian numbers
There are formulas connecting
Eulerian numbers to Bernoulli numbers:
:
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
:
Restricted to the nodes of a fixed tree-level the sum of is , thus
:
For example:
:
:
:
Integral representation and continuation
The
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
:
has as special values for .
For example, and . Here, is the
Riemann zeta function
The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for and its analytic c ...
, and is the
imaginary unit
The imaginary unit or unit imaginary number () is a mathematical constant that is a solution to the quadratic equation Although there is no real number with this property, can be used to extend the real numbers to what are called complex num ...
. Leonhard Euler (''Opera Omnia'', Ser. 1, Vol. 10, p. 351) considered these numbers and calculated
:
Another similar
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
representation is
:
The relation to the Euler numbers and
The
Euler number
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
s 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 are in magnitude approximately times larger than the Bernoulli numbers . In consequence:
:
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 , (with the exception ), it suffices to consider the case when is even.
:
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
:
The magic of these numbers lies in the fact that they turn out to be rational numbers. This was first proved by
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
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
:
( / )
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.
:
The expression
evenhas the value 1 if is even and 0 otherwise (
Iverson bracket
In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement . It maps any statement to a function of the free variables in that statement. ...
).
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 ( / ):
:
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.
:
(). See ().
Their
exponential generating function is the sum of the
secant and
tangent
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is, intuitively, the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points o ...
functions.
:
.
Thus the above representations of the Bernoulli and Euler numbers can be rewritten in terms of this sequence as
:
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
Philipp Ludwig von Seidel (; 24 October 1821 in Zweibrücken, Germany – 13 August 1896 in Munich, German Empire) was a German mathematician. He was the son of Julie Reinhold and Justus Christian Felix Seidel.
Philosopher & math theorist Imre La ...
published an ingenious algorithm, which makes it simple to calculate .
#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
In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in all ...
and André made a startling discovery.
:
The coefficients are the
Euler number
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
s of odd and even index, respectively. In consequence the ordinary expansion of has as coefficients the rational numbers .
:
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 group
In mathematics, the ideal class group (or class group) of an algebraic number field K is the quotient group J_K/P_K where J_K is the group of fractional ideals of the ring of integers of K, and P_K is its subgroup of principal ideals. The ...
s of
cyclotomic field
In algebraic number theory, a cyclotomic field is a number field obtained by adjoining a complex root of unity to \Q, the field of rational numbers.
Cyclotomic fields played a crucial role in the development of modern algebra and number theory ...
s 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
In number theory, Fermat's Last Theorem (sometimes called Fermat's conjecture, especially in older texts) states that no three positive number, positive integers , , and satisfy the equation for any integer value of greater than . The cases ...
(FLT) by
Kummer's theorem, which says:
:If the odd prime does not divide any of the numerators of the Bernoulli numbers then has no solutions in nonzero integers.
Prime numbers with this property are called
regular primes. Another classical result of Kummer are the following
congruences
In abstract algebra, a congruence relation (or simply congruence) is an equivalence relation on an algebraic structure (such as a group (mathematics), group, ring (mathematics), ring, or vector space) that is compatible with the structure in the ...
.
:Let be an odd prime and an even number such that does not divide . Then for any non-negative integer
::
A generalization of these congruences goes by the name of -adic continuity.
-adic continuity
If , and are positive integers such that and are not divisible by and , then
:
Since , this can also be written
:
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
the
-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:
:
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 ,
:
is an integer. The sum extends over all
primes for which divides .
A consequence of this is that the denominator of is given by the product of all primes for which divides . In particular, these denominators are
square-free {{no footnotes, date=December 2015
In mathematics, a square-free element is an element ''r'' of a unique factorization domain ''R'' that is not divisible by a non-trivial square. This means that every ''s'' such that s^2\mid r is a unit of ''R''.
...
and divisible by 6.
Why do the odd Bernoulli numbers vanish?
The sum
:
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
:
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
:
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
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pure ...
(RH) which uses only the Bernoulli numbers. In fact
Marcel Riesz proved that the RH is equivalent to the following assertion:
:For every there exists a constant (depending on ) such that as .
Here is the
Riesz function
:
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 number
In mathematics, an algebraic number is a number that is a root of a function, root of a non-zero polynomial in one variable with integer (or, equivalently, Rational number, rational) coefficients. For example, the golden ratio (1 + \sqrt)/2 is ...
s, 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
In analytic number theory and related branches of mathematics, a complex-valued arithmetic function \chi: \mathbb\rightarrow\mathbb is a Dirichlet character of modulus m (where m is a positive integer) if for all integers a and b:
# \chi(ab) = \ch ...
modulo . The generalized Bernoulli numbers attached to are defined by
:
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 :
:
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
Assorted identities
\frac - \sum_^ \binom\frac B_k =H_n B_n.
, 11 = Let . Then (
Yuri Matiyasevich
Yuri Vladimirovich Matiyasevich (; born 2 March 1947 in Leningrad
Saint Petersburg, formerly known as Petrograd and later Leningrad, is the List of cities and towns in Russia by population, second-largest city in Russia after Moscow. It is ...
1997)
:
, 12 = The ''Faber–
Pandharipande–
Zagier–Gessel identity'' states that for ,
:
Choosing or results in the Bernoulli number identity.
, 13 = For if , or if ,
:
, 14 = Let . Then
:
and
:
, 15 = A reciprocity relation of M. B. Gelfand states that
:
See also
*
Bernoulli polynomial
In mathematics, the Bernoulli polynomials, named after Jacob Bernoulli, combine the Bernoulli numbers and binomial coefficients. They are used for series expansion of functions, and with the Euler–MacLaurin formula.
These polynomials occur ...
*
Bernoulli polynomials of the second kind
*
Bernoulli umbra
*
Bell number
In combinatorial mathematics, the Bell numbers count the possible partitions of a set. These numbers have been studied by mathematicians since the 19th century, and their roots go back to medieval Japan. In an example of Stigler's law of epony ...
*
Euler number
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
*
Genocchi number
In mathematics, the Genocchi numbers G''n'', named after Angelo Genocchi, are a sequence of integers that satisfy the relation
:
\frac=\sum_^\infty G_n\frac
The first few Genocchi numbers are 0, 1, −1, 0, 1, 0, −3, 0, 17 , see .
...
*
Kummer's congruences
*
Poly-Bernoulli number
*
Hurwitz zeta function
*
Euler summation
*
Stirling polynomial
*
Sums of powers
Notes
References
Bibliography
* .
*
* .
* .
* .
* .
*.
* .
* .
*
*
* .
* .
*
*
* .
*.
*.
*.
*.
* .
* .
* .
*.
* .
* .
External links
*
* ''
The first 498 Bernoulli Numbers'' from
Project Gutenberg
Project Gutenberg (PG) is a volunteer effort to digitize and archive cultural works, as well as to "encourage the creation and distribution of eBooks."
It was founded in 1971 by American writer Michael S. Hart and is the oldest digital li ...
A multimodular algorithm for computing Bernoulli numbersThe Bernoulli Number Page*
Bernoulli number programs a
LiteratePrograms*
*
*
*
*
{{authority control
Number theory
Topology
Integer sequences
Eponymous numbers in mathematics