FLINT3.7.0-dev

n_divides

Synopsis#include <flint/ulong_extras.h>
int n_divides(ulong * q, ulong n, ulong p)source

Returns 1 and sets *q to n/p if p divides n; otherwise returns 0 and sets *q to 0.

Cite this page

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