The Bernoulli polynomial Bn is defined by:
The nth Bernoulli number is Bn = Bn(0), and is also given by the formula:
The bernoulli command computes the Bernoulli numbers.
Example. Input:
Output: