Quadratic Residues and Reciprocity - Applications
The theory of quadratic residues has far-reaching applications in solving Diophantine equations, primality testing, and understanding the factorization of primes in algebraic number fields. These applications demonstrate the power of quadratic reciprocity.
Quadratic reciprocity determines which primes can be represented as for various . For example:
- : An odd prime can be written as if and only if .
- : A prime can be written as if and only if .
- : A prime can be written as if and only if .
These results connect quadratic forms with prime factorization in quadratic number fields, a central theme in algebraic number theory.
The theorem predicts:
- (since )
- (since )
- (since )
But and (both ) cannot be written as sums of two squares.
This is connected to the factorization in : primes split in , while primes remain prime.
Given a prime and a quadratic residue modulo (i.e., ), the Tonelli-Shanks algorithm efficiently computes a solution to in expected polynomial time.
The algorithm runs in time when implemented with fast arithmetic.
This algorithm is crucial for elliptic curve cryptography, where we frequently need to extract square roots modulo large primes.
Find such that .
We know , so a solution exists. For (like ), the solution is particularly simple:
Verification: . ✓
The other solution is .
Let be an odd prime and consider the quadratic field where is squarefree. The prime splits, remains prime, or ramifies in according to:
- Splits: factors as if
- Inert: remains prime if
- Ramifies: divides if
This connection between quadratic residues and prime factorization in number fields is fundamental to algebraic number theory.
In , consider the prime :
We check .
So splits: in .
For : , so also splits.
For : , so splits as well.
The Solovay-Strassen primality test uses the Jacobi symbol: for odd composite , at least half of all bases with satisfy:
This provides a probabilistic primality test running in polynomial time.
These applications show how quadratic residues connect pure number theory with computational algorithms and algebraic structures.