FLINT3.7.0-dev

fmpz_jacobi

Synopsis#include <flint/fmpz.h>
int fmpz_jacobi(const fmpz_t a, const fmpz_t p)source

Returns the Jacobi symbol (ap)\left(\frac{a}{p}\right) for any aa and odd p>0p > 0. The conditions on pp are not checked.

Cite this page

The FLINT team, “fmpz_jacobi (fmpz.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz/fmpz_jacobi.html (generated 2026-11-02).