KroneckerSymbol
The Kronecker symbol (a/n): the Jacobi symbol extended to every integer n.
✓ checked against that system · ! checked, with disagreements (hover a chip)Fungrim
KroneckerSymbolWolfram LanguageKroneckerSymbol✓KroneckerSymbol(a, n)the Kronecker symbol .SageMath
kronecker(a, n)SymPykronecker_symbol(a, n)Oscarkronecker_symbol(ZZ(a), ZZ(n))Juliakronecker_symbol(ZZ(a), ZZ(n))Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer) -> integer | modular | always |
Details
- Agrees with JacobiSymbol wherever is odd and positive, and with LegendreSymbol where is also prime — this is the head above both.
- if , else 0; if , if .
- for even ; if ; if — this is the piece Jacobi's odd- restriction leaves out.
- Completely multiplicative in : .
- Bignum-safe: both arguments may exceed the double-precision range.
Plot
Examples
37 more kept as data, checked against the oraclesScope #
Applications #
Properties #
About
| Examples | 54 |
|---|---|
| Checked against | Wolfram Language 54 agreeSageMath 53 agreeSymPy 53 agreeOscar 50 agreeJulia 52 agree |
| Crosswalk | FungrimWolfram LanguageSageMathSymPyOscarJulia |
Implementation
mapped
oscarpackages/oracle/src/mappings.tsmapped
wolframpackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tskronecker_symbol is SymPy's extension of the Jacobi symbol to every integer n.
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.ts See also: JacobiSymbol, LegendreSymbol