_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)sourceulong _nmod_redc_fast_2_pow_ui(ulong exp, const nmod_redc_ctx_t ctx)sourceReturn 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).
@misc{flint-doc-nmod-nmod-redc-2-pow-ui,
author = {{The FLINT team}},
title = {{\_nmod\_redc\_2\_pow\_ui, \_nmod\_redc\_fast\_2\_pow\_ui (nmod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod/_nmod_redc_2_pow_ui.html},
note = {Generated 2026-10-20}
}