x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

Similar documents
MATH342 Practice Exam

Quadratic Residues, Quadratic Reciprocity. 2 4 So we may as well start with x 2 a mod p. p 1 1 mod p a 2 ±1 mod p

Math 104B: Number Theory II (Winter 2012)

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

Practice Final Solutions

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

QUADRATIC RECIPROCITY

QUADRATIC RECIPROCITY

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

Legendre polynomials and Jacobsthal sums

Practice Final Solutions

MATH 361: NUMBER THEORY EIGHTH LECTURE

Public Key Cryptosystems RSA

Algebraic number theory LTCC Solutions to Problem Sheet 2

A CRITERION FOR POLYNOMIALS TO BE CONGRUENT TO THE PRODUCT OF LINEAR POLYNOMIALS (mod p) ZHI-HONG SUN

MATH 3240Q Introduction to Number Theory Homework 7

Introduction to Arithmetic Geometry Fall 2013 Lecture #10 10/8/2013

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

Solvability and Number of Roots of Bi-Quadratic Equations over p adic Fields

Quadratic Reciprocity

LECTURE 10: JACOBI SYMBOL

Jacobi symbols and application to primality

Mobius Functions, Legendre Symbols, and Discriminants

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

Representing Integers as the Sum of Two Squares in the Ring Z n

6 Binary Quadratic forms

ERRATA AND SUPPLEMENTARY MATERIAL FOR A FRIENDLY INTRODUCTION TO NUMBER THEORY FOURTH EDITION

On the Diophantine Equation x 2 = 4q n 4q m + 9

HOMEWORK # 4 MARIA SIMBIRSKY SANDY ROGERS MATTHEW WELSH

The Jacobi Symbol. q q 1 q 2 q n

MA3H1 TOPICS IN NUMBER THEORY PART III

GAUSSIAN INTEGERS HUNG HO

Mersenne and Fermat Numbers

.4. Congruences. We say that a is congruent to b modulo N i.e. a b mod N i N divides a b or equivalently i a%n = b%n. So a is congruent modulo N to an

Factor Rings and their decompositions in the Eisenstein integers Ring Z [ω]

PROBLEM SET 5 SOLUTIONS. Solution. We prove that the given congruence equation has no solutions. Suppose for contradiction that. (x 2) 2 1 (mod 7).

#A47 INTEGERS 15 (2015) QUADRATIC DIOPHANTINE EQUATIONS WITH INFINITELY MANY SOLUTIONS IN POSITIVE INTEGERS

HENSEL S LEMMA KEITH CONRAD

THE DIOPHANTINE EQUATION x 4 +1=Dy 2

f(r) = a d n) d + + a0 = 0

CONGRUENCES CONCERNING LUCAS SEQUENCES ZHI-HONG SUN

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

MA3H1 Topics in Number Theory. Samir Siksek

When do Fibonacci invertible classes modulo M form a subgroup?

By Evan Chen OTIS, Internal Use

Solving the general quadratic congruence. y 2 Δ (mod p),

Multiplicative group law on the folium of Descartes

Cryptography Assignment 3

t s (p). An Introduction

Some sophisticated congruences involving Fibonacci numbers

RECIPROCITY LAWS JEREMY BOOHER

We collect some results that might be covered in a first course in algebraic number theory.

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018

MAT 311 Solutions to Final Exam Practice

A LLT-like test for proving the primality of Fermat numbers.

MATH 371 Class notes/outline October 15, 2013

Primes of the form ±a 2 ± qb 2

Zhi-Wei Sun Department of Mathematics, Nanjing University Nanjing , People s Republic of China

Diophantine Equations and Congruences

Primes - Problem Sheet 5 - Solutions

Number Theory Naoki Sato

On the Multiplicative Order of a n Modulo n

Algebraic Number Theory

Almost All Palindromes Are Composite

Chapter 3. Number Theory. Part of G12ALN. Contents

Verifying Two Conjectures on Generalized Elite Primes

SQUARES IN Z/NZ. q = ( 1) (p 1)(q 1)

CDH/DDH-Based Encryption. K&L Sections , 11.4.

BOUNDS FOR THE SIZE OF SETS WITH THE PROPERTY D(n) Andrej Dujella University of Zagreb, Croatia

MATH 2710: NOTES FOR ANALYSIS

MATH 152 NOTES MOOR XU NOTES FROM A COURSE BY KANNAN SOUNDARARAJAN

POINTS ON CONICS MODULO p

1 Integers and the Euclidean algorithm

RINGS OF INTEGERS WITHOUT A POWER BASIS

Introductory Number Theory

MATH 361: NUMBER THEORY ELEVENTH LECTURE

Number Theory. Lectured by V. Neale Michaelmas Term 2011

(Workshop on Harmonic Analysis on symmetric spaces I.S.I. Bangalore : 9th July 2004) B.Sury

#A64 INTEGERS 18 (2018) APPLYING MODULAR ARITHMETIC TO DIOPHANTINE EQUATIONS

16 The Quadratic Reciprocity Law

THE LEAST PRIME QUADRATIC NONRESIDUE IN A PRESCRIBED RESIDUE CLASS MOD 4

The Fibonacci Quarterly 44(2006), no.2, PRIMALITY TESTS FOR NUMBERS OF THE FORM k 2 m ± 1. Zhi-Hong Sun

Number Theory and Algebra: A Brief Introduction

p-adic Properties of Lengyel s Numbers

Quadratic Congruences, the Quadratic Formula, and Euler s Criterion

#A45 INTEGERS 12 (2012) SUPERCONGRUENCES FOR A TRUNCATED HYPERGEOMETRIC SERIES

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

MATH 371 Class notes/outline September 24, 2013

When do the Fibonacci invertible classes modulo M form a subgroup?

Bent Functions of maximal degree

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2. Contents. Introduction Study of an Elementary Proof

Frobenius Elements, the Chebotarev Density Theorem, and Reciprocity

On Character Sums of Binary Quadratic Forms 1 2. Mei-Chu Chang 3. Abstract. We establish character sum bounds of the form.

Characteristics of Fibonacci-type Sequences

Genus theory and the factorization of class equations over F p

Applicable Analysis and Discrete Mathematics available online at HENSEL CODES OF SQUARE ROOTS OF P-ADIC NUMBERS

ON FREIMAN S 2.4-THEOREM

MATH 242: Algebraic number theory

Elliptic Curves Spring 2015 Problem Set #1 Due: 02/13/2015

MAT4250 fall 2018: Algebraic number theory (with a view toward arithmetic geometry)

Transcription:

13. Quadratic Residues We now turn to the question of when a quadratic equation has a solution modulo m. The general quadratic equation looks like ax + bx + c 0 mod m. Assuming that m is odd or that b is even we can always comlete the square (the usual way) and so we are reduced to solving an equation of the form x a mod m. In fact, we are usually only interested in solving the equation modulo a rime, in which we are only missing the rime. Definition 13.1. We say a Z m is a quadratic residue of if a is a square modulo m, that is, the equation has a solution. x a mod m Theorem 13. (Euler s Criterion). Let be an odd rime. The congruence x a mod has a solution, that is, a is a quadratic residue of if and only if either divides a or a ( 1)/ 1. If a is not a quadratic residue then a ( 1)/ 1. Proof. If a then a 0 and 0 0 a mod, so that 0 is a quadratic residue of. Now suose that a is corime to. By assumtion there is an integer k such that k + 1. In this case If we ut then b a k b (a k ) a k a 1 k. 1 mod, by Fermat. Thus b is a solution of the equation x 1 mod, 1

so that b is a root of the olynomial x 1. As Z is a field, this olynomial has at most two roots. Now ±1 are two roots of this equation. It follows that b ±1 mod. Suose that a is a quadratic residue. Then c a mod for some integer c so that b a k (c ) k c 1 mod 1 mod, by Fermat. Thus a is a quadratic residue if and only if a is a root of the olynomial x k 1. This olynomial has at most k roots. But if a is corime to then the olynomial x a 0 mod, either has two solutions or no solutions. Thus recisely k residues classes are quadratic residues and so all of the roots of the olynomial x k 1 are quadratic residues. In fact it is ossible to write down, in some sense, the quadratic residues. Note that S { a Z k a k } is a comete residue system modulo. It follows that ±1 are the roots of x 1, ± are the roots of x, ±3 are the roots of x 3 and so on. It turns out to be very convenient to define a symbol which kees track of when a is a quadratic residue modulo a rime. Definition 13.3. Let be a rime and let a be an integer. We define the Legendre symbol by the rule: 0 if divides a. 1 if (a, ) 1 and a is a quadratic residue of. 1 if (a, ) 1 and a is not a quadratic residue of. Corollary 13.4. If is an odd rime and a Z then a ( 1)/ mod.

Proof. Immediate from (13.) and the definition of the Legendre symbol. Here are some of the key roerties of the Legendre symbol: Theorem 13.5. Let be an odd rime and let a and b be two integers. (1) If a b mod then (a ) ( ) b () If does not divide a then 1. (3) ( ) 1 ( 1) ( 1)/. Thus 1 is a quadratic residue if and only if 1 mod 4. (4) ( ) ( ) ( ) ab a b Proof. If a b mod then x a and x b have the same roots modulo. Thus (1) is clear. a is obviously a quadratic residue. Thus () is also clear. (13.) imlies that ( ) 1 ( 1) ( 1)/. If 4k + 1 then is even so that k, ( 1) ( 1)/ ( 1) k 1. Thus 1 is a quadratic residue of if 4k + 1. On the other hand, if 4k + 3 then k + 1, is odd so that ( 1) ( 1)/ ( 1) k+1 3 1.

Thus 1 is not a quadratic residue of if 4k + 3. This gives (3). If either a or b is a multile of then ab is also a multile of. Vice-versa, if ab is a multile of then one of a and b is a multile of. In this case b ( a ) ( ) b holds, as zero equals zero. Thus we may assume that a, b and ab are all corime to. In this case (a ) a ( 1)/ mod and Then This is (4). b (ab) ( 1)/ ( ) b b ( 1)/ mod. mod a ( 1)/ b ( 1)/ ( ) b mod. It seems worth ointing out that one case of (4) of (13.5) is straightforward. If a and b are quadratic residues then we may find α and β such that In this case α a mod and β b mod. (αβ) α β ab mod. Thus if a and b are quadratic residues then so is ab. In this case ( ) ( ) ( ) ab a b, holds as both sides are 1. Examle 13.6. Is 4 a quadratic residue modulo? We want to comute ( 4 4 ).

We have ( ) 4 ( ) ( 1 ) ( ) 3 ) ( ) 3 ( ( 1) 18 ( ) ( ) 3 We can also use ( ) ( ) 4 5 ( ) ( ) 1 5 ( ) 5 5