FLINT3.7.0-dev

n_to_redc_preinv

Synopsis#include <flint/nmod.h>
ulong n_to_redc_preinv(ulong a, ulong n, ulong ninv, ulong norm)source

Returns aB mod na B \bmod n for a<na < n, given ninv and norm as stored in an nmod_t for nn. This is one division step with the precomputed inverse.

Guides#

Cite this page

The FLINT team, “n_to_redc_preinv (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/n_to_redc_preinv.html (generated 2026-11-02).