The Kronecker symbol (na) is the multiplicative extension of the Jacobi symbol (ma), which is defined on all positive odd integers m, to all integers n∈Z as follows.
We set
(−1a)={1−1if a≥0if a<0;
(2a)=⎩⎨⎧01−1if a≡0mod2if a≡±1mod8if a≡±3mod8;
and
(0a)={10if a=±1otherwise .
Then for each nonzero integer n=sgn(n)p1e1p2e2⋯prer the Kronecker symbol is defined as the product of symbols above and the Legendre symbols for odd primes
(na)=(sgn(n)a)(p1a)e1(p2a)e2⋯(pra)er.
A Dirichlet character can be written as a Kronecker symbol (⋅a) if and only if it is
real.