FLINT3.7.0-dev

z_kronecker

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

Returns the Kronecker symbol (an)\left(\frac{a}{n}\right) for any aa and nn, including negative and even nn and n=0n = 0 (where the symbol is 1 if a=±1a = \pm 1 and 0 otherwise). For odd positive nn 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-11-02).