FLINT3.7.0-dev

nmod_poly_remove

Synopsis#include <flint/nmod_poly.h>
ulong nmod_poly_remove(nmod_poly_t f, const nmod_poly_t p)source

Removes the largest power p^k dividing f from f and returns k. Requires \deg p \ge 1: for a nonzero constant p the function does not terminate. For f = 0 it returns 0.

Cite this page

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