FLINT3.7.0-dev

nmod_redc_get_nmod

Synopsis#include <flint/nmod.h>
ulong nmod_redc_get_nmod(ulong x, const nmod_redc_ctx_t ctx)source

Returns x R^{-1} \bmod n in [0, n), converting from Montgomery form. Any word x is accepted, in particular a lazy residue.

Guides#

Cite this page

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