FLINT3.7.0-dev

_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)source
ulong _nmod_redc_fast_pow_ui(ulong a, ulong exp, const nmod_redc_ctx_t ctx)source

Return 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).