FLINT3.7.0-dev

arith_bernoulli_number_denom

Synopsis#include <flint/arith.h>
void arith_bernoulli_number_denom(fmpz_t den, ulong n)source

Sets den to the denominator of B_n in lowest terms: 1 for odd n \ge 3 and n = 0, 2 for n = 1, and for even n \ge 2 the product of the primes p with (p - 1) \mid n, by the von Staudt–Clausen theorem. Values for n \le 178 are read from a table.

Cite this page

The FLINT team, “arith_bernoulli_number_denom (arith.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arith/arith_bernoulli_number_denom.html (generated 2026-10-20).