code: def kronecker_symbol(a, n):
      r"""
      Returns the Kronecker symbol `(a / n)`.
  
      Parameters
      ==========
  
      a : integer
      n : integer
  
      Examples
      ========
  
      >>> from sympy.ntheory.residue_ntheory import kronecker_symbol
      >>> kronecker_symbol(45, 77)
      -1
      >>> kronecker_symbol(13, -120)
      1
  
      See Also
      ========
  
      jacobi_symbol, legendre_symbol
  
      References
      ==========
  
      .. [1] https://en.wikipedia.org/wiki/Kronecker_symbol
  
      """
      return int(kronecker(as_int(a), as_int(n)))
  
imports: from __future__ import annotations
  from sympy.external.gmpy import gcd, lcm, invert, sqrt, legendre, jacobi, kronecker, bit_scan1, remove
  from sympy.polys import Poly
  from sympy.polys.domains import ZZ
  from sympy.polys.galoistools import gf_crt1, gf_crt2, linear_congruence, gf_csolve
  from .primetest import isprime
  from .factor_ import factorint, _perfect_power
  from .modular import crt
  from sympy.utilities.decorator import deprecated
  from sympy.utilities.memoization import recurrence_memo
  from sympy.utilities.misc import as_int
  from sympy.utilities.iterables import iproduct
  from sympy.core.random import _randint, randint
  from itertools import product
label_desc: Use image node_id 21 for calling a global function with example usage: kronecker_symbol(a, n) and returns: int