FLINT3.7.0-dev

gr_generic_bellnum_fmpz, gr_generic_bellnum_ui, gr_generic_bellnum_vec

Synopsis#include <flint/gr_special.h>
int gr_generic_bellnum_fmpz(gr_ptr res, const fmpz_t n, gr_ctx_t ctx)source
int gr_generic_bellnum_ui(gr_ptr res, ulong n, gr_ctx_t ctx)source
int gr_generic_bellnum_vec(gr_ptr res, slong len, gr_ctx_t ctx)source

Bell numbers: exactly in \mathbb{Z} with the functions of arith, numerically in rings with a real precision, directly modulo n for nmod (arith_bell_number_nmod and arith_bell_number_nmod_vec), and otherwise exactly in \mathbb{Z} and converted.

Cite this page

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