fmpz_mod_divides
Synopsis
#include <flint/fmpz_mod.h>int fmpz_mod_divides(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx)sourceIf the congruence has a solution, sets to one solution in and returns 1; otherwise returns 0 and leaves undefined. and must be canonical.
With , a solution exists if and only if divides , and then is one; it is unique only if . For a solution exists only for , and is returned.
Guides#
Cite this page
The FLINT team, “fmpz_mod_divides (fmpz_mod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mod/fmpz_mod_divides.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mod-fmpz-mod-divides,
author = {{The FLINT team}},
title = {{fmpz\_mod\_divides (fmpz\_mod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod/fmpz_mod_divides.html},
note = {Generated 2026-11-02}
}