native Bernoulli number code