In mathematics, the Bernoulli numbers Bn 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 −
{\displaystyle B_{n}^{-{}}} and B n +
{\displaystyle B_{n}^{+{}}} ; they differ only for n = 1, where B 1 −
= − 1 / 2 {\displaystyle B_{1}^{-{}}=-1/2} and B 1 +
= + 1 / 2 {\displaystyle B_{1}^{+{}}=+1/2} . For every odd n > 1, Bn = 0. For every even n > 0, Bn is negative if n is divisible by 4 and positive otherwise. The Bernoulli numbers are special values of the Bernoulli polynomials B n ( x ) {\displaystyle B_{n}(x)} , with B n −
= B n ( 0 ) {\displaystyle B_{n}^{-{}}=B_{n}(0)} and B n + = B n ( 1 ) {\displaystyle B_{n}^{+}=B_{n}(1)} . The Bernoulli numbers were discovered around the same time by the Swiss mathematician Jacob Bernoulli, after whom they are named, and independently by Japanese mathematician Seki Takakazu. Seki's discovery was posthumously published in 1712 in his work Katsuyō Sanpō; Bernoulli's, also posthumously, in his Ars Conjectandi of 1713. Ada Lovelace's note G on the Analytical Engine from 1842 describes an algorithm for generating Bernoulli numbers with Babbage's machine; it is disputed whether Lovelace or Babbage developed the algorithm. As a result, the Bernoulli numbers have the distinction of being the subject of the first published complex computer program.
Notation The superscript ± used in this article distinguishes the two sign conventions for Bernoulli numbers. Only the n = 1 term is affected:
B−n with B−1 = −1/2 (OEIS: A027641 / OEIS: A027642) is the sign convention prescribed by NIST and many modern textbooks. B+n with B+1 = +1/2 (OEIS: A164555 / OEIS: A027642) 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 − {\displaystyle B_{n}^{+}=(-1)^{n}B_{n}^{-}} , or for integer n = 2 or greater, simply ignore it. Since Bn = 0 for all odd n > 1, and many formulas only involve even-index Bernoulli numbers, a few authors write "Bn" instead of B2n . 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 n positive integers, the sum of the squares and of the cubes of the first n 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), Al-Karaji (d. 1019, Persia) and 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 (n+1)k+1 to the sums of the pth powers of the first n positive integers for p = 0, 1, 2, ..., k. The Swiss mathematician Jacob Bernoulli (1654–1705) was the first to realize the existence of a single sequence of constants B0, B1, B2,... 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 cth powers for any positive integer c can be seen from his comment. He wrote:
… excerpt ends here. Continue reading the full article.





