FLINT3.7.0-dev

fmpz_divmod_2exp

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

Hensel division: sets rop to the unique q \in [0, 2^N) with qb \equiv a \pmod{2^N}. Throws an exception if b is even.

Cite this page

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