To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

Similar documents
An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

NUMBER THEORY AMIN WITNO

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

Math 127: Equivalence Relations

Discrete Square Root. Çetin Kaya Koç Winter / 11

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

Foundations of Cryptography

Quadratic Residues. Legendre symbols provide a computational tool for determining whether a quadratic congruence has a solution. = a (p 1)/2 (mod p).

Is 1 a Square Modulo p? Is 2?

MAT Modular arithmetic and number theory. Modular arithmetic

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

MTH 3527 Number Theory Quiz 10 (Some problems that might be on the quiz and some solutions.) 1. Euler φ-function. Desribe all integers n such that:

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00

The Chinese Remainder Theorem

#A3 INTEGERS 17 (2017) A NEW CONSTRAINT ON PERFECT CUBOIDS. Thomas A. Plick

SOLUTIONS FOR PROBLEM SET 4

Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers.

Modular Arithmetic. Kieran Cooney - February 18, 2016

Carmen s Core Concepts (Math 135)

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

Solutions for the Practice Questions

Primitive Roots. Chapter Orders and Primitive Roots

Wilson s Theorem and Fermat s Theorem

Assignment 2. Due: Monday Oct. 15, :59pm

1.6 Congruence Modulo m

An elementary study of Goldbach Conjecture

Applications of Fermat s Little Theorem and Congruences

Discrete Math Class 4 ( )

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Introduction to Number Theory 2. c Eli Biham - November 5, Introduction to Number Theory 2 (12)

PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number.

Exam 1 7 = = 49 2 ( ) = = 7 ( ) =

The Chinese Remainder Theorem

University of British Columbia. Math 312, Midterm, 6th of June 2017

Math 255 Spring 2017 Solving x 2 a (mod n)

Practice Midterm 2 Solutions

ON THE EQUATION a x x (mod b) Jam Germain

Modular Arithmetic. claserken. July 2016

CHAPTER 2. Modular Arithmetic

The Strong Finiteness of Double Mersenne Primes and the Infinity of Root Mersenne Primes and Near-square Primes of Mersenne Primes

Distribution of Primes

PRIMES IN SHIFTED SUMS OF LUCAS SEQUENCES. Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania

ALGEBRA: Chapter I: QUESTION BANK

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Goldbach Conjecture (7 th june 1742)

Solutions for the Practice Final

A REMARK ON A PAPER OF LUCA AND WALSH 1. Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China. Min Tang 2.

Number Theory. Konkreetne Matemaatika

BAND SURGERY ON KNOTS AND LINKS, III

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst

MA/CSSE 473 Day 9. The algorithm (modified) N 1

MT 430 Intro to Number Theory MIDTERM 2 PRACTICE

5 Symmetric and alternating groups

Sheet 1: Introduction to prime numbers.

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

Cryptography CS 555. Topic 20: Other Public Key Encryption Schemes. CS555 Topic 20 1

Chapter 4 Cyclotomic Cosets, the Mattson Solomon Polynomial, Idempotents and Cyclic Codes

The covering congruences of Paul Erdős. Carl Pomerance Dartmouth College

Math 412: Number Theory Lecture 6: congruence system and

Zhanjiang , People s Republic of China

Introduction to Modular Arithmetic

arxiv:math/ v2 [math.ho] 23 Aug 2008

FORBIDDEN INTEGER RATIOS OF CONSECUTIVE POWER SUMS

Fermat s little theorem. RSA.

Number Theory/Cryptography (part 1 of CSC 282)

Fall. Spring. Possible Summer Topics

by Michael Filaseta University of South Carolina

Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

A theorem on the cores of partitions

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

Multiples and Divisibility

Two congruences involving 4-cores

A Study of Relationship Among Goldbach Conjecture, Twin prime and Fibonacci number

Implementation / Programming: Random Number Generation

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups.

x 8 (mod 15) x 8 3 (mod 5) eli 2 2y 6 (mod 10) y 3 (mod 5) 6x 9 (mod 11) y 3 (mod 11) So y = 3z + 3u + 3w (mod 990) z = (990/9) (990/9) 1

The Sign of a Permutation Matt Baker

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Final exam. Question Points Score. Total: 150

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey

MATHEMATICS ON THE CHESSBOARD

Solutions for the 2nd Practice Midterm

Cryptography, Number Theory, and RSA

Math 319 Problem Set #7 Solution 18 April 2002

arxiv: v3 [math.co] 4 Dec 2018 MICHAEL CORY

Diffie-Hellman key-exchange protocol

Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS

Outline Introduction Big Problems that Brun s Sieve Attacks Conclusions. Brun s Sieve. Joe Fields. November 8, 2007

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.

Countability. Jason Filippou UMCP. Jason Filippou UMCP) Countability / 12

The tenure game. The tenure game. Winning strategies for the tenure game. Winning condition for the tenure game

Transcription:

Quadratic Reciprocity To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we need to be able to evaluate q for any prime q. The first (and most delicate) case concerns 2. Proposition Let p be an odd prime. (1) p 1 (mod 8) 2 = 1 (2) p ±3 (mod 8) 2 = 1 p (3) p 1 (mod 8) 2 = 1 Proof (1) Let p = 8k +1. By F T, x 8k 1 (x 4k 1)(x 4k +1) 0 (mod p) has 8k solutions, whence by Lagrange s Theorem, each of the factor polynomials x 4k ±1 0 (mod p) must have 4k solutions. Since k must be positive, there must exist some integer a (necessarily prime to p) that satisfies a 4k +1 0 (mod p). But then (a 2k 1) 2 + 2(a k ) 2 a 4k +1 0 (mod p),

so (a 2k 1) 2 2(a k ) 2 (mod p). Multiplication (twice) by the inverse of a k yields {(a 2k 1)(a k ) 1 } 2 2 (mod p), whence 2 is a quadratic residue. (2) If p ±3 (mod 8) but 2 is a quadratic residue mod p, then there must be an integer a (0 < a < p) which satisfies the congruence x 2 2 (mod p). Indeed, we may assume that a is odd, else we can replace a with p a, which also satisfies this congruence and must have opposite parity from a. Then a 2 2 = pk for some odd number k. As pk = a 2 2 < a 2 < p 2, it follows that k < p. Now, for any prime factor q of k which is also smaller than p we must have a 2 2 (modq). If q ±3 (mod 8), then we can apply this same argument to find an even smaller prime for which 2 is a quadratic residue; by this process, eventually we must come to the smallest prime congruent to ±3 (mod 8) for which 2 is a quadratic residue. For simplicity, let us suppose it was p itself. Then every prime factor q of k referred to above is not congruent to ±3 (mod 8). So q ±1 (mod 8) for all such q, whence k ±1 (mod 8) as well. Therefore, a 2 2 pk ±3 ±1 ±3 (mod 8) a 2 5, 1 (mod 8). But this is impossible, since neither 5 nor 1 is a quadratic residue mod 8. This contradiction shows that 2 must be a quadratic nonresidue mod p.

(3) As in the argument in (2) above, assume that p 1 (mod 8) but that 2 is a quadratic residue mod p; then there must be an integer a (0 < a < p) which satisfies the congruence x 2 2 (mod p) and is odd (else we can replace it with p a). As before, a 2 + 2 = pk for some odd k. As pk = a 2 + 2 < (p 1) 2 2 < p 2, it follows that k < p. Thus, for any prime factor q of k which must be smaller than p we must have a 2 2 (modq). We may assume that p is the smallest prime factor of a 2 + 2 of the form 8k 1, else we can transfer this argument to whichever prime does satisfy this property. So we have that every prime factor q of k referred to above is not congruent to 1(mod 8). If q 3 (mod 8), then a 2 2 (modq) 2 = 1, but q 1 q 1 (mod 4), so 2 = 1 2 = 1, q q q q contradicting (2) above. So it must be that q 1 or 3 (mod 8). But the product of primes of this type is also of this type, so k 1 or 3 (mod 8) and it follows that a 2 + 2 = pk ( 1)k 1 or 3 (mod 8). But then a 2 3, 5 ±3 (mod 8), which is impossible since 3 and 3 are both quadratic nonresidues mod 8. //

Corollary If p is an odd prime, 2 = ( 1) ( p2 1)/8. Proof Left as an exercise. // There are a number of interesting consequences that flow from knowing the quadratic character of 2 mod p. Corollary There are infinitely many primes p 3 (mod8). Proof Suppose there are only finitely many, namely the primes p 1, p 2,, p k. Let N = (p 1 p 2 p k ) 2 + 2. Then any prime q that divides N satisfies (p 1 p 2 p k ) 2 + 2 0 (mod q), whence 2 is a quadratic residue mod q. It follows that q 1 or 3 (mod 8). If all the prime factors of N were of the form q 1 (mod 8), then N 1 (mod 8), but this would mean that (p 1 p 2 p k ) 2 + 2 1 (mod 8) (p 1 p 2 p k ) 2 1 (mod 8), contradicting that 1 is a quadratic nonresidue mod 8. So at least one of the prime factors q of N, which is necessarily not one of p 1, p 2,, p k, must be congruent to 3 (mod 8), contradicting the fact that we had already listed all primes of this type among the p s. //

Corollary Let p be a Germain prime, i.e., a prime for which q = 2p + 1 is also prime (named after Sophie Germain, 1776-1831, a student of Gauss and Legendre). If also p > 3 and p 3 (mod4), then the Mersenne number M p = 2 p 1 is composite. Proof Since p = 4k + 3 for some k, q = 8k + 7, 2 is a quadratic residue mod q. By Euler s Criterion, 2 (q 1)/2 1 (mod q), so q 2 (q 1)/2 1 = 2 p 1 = M p. Since p > 3, we have 2 p 1 > p +1 (true for all integers p > 3, not just for primes), so 2 p > 2p + 2 M p > q. Thus, M p is composite. // Now let s consider the quadratic character of the prime 3 mod p. Proposition If p > 3 is prime, 3 p p (mod 3). Proof If p 1 (mod3), then p = 3k +1 for some k and so 4(x 3k 1) = (x k 1)(4x 2k + 4x k + 4) = (x k 1)((2x k +1) 2 + 3) Working mod p, we know that the polynomial on the left has 3k roots (F T) so the two factors on the

right have a full complement of roots as well. In particular, the congruence (2x k +1) 2 3 (mod p) has 2k solutions. Since 2x k +1 0 (mod p) can have at most k solutions, there must be a nonzero solution y 2x k +1 (mod p) to y 2 3 (mod p). On the other hand, if 3 = 1, then there is a nonzero solution to y 2 3 (mod p). As there are two solutions of opposite parity, we may take y to be the odd one. If y = 2z +1, then 4(z 2 + z +1) (2z +1) 2 + 3 y 2 +3 0 (mod p) whence z 2 + z +1 0 (mod p) z 3 1 0 (mod p). That is, z has order 3 mod p. But then 3 p 1, so p 1 (mod3). // Corollary 3 = 1 iff p ±1 (mod12). 3 Proof = 1 3 = 1 when 1 = 3. These p two symbols are both equal to 1 when p is congruent to 1 modulo 3 and 4, and both equal 1 when p is congruent to 1 modulo 3 and 4. //