_nmod_redc_pow_ui, _nmod_redc_fast_pow_ui
Synopsis
#include <flint/nmod.h>ulong _nmod_redc_pow_ui(ulong a, ulong exp, const nmod_redc_ctx_t ctx)sourceulong _nmod_redc_fast_pow_ui(ulong a, ulong exp, const nmod_redc_ctx_t ctx)sourceReturn a^{\mathit{exp}} with a and the result in Montgomery form, by binary exponentiation. Require \mathit{exp} \ge 1. The fast version takes and returns lazy residues.
Guides#
Cite this page
The FLINT team, “_nmod_redc_pow_ui, _nmod_redc_fast_pow_ui (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/_nmod_redc_pow_ui.html (generated 2026-10-20).
@misc{flint-doc-nmod-nmod-redc-pow-ui,
author = {{The FLINT team}},
title = {{\_nmod\_redc\_pow\_ui, \_nmod\_redc\_fast\_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_pow_ui.html},
note = {Generated 2026-10-20}
}