nmod_divides
Synopsis
#include <flint/nmod.h>The congruence is solvable if and only if divides , and then it has exactly solutions modulo . nmod_divides computes with by the extended Euclidean algorithm and returns , which is not necessarily the least solution. If , then *a is set to 0, and the return value is 1 if and 0 otherwise. When there is no solution and , *a is not modified.
Guides#
Cite this page
The FLINT team, “nmod_divides (nmod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod/nmod_divides.html (generated 2026-11-02).
@misc{flint-doc-nmod-nmod-divides,
author = {{The FLINT team}},
title = {{nmod\_divides (nmod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod/nmod_divides.html},
note = {Generated 2026-11-02}
}