FLINT3.7.0-dev

arith_bernoulli_number_vec, _arith_bernoulli_number_vec

Synopsis#include <flint/arith.h>
void arith_bernoulli_number_vec(fmpq * x, slong n)source
void _arith_bernoulli_number_vec(fmpz * num, fmpz * den, slong n)source

Set the entries to B_0, B_1, \ldots, B_{n-1}. For n < 700 the function calls _arith_bernoulli_number_vec_recursive, otherwise _arith_bernoulli_number_vec_multi_mod. For long vectors, bernoulli_fmpq_vec_no_cache (which uses the zeta function and several threads) is usually faster.

Cite this page

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