Jacobi symbols and application to primality

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

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

MATH342 Practice Exam

RECIPROCITY LAWS JEREMY BOOHER

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

Algebraic number theory LTCC Solutions to Problem Sheet 2

MATH 371 Class notes/outline October 15, 2013

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

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

QUADRATIC RECIPROCITY

MATH 3240Q Introduction to Number Theory Homework 7

Class Field Theory. Peter Stevenhagen. 1. Class Field Theory for Q

t s (p). An Introduction

Frobenius Elements, the Chebotarev Density Theorem, and Reciprocity

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,

LECTURE 10: JACOBI SYMBOL

Quadratic Reciprocity

QUADRATIC RECIPROCITY

MATH 361: NUMBER THEORY EIGHTH LECTURE

QUADRATIC RECIPROCITY

CS 6260 Some number theory. Groups

arxiv: v2 [math.nt] 9 Oct 2018

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

Mobius Functions, Legendre Symbols, and Discriminants

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

MATH 371 Class notes/outline September 24, 2013

2 Asymptotic density and Dirichlet density

DISCRIMINANTS IN TOWERS

MAT 311 Solutions to Final Exam Practice

MATH 361: NUMBER THEORY ELEVENTH LECTURE

HOMEWORK # 4 MARIA SIMBIRSKY SANDY ROGERS MATTHEW WELSH

2 Asymptotic density and Dirichlet density

THE THEORY OF NUMBERS IN DEDEKIND RINGS

3 Properties of Dedekind domains

PartII Number Theory

Chapter 3. Number Theory. Part of G12ALN. Contents

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018

RINGS OF INTEGERS WITHOUT A POWER BASIS

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

HENSEL S LEMMA KEITH CONRAD

LARGE GAPS BETWEEN CONSECUTIVE PRIME NUMBERS CONTAINING SQUARE-FREE NUMBERS AND PERFECT POWERS OF PRIME NUMBERS

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

Elementary Number Theory

DIRICHLET S THEOREM ON PRIMES IN ARITHMETIC PROGRESSIONS. 1. Introduction

Pseudorandom Sequence Generation

Advanced Cryptography Midterm Exam

1 Integers and the Euclidean algorithm

Modeling Chebyshev s Bias in the Gaussian Primes as a Random Walk

MATH 210A, FALL 2017 HW 5 SOLUTIONS WRITTEN BY DAN DORE

Probabilistic Algorithms

The Jacobi Symbol. q q 1 q 2 q n

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

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

QUADRATIC FORMS, BASED ON (A COURSE IN ARITHMETIC BY SERRE)

On the Multiplicative Order of a n Modulo n

Math 104B: Number Theory II (Winter 2012)

arxiv: v2 [math.nt] 11 Jun 2016

Practice Final Solutions

Degree in Mathematics

RECIPROCITY, BRAUER GROUPS AND QUADRATIC FORMS OVER NUMBER FIELDS

Algebraic Number Theory

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

Mersenne and Fermat Numbers

Number Theory. Lectured by V. Neale Michaelmas Term 2011

Practice Final Solutions

Excerpt from "Intermediate Algebra" 2014 AoPS Inc.

MA3H1 Topics in Number Theory. Samir Siksek

By Evan Chen OTIS, Internal Use

Genus theory and the factorization of class equations over F p

MATH 242: Algebraic number theory

arxiv: v1 [math.nt] 9 Sep 2015

QUADRATIC RESIDUES AND DIFFERENCE SETS

Almost All Palindromes Are Composite

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

GAUSSIAN INTEGERS HUNG HO

When do Fibonacci invertible classes modulo M form a subgroup?

YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE

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

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

16 The Quadratic Reciprocity Law

An Overview of Witt Vectors

Galois representations on torsion points of elliptic curves NATO ASI 2014 Arithmetic of Hyperelliptic Curves and Cryptography

Introductory Number Theory

CONGRUENCE PROPERTIES MODULO 5 AND 7 FOR THE POD FUNCTION

Diophantine Equations

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

GENERALIZED FACTORIZATION

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).

Super Congruences. Master s Thesis Mathematical Sciences

Part II. Number Theory. Year

DIRICHLET S THEOREM ABOUT PRIMES IN ARITHMETIC PROGRESSIONS. Contents. 1. Dirichlet s theorem on arithmetic progressions

Analytic number theory and quadratic reciprocity

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

Class number in non Galois quartic and non abelian Galois octic function fields over finite fields

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

On the Greatest Prime Divisor of N p

#A37 INTEGERS 15 (2015) NOTE ON A RESULT OF CHUNG ON WEIL TYPE SUMS

Unit Groups of Semisimple Group Algebras of Abelian p-groups over a Field*

Small Zeros of Quadratic Forms Mod P m

A FEW EQUIVALENCES OF WALL-SUN-SUN PRIME CONJECTURE

Transcription:

Jacobi symbols and alication to rimality Setember 19, 018 1 The grou Z/Z We review the structure of the abelian grou Z/Z. Using Chinese remainder theorem, we can restrict to the case when = k is a rime ower. If k = 1 the grou is cyclic. Assume k. The cardinality of Z/ k Z is k. Since and k are corime, the grou Z/ k Z is the direct roduct of two subgrous with resective orders 1 and k. One can be more recise. We have the eact seuence 1 U 1 Z/ k Z F 1 1 where U 1 is the subgrou of all mod k such that 1 mod. Let V be the grou of solutions to the euation = 1. According to Hensel lemma, there are at least 1 such roots, and reduction modulo is a bijection from V onto F. The intersection of V and U 1 is trivial. For every n 1 let U n Z/Z be the subgrou consisting of all residues congruent to 1 modulo n. So {1} = U k U k... U 1. For every 1 n k 1, the uotient U n /U n+1 is cyclic of order and 1 + n is a generator of it. Indeed, the ma 1 + a n mod n+1 a mod is and isomorhism from U n /U n+1, onto Z/Z, +. Lemma 1 Let n be an integer such that 1 n k if 3 and n k if =. Let U n U n+1. Then U n+1 U n+. Indeed = 1 + a n and a is rime to. If 3 one comutes = 1+a n = 1+a n+1 + a m nm +a n 1+a n+1 mod n+ m since n n +. If = and n then m = 1 + a n = 1 + a n+1 + a n 1 + a n+1 mod n+ 1

since n n +. We deduce that if 3 then U 1 is cyclic of order k and 1 + is a generator. For =, we only rove that U is cyclic of order k and 5 is a generator. If is odd the grou Z/ k Z is isomorhic to Z/ 1Z Z/ k Z. For = one checks that U 1 = {1, } U so Z/ k Z is isomorhic to Z/Z Z/ k Z. The Legendre symbol Let be and odd rime. For every integer one defines the Legendre symbol as follows : 1. = 0 if divides,. = 1 if is a non-zero suare modulo, 3. = if is not a suare modulo. The ma is a grou homomorhism from F onto {1, }. One checks that = mod. So we obtain a first method to comute this Legendre symbol. The famous uadratic recirocity law states that Theorem 1 If and are two odd ositive distinct rimes then = 4. There are many roofs for this theorem. For eamle set Φ = 1 + + + and let A F [] be an irreducible factor of Φ modulo. Set L = F []/A and let ζ = mod A L. This is a -th root of unity in the field L. Question 1 Show that ζ is a rimitive -th root of unity its multilicative order is eactly.

The so called Gauss sum τ = F ζ is an element of the field L. One can show that τ = L. So τ is a suare root of in the algebraic closure of F. This suare root is in F if and only if τ = τ. On checks that τ = τ. So is a suare modulo if and only if = 1. This finishes the roof. We shall need also the following theorem Theorem For an odd rime = 8. Observe that if is an odd integer then = 1 + k and k + 1 = 1 + 4kk + 1 = 1 + 8 is congruent to 1 modulo 8. And kk + 1/ is even if and only if k is congruent to 0 or 3 modulo 4 that is congruent to 1 or 7 modulo 8. ow let A F [] be an irreducible factor of 4 + 1 modulo and set ζ = mod A the class of in F []/A. Question Prove that ζ is a rimitive 8-th root of 1. One checks that ζ + ζ =. So we have a suare root of in the algebraic closure of F. So is a suare if and only if this suare root is in F that is α = α. But α = ζ + ζ where the eonents only matter modulo 8. If is congruent to 1 or modulo 8 one deduces that α = α. If is congruent to 3 or 5 modulo 8 one checks that α = α. This roves formula and the theorem. 3 The Jacobi symbol Assume 3 is an odd integer and let = i e i i its rime decomosition. The Jacobi symbol is defined as a generalization of the Legendre symbol. One sets = ei. i i 3

This symbol only deends on the congruence class of modulo. It has many evident multilicative roerties inherited from the Lengendre symbol. For a eamle = 0 if and only if a are b not corime. b The uadratic recirocity law etends to this symbol. Theorem 3 Gauss Let M 3 and 3 two odd corime integers. One has = M, = M 8, and M M M = M 4. M Thanks to this theorem we can uickly comute the Jacobi symbol by successive Euclidean divisions. ote that if is not a rime, the Jacobi symbol does not distinguish uadratic residues. For eamle if = is the roduct of two odd rimes and if is rime to then = 1 means that either is a suare modulo and modulo, or that is not a suare modulo nor modulo. In the latter case one sometimes says that is a false suare. 4 The Solovay-Strassen rimality test Let be an odd integer. Let χ 1 : Z/Z Z/Z and χ : Z/Z Z/Z be the two grou homomorhisms defined by and χ 1 : mod χ : mod. We set χ 0 = χ /χ 1. It is evident that χ 0 is trivial if is a rime. One has the Lemma If is odd and comosite, then there eists an mod in Z/Z such that χ 0 1. Assume first that is divisible by a non-trivial suare : there eists an odd rime and an integer k such that k divides eactly. Set M = / k. Let G Z/Z be the subgrou consisting of all residues congruent to 1 modulo M. This is a cyclic grou of order k. The restriction of the Jacobi symbol to this sub-grou is trivial. The restriction of χ 1 is not because is rime to. Assume now that is suare-free. Let be an odd rime factor of and set M = /. Let be an integer congruent to 1 modulo M and which is not a suare modulo. Then χ = and χ 1 = 1 mod M. So χ 1 χ. 4

If is an odd comosite integer then the kernel of χ 0 is a strict subgrou of Z/Z. Its cardinality is. We have at least one chance over two to find χ 0 1 if is chosen at random uniformly in Z/Z. Since we have olynomial time algorithms to comute χ 1 and χ we obtain a robabilistic rimality test : 1. check that is odd;. ick at random in Z/Z and comute χ 1 and χ ; 3. if χ 1 χ, one knows that is comosite; 4. if χ 1 = χ, one cannot conclude... but one can try again! If is odd and comosite and if Z/Z is such that χ 1 = χ, one says that is a false witness. The roortion of false witnesses is at most 1/. 5