Calculating Bernoulli numbers

The Bernoulli numbers Bj, j ≥ 2, j even, can be defined in terms of the tangent numbers Tj/2:


See BC code based on Richard Brent's slides Computing Bernoulli and Tangent numbers.
Also see a paper by Donald Knuth and Thomas J. Buckholtz and The Bernoulli page.

Enter n (0 ≤ n ≤ 2000):

Last modified 9th July 2011
Return to main page