gr_generic_bin, gr_generic_bin_ui, gr_generic_bin_uiui, gr_generic_bin_vec, gr_generic_bin_ui_vec
#include <flint/gr_special.h>Binomial coefficients: gr_generic_bin_uiui uses fmpz_bin_uiui in \mathbb{Z}, and in other rings computes the integer exactly and converts it when n \le 100 or the ring is exact of characteristic zero, and otherwise divides a falling factorial by a factorial in the ring (falling back to the exact integer if the division fails). gr_generic_bin_ui divides the falling factorial x (x-1) \cdots (x-k+1) by k!; gr_generic_bin requires an integer y. The vec versions use recurrences between consecutive coefficients, taking care in rings of finite characteristic where divisions may not be possible.
The FLINT team, “gr_generic_bin, gr_generic_bin_ui, gr_generic_bin_uiui, gr_generic_bin_vec, gr_generic_bin_ui_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_bin.html (generated 2026-10-20).
@misc{flint-doc-gr-special-gr-generic-bin,
author = {{The FLINT team}},
title = {{gr\_generic\_bin, gr\_generic\_bin\_ui, gr\_generic\_bin\_uiui, gr\_generic\_bin\_vec, gr\_generic\_bin\_ui\_vec (gr\_special.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_special/gr_generic_bin.html},
note = {Generated 2026-10-20}
}