Bernoulli numbers
From Fōrmulæ wiki
This page is the answer to the task Bernoulli numbers in the Rosetta Code.
Description (from Rosetta Code)
Bernoulli numbers are used in some series expansions of several functions (trigonometric, hyperbolic, gamma, etc.), and are extremely important in number theory and analysis.
Note that there are two definitions of Bernoulli numbers; this task will be using the modern usage (as per The National Institute of Standards and Technology convention). The n^{th} Bernoulli number is expressed as B_{n}.
Task
The Akiyama–Tanigawa algorithm for the "second Bernoulli numbers" as taken from wikipedia is as follows: for m from 0 by 1 to n do A[m] ← 1/(m+1) for j from m by 1 to 1 do A[j1] ← j×(A[j1]  A[j]) return A[0] (which is B_{n}) See also
