FLINT3.7.0-dev

flint_mpn_sqr_and_add_a

Synopsis#include <flint/fmpz_factor.h>
void flint_mpn_sqr_and_add_a(nn_ptr y, nn_ptr a, nn_ptr n, ulong n_size, nn_ptr ninv, ulong normbits)source

Sets y \gets y^2 + a modulo the shifted modulus n with inverse ninv, the iteration of Pollard's rho method. Requires y, a < n; the result is reduced.

Cite this page

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