Enter an integer n between 0 and 2000 inclusive to calculate the nth bernoulli number.
What is a Bernoulli Number?
Bernoulli numbers are a sequence Bn of rational numbers that occur frequently in analysis. The most important application of the Bernoulli numbers in mathematics is their use in the Euler–Maclaurin formula. They also appear in (and can be defined by) the Taylor series expansions of the tangent and hyperbolic tangent functions.
How do you calculate a Bernoulli number?
All odd Bn numbers for n > 1 are equal to zero. The first Bernoulli number could be either 1/2 or -1/2 depending on the convention used. We are using B1 = -1/2 in this generator.