nmod_2_pow_ui
Synopsis
#include <flint/nmod.h>Exponents below 2^{20}, and all exponents for even n, use left-to-right binary exponentiation, in which multiplication by the base 2 is a modular doubling. Larger exponents with odd n use the same method in Montgomery arithmetic.
Cite this page
The FLINT team, “nmod_2_pow_ui (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/nmod_2_pow_ui.html (generated 2026-10-20).
@misc{flint-doc-nmod-nmod-2-pow-ui,
author = {{The FLINT team}},
title = {{nmod\_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_2_pow_ui.html},
note = {Generated 2026-10-20}
}