JacobDem
Jacobi Symbol Demonstration
Calculate the Jacobi symbol step by step
How the Jacobi Symbol Works
The Jacobi symbol is a generalization of the Legendre symbol and is used in number theory:
- The Jacobi symbol is defined for odd positive integers
- It equals , , or depending on the quadratic residue properties
- The algorithm uses reduction modulo and the following properties:
- Multiplicativity: The symbol is multiplicative in both numerator and denominator: and
- Special values: and for odd
- Quadratic reciprocity: For odd coprime numbers and :
- These properties allow efficient computation through reduction and avoid direct factorization
- If then is not a quadratic residue modulo .
- If is prime and then is quadratic residue modulo .