FLINT3.7.0-dev

_nmod_redc_2_pow_ui, _nmod_redc_fast_2_pow_ui

Synopsis#include <flint/nmod.h>
ulong _nmod_redc_2_pow_ui(ulong exp, const nmod_redc_ctx_t ctx)source
ulong _nmod_redc_fast_2_pow_ui(ulong exp, const nmod_redc_ctx_t ctx)source

Return the Montgomery form of 2^{\mathit{exp}}, for any \mathit{exp}. The fast version returns a lazy residue.

Cite this page

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