FLINT3.7.0-dev

fmpzi_remove_one_plus_i

Synopsis#include <flint/fmpzi.h>
slong fmpzi_remove_one_plus_i(fmpzi_t res, const fmpzi_t x)source

Sets res to x / (1 + i)^k for the largest k such that the division is exact, and returns k. For x = 0, sets res to 0 and returns 0.

Cite this page

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