Download Elementary Number Theory
Transcript
Proof. Stop by my office hours to see a panoply of cool proofs! The quadratic reciprocity law gives us an extremely efficient way to compute whether an odd prime p is a quadratic residue modulo a larger prime q. Indeed, it implies p−1 q−1 p q · 2 2 (66) = (−1) , q p and the value of pq depends only on the residue class of q modulo p, hence on the remainder upon long-dividing q by p. This remainder might no longer be prime, but the Legendre symbol is totally multiplicative, so we can break the remainder up into individual primes and compute the Legendre symbols of those, etc. In short, we have: Legendre’s Algorithm p Let p < q be odd primes. To compute q , compute the prime factorization q1e1 · · · qrer of the remainder upon long-dividing q by p, then compute the right-hand side of (67) r ei p−1 q−1 Y q qi · 2 2 = (−1) . p p i=1 Exercise 29. Compute the Legendre symbol 101 8191 . Exercise 30. Here we count, and find, the solutions of a quadratic congruence in an arbitrary modulus m ∈ N, not necessarily prime. 1. Show that if p is an odd prime and e ∈ N, then the number of residual solutions to x2 ≡ 1 (mod pe ) is 2, cf. Exercise 24(3). 2. Show that if e ∈ N, then the number of residual solutions to x2 ≡ 1 (mod 2e ) is ψ2 (e), where 1 e=1 2 e=2 (68) ψ2 (e) = 4 e≥3 3. Using Theorem 3.4, give a formula for the number of residual solutions to x2 ≡ 1 (mod m) in terms of the unique prime factorization of m. 4. Show that if [a]m , [x0 ]m ∈ (Z/mZ)× satisfy x20 ≡ a (mod m), then the general solution to x2 ≡ a (mod m) is x = x0 y, where [y]m ∈ (Z/mZ)× satisfies y 2 ≡ 1 (mod m). 5. Using part (4), show that the formula obtained in part (3) stays the same if we replace x2 ≡ 1 with x2 ≡ a for any [a]m ∈ (Z/mZ)× that yields at least one solution for x. 23