Rotate the reciprocity gate to scoop up residues before they fall out of sync. Feel quadratic reciprocity in motion just below your latest calculation.
How it works: Each token channels a reciprocity rule. Keep captures streaking to amplify scores while the calculatorās inputs adjust spawn cadence, drift, and the focus cooldown.
The Jacobi symbol extends the Legendre symbol beyond primes to any odd positive integer . Manually evaluating it requires repeated applications of reciprocity laws and parity rulesāsteps that are easy to misapply. A calculator guarantees each property is executed in the right order and frees students to focus on conceptual understanding. Researchers and cryptographers also rely on quick symbol evaluations when prototyping algorithms or verifying textbook examples.
The symbol takes values in . For prime , it equals the Legendre symbol and indicates whether is a quadratic residue mod . For composite moduli, the symbol factorizes into Legendre symbols of each prime power in the factorization of : . Because factoring large is difficult, we typically compute the symbol recursively without explicit factorization.
Several identities make the computation efficient:
| Property | Formula |
|---|---|
| Multiplicativity | |
| Even numerator | |
| Reciprocity |
The even numerator rule depends on modulo ; if ā”1 or 7 mod 8 the value is 1, otherwise it is ā1. The reciprocity property introduces the famous sign flip when both arguments are congruent to 3 mod 4.
The calculator follows an iterative version of the classic recursive algorithm:
When the loop ends, the symbol is if ; otherwise the accumulated sign is returned.
To compute , first reduce 5 mod 9 (unchanged). Both numbers are odd, so apply reciprocity: because 5 ā”1 mod 4 and 9 ā”1 mod 4, no sign change occurs and we swap to . Reducing 9 mod 5 yields 4. Since 4 is even, we pull out powers of two. The evenānumerator rule with 5 ā”1 mod 8 gives =1Ā·1. The process ends with =1, so the original symbol equals 1. The calculator walks through these steps instantly.
Evaluate . Reducing and halving gives ; applying reciprocity with sign change yields . Reducing 21 mod 5 gives 1, so the symbol is ā1. Working through varied examples builds intuition for how signs accumulate.
The symbol underpins tests like SolovayāStrassen where random bases are chosen and
Adrien-Marie Legendre introduced the related Legendre symbol in the late eighteenth century, and Carl Gustav Jacobi later generalized the concept, leading to the term that bears his name. Their work on quadratic reciprocity laid the groundwork for modern algebraic number theory. Revisiting these symbols today connects classroom exercises with the grand narrative of mathematical discovery.
The algorithm assumes
For more numberātheory utilities, explore other quadratic residue and modular arithmetic tools that complement the Jacobi symbol.
Mastering the Jacobi symbol opens the door to deeper results in algebraic number theory and cryptography. This calculator provides immediate feedback while the accompanying article walks through the underlying logic, properties, and caveats. Use it to check homework, validate algorithms, or simply explore the elegant symmetries of quadratic reciprocity.