arXiv · 0807.1347
A multimodular algorithm for computing Bernoulli numbers
Abstract
We describe an algorithm for computing Bernoulli numbers. Using a parallel implementation, we have computed B(k) for k = 10^8, a new record. Our method is to compute B(k) modulo p for many small primes p, and then reconstruct B(k) via the Chinese Remainder Theorem. The asymptotic time complexity is O(k^2 log(k)^(2+epsilon)), matching that of existing algorithms that exploit the relationship between B(k) and the Riemann zeta function. Our implementation is significantly faster than several existing implementations of the zeta-function method.
Explore related subjects
Keep this discovery
David Harvey. 2008-10-13. A multimodular algorithm for computing Bernoulli numbers. https://arxiv.org/abs/0807.1347
Cite the original work for its findings. Save a collection to share your selection of sources.