arith_bernoulli_number_denom
Synopsis
#include <flint/arith.h>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).
@misc{flint-doc-arith-arith-bernoulli-number-denom,
author = {{The FLINT team}},
title = {{arith\_bernoulli\_number\_denom (arith.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arith/arith_bernoulli_number_denom.html},
note = {Generated 2026-10-20}
}