FLINT3.7.0-dev

z_kronecker

Synopsis#include <flint/long_extras.h>
int z_kronecker(slong a, slong n)source

Returns the Kronecker symbol \left(\frac{a}{n}\right) for any a and n, including negative and even n and n = 0 (where the symbol is 1 if a = \pm 1 and 0 otherwise). For odd positive n this is the Jacobi symbol, which n_jacobi also computes.

Cite this page

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