FLINT3.7.0-dev

_fmpz_remove

Synopsis#include <flint/fmpz.h>
slong _fmpz_remove(fmpz_t x, const fmpz_t f, double finv)source

Divides x \ne 0 in place by the largest power of f > 1 dividing it and returns the exponent. finv must be n_precompute_inverse(f) if f is small and 0 otherwise. x and f must be distinct.

Cite this page

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