FLINT3.7.0-dev

fmpz_invmod_2exp

Synopsis#include <flint/fmpz.h>
void fmpz_invmod_2exp(fmpz_t rop, const fmpz_t op, flint_bitcnt_t N)source

Sets rop to the inverse of op modulo 2^N. Throws an exception if op is even.

Cite this page

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