KroneckerSymbol
KroneckerSymbol[n, m] gives the Kronecker symbol (n/m).
Examples
Compute the Kronecker symbol:
KroneckerSymbol[2, 5]
(* -1 *)Another example:
KroneckerSymbol[3, 7]
(* -1 *)Please visit the official Wolfram Language Reference for more details.