Example: Modulo 11: Since Z p is cyclic, there is a generator. Let g be a generator of Z p.

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

LECTURE 9: QUADRATIC RESIDUES AND THE LAW OF QUADRATIC RECIPROCITY

MATH 118 PROBLEM SET 6

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.

Some Connections Between Primitive Roots and Quadratic Non-Residues Modulo a Prime

AQA Level 2 Further mathematics Further algebra. Section 3: Inequalities and indices

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

Shuli s Math Problem Solving Column

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:

NUMBER THEORY Amin Witno

Math 124 Homework 5 Solutions

Logarithms APPENDIX IV. 265 Appendix

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

MT 430 Intro to Number Theory MIDTERM 2 PRACTICE

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

Is 1 a Square Modulo p? Is 2?

x y z HD(x, y) + HD(y, z) HD(x, z)

CS 135: Computer Architecture I. Boolean Algebra. Basic Logic Gates

BOUNDS FOR OUT DEGREE EQUITABLE DOMINATION NUMBERS IN GRAPHS

3. Error Correcting Codes

Foundations of Cryptography

Revision: June 10, E Main Suite D Pullman, WA (509) Voice and Fax

SIZE OF THE SET OF RESIDUES OF INTEGER POWERS OF FIXED EXPONENT

POWERS OF 3RD ORDER MAGIC SQUARES

CS3203 #5. 6/9/04 Janak J Parekh

THE LUCAS TRIANGLE RECOUNTED. Arthur T. Benjamin Dept. of Mathematics, Harvey Mudd College, Claremont, CA Introduction

The Solution of the More General Traveling Salesman Problem

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

On the Fibonacci Sequence. By: Syrous Marivani LSUA. Mathematics Department. Alexandria, LA 71302

Alignment in linear space

30 HWASIN PARK, JOONGSOO PARK AND DAEYEOUL KIM Lemma 1.1. Let =2 k q +1, k 2 Z +. Then the set of rimitive roots modulo is the set of quadratic non-re

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

PERMUTATIONS AND COMBINATIONS

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

Chapter (6) Discrete Probability Distributions Examples

arxiv: v2 [math.co] 15 Oct 2018

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

Permutation Enumeration

TR : Optimal Reversible Quantum Circuit for Multiplication

Combinatorics. Chapter Permutations. Reading questions. Counting Problems. Counting Technique: The Product Rule

Math Circles Finite Automata Question Sheet 3 (Solutions)

L29&30 - RSA Cryptography

AMC AMS AMR ACS ACR ASR MSR MCR MCS CRS

1. How many possible ways are there to form five-letter words using only the letters A H? How many such words consist of five distinct letters?

On the Binomial Coefficients and their Interpolation *

On the Binomial Coefficients and their Interpolation *

AMC AMS AMR ACS ACR ASR MSR MCR MCS CRS

Mod. Notations. Primary definition. Specific values. Traditional name. Traditional notation. Mathematica StandardForm notation. Specialized values

Domination and Independence on Square Chessboard

CDS 270-2: Lecture 6-3 Optimum Receiver Design for Estimation over Wireless Links

Unit 1: Chapter 4 Roots & Powers

Example. Check that the Jacobian of the transformation to spherical coordinates is

Unit 5: Estimating with Confidence

4.3 COLLEGE ALGEBRA. Logarithms. Logarithms. Logarithms 11/5/2015. Logarithmic Functions

GENERATE AND MEASURE STANDING SOUND WAVES IN KUNDT S TUBE.

On Parity based Divide and Conquer Recursive Functions

8. Combinatorial Structures

Enhanced LUT For Modified Distributed Arithematic Architecture - FIR Filter

PRACTICAL FILTER DESIGN & IMPLEMENTATION LAB

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

EECE 301 Signals & Systems Prof. Mark Fowler

MAXIMUM FLOWS IN FUZZY NETWORKS WITH FUNNEL-SHAPED NODES

Fingerprint Classification Based on Directional Image Constructed Using Wavelet Transform Domains

We often find the probability of an event by counting the number of elements in a simple sample space.

Counting on r-fibonacci Numbers

Counting and Probability CMSC 250

Francis Gaspalou Second edition of February 10, 2012 (First edition on January 28, 2012) HOW MANY SQUARES ARE THERE, Mr TARRY?

PERMUTATION AND COMBINATION

General Model :Algorithms in the Real World. Applications. Block Codes

Western Number Theory Problems, 17 & 19 Dec 2016

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 12

On Decidability of LTL Model Checking for Process Rewrite Systems

CHAPTER 5 A NEAR-LOSSLESS RUN-LENGTH CODER

Section 17.2: Line Integrals. 1 Objectives. 2 Assignments. 3 Maple Commands. 1. Compute line integrals in IR 2 and IR Read Section 17.

信號與系統 Signals and Systems

Public-Key Cryptosystem Based on Composite Degree Residuosity Classes. Paillier Cryptosystem. Harmeet Singh

(CATALYST GROUP) B"sic Electric"l Engineering

信號與系統 Signals and Systems

Conjectures and Results on Super Congruences

Cross-Layer Performance of a Distributed Real-Time MAC Protocol Supporting Variable Bit Rate Multiclass Services in WPANs

EE Controls Lab #2: Implementing State-Transition Logic on a PLC

An Application of Assignment Problem in Laptop Selection Problem Using MATLAB

Procedia - Social and Behavioral Sciences 128 ( 2014 ) EPC-TKS 2013

Lecture 29: Diode connected devices, mirrors, cascode connections. Context

Laboratory Exercise 3: Dynamic System Response Laboratory Handout AME 250: Fundamentals of Measurements and Data Analysis

Stability A Simple Example

}, how many different strings of length n 1 exist? }, how many different strings of length n 2 exist that contain at least one a 1

Number Theory/Cryptography (part 1 of CSC 282)

Theme: Don t get mad. Learn mod.

GENERALIZED FORM OF A 4X4 STRONGLY MAGIC SQUARE

20. CONFIDENCE INTERVALS FOR THE MEAN, UNKNOWN VARIANCE

7. Counting Measure. Definitions and Basic Properties

Ch 9 Sequences, Series, and Probability

Module 9. DC Machines. Version 2 EE IIT, Kharagpur

DUBLIN CITY UNIVERSITY

Technical Explanation for Counters

Network reliability analysis for 3G cellular topology design

PERMUTATIONS AND COMBINATIONS

The Chinese Remainder Theorem

Skills Practice Skills Practice for Lesson 4.1

Transcription:

Qudrtic Residues Defiitio: The umbers 0, 1,,, ( mod, re clled udrtic residues modulo Numbers which re ot udrtic residues modulo re clled udrtic o-residues modulo Exmle: Modulo 11: Itroductio to Number Theory i 0 1 3 4 5 6 7 9 10 i mod 11 0 1 4 9 5 3 3 5 9 4 1 There re six udrtic residues modulo 11: 0, 1, 3, 4, 5, d 9 There re five udrtic o-residues modulo 11:, 6, 7,, 10 c Eli Bihm - My 3, 005 34 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 349 Itroductio to Number Theory (1 Qudrtic Residues (cot Lemm: Let be rime Exctly hlf of the umbers i Z re udrtic residues With 0, exctly +1 umbers i Z re udrtic residues There re t most +1 udrtic residues, sice 0 1 ( 1 (mod ( (mod i ( i (mod i Thus, ll the elemets i Z s t most +1 udrtic residues There re t lest +1 udrtic residues, otherwise, for some i j / it holds tht i ( i j ( j, i cotrst to Lgrge theorem tht sttes tht the eutio x i 0 hs t most two solutios (mod Qudrtic Residues (cot Sice Z is cyclic, there is geertor Let g be geertor of Z 1 g is udrtic o-residue modulo, sice otherwise there is some b such tht b g (mod Clerly, b 1 (mod, d thus g b 1 (mod However, the order of g is 1 Cotrdictio QED g, g 4,, g ( mod re udrtic residues, d re distict, therefore, there re t lest udrtic residues 3 g, g 3, g 5,, g ( mod re udrtic o-residues, sice if y of them is udrtic residue, g is lso udrtic residue c Eli Bihm - My 3, 005 350 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 351 Itroductio to Number Theory (1

Euler s Criterio Theorem: Let be rime, d let Z The, is udrtic residue modulo iff 1 (mod ( If is udrtic residue, there is some b such tht b Thus, (b b 1 (mod (mod Euler s Criterio (cot ( If is udrtic o-residue: For y r there is uiue s such tht rs (mod, ie, s r, d there is o r r such tht s r Sice is udrtic o-residue, r s (mod Thus, the umbers 1,, 3,, 1 re divided ito distict irs (r 1, s 1, (r, s,, (r, s, such tht r i s i, d we get r 1 s 1 r s r s 1 ( 1 (mod by Wilso s theorem QED c Eli Bihm - My 3, 005 35 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 353 Itroductio to Number Theory (1 Qudrtic Residues Modulo Let d be lrge rimes d let (s i RSA Theorem: Let m Z If m is udrtic residue modulo, the m hs exctly four sure roots modulo i Z Assume α m (mod The gcd(m, 1 gcd(α, 1 gcd(α, 1 α Z d sice the m α (mod m α (mod m α (mod m hs two sure roots modulo (α mod d α mod d two sure roots modulo (α mod d α mod Qudrtic Residues Modulo (cot Look t the systems of eutios x ±α (mod x ±α (mod which rereset four systems (oe of ech ossible choice of ± Ech system hs uiue solutio modulo which stisfies d thus stisfies x m (mod x m (mod x m (mod All the four solutios re roots of m modulo These re ll the roots Otherwise there must be more th two roots either modulo or modulo QED c Eli Bihm - My 3, 005 354 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 355 Itroductio to Number Theory (1

Qudrtic Residues Modulo (cot Coclusio: Exctly urter of the umbers i Z re udrtic residues modulo Legedre s Symbol Defiitio: Let be rime such tht Legedre s symbol of over is +1, if is udrtic residue modulo ;, if is udrtic o-residue modulo By Euler: (mod c Eli Bihm - My 3, 005 356 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 357 Itroductio to Number Theory (1 Legedre s Symbol (cot Proerties of Legedre s symbol: 1 (mod ( ( 1 ( c 1 c ( 3 ( 1, if 4k + 1;, if 4k + 3 ( (mod ( 4k+1 ( 4k+3 ( k 1, if 4k + 1; ( k+1, if 4k + 3 4 ( ( (give without roof 5 ( ( ( b b Legedre s Symbol (cot Let g be geertor modulo The, i, g i (mod d j, b g j (mod is udrtic residue iff i is eve, b is udrtic residue iff j is eve, d b is udrtic residue iff i + j is eve Thus, by Euler: b ( i+j ( i ( j b (mod c Eli Bihm - My 3, 005 35 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 359 Itroductio to Number Theory (1

Legedre s Symbol (cot 6 The recirocity lw: if re both odd rimes the Jcobi s Symbol Jcobi s symbol is geerliztio of Legedre s symbol to comosite umbers (give without roof ( Defiitio: Let be odd, d let 1,,, k be the rime fctors of (ot ecessrily distict such tht 1 k Let be corime to Jcobi s symbol of over is 1 k I rticulr, for c Eli Bihm - My 3, 005 360 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 361 Itroductio to Number Theory (1 Remrks: Jcobi s Symbol (cot 1 Z is udrtic residue modulo iff the Legedre s symbols over ll the rime fctors re 1 Whe Jcobi s symbol is 1, is ot ecessrily udrtic residue 3 Whe Jcobi s symbol is -1, is ecessrily udrtic o-residue Proerties of Jcobi s symbol: Jcobi s Symbol (cot Let m d be itegers, d let d b be corime to m d Assume tht is odd d tht the fctoriztio of is 1 k 1 b (mod ( ( b ( 1 1 (1 is udrtic residue modulo y 3 ( ( 1 k (( 1 1 + 1(( 1 + 1 (( k 1 + 1 oeig retheses: ( i 1 i S S {1,,,k} c Eli Bihm - My 3, 005 36 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 363 Itroductio to Number Theory (1

Jcobi s Symbol (cot S {1,,,k} S i S ( i 1 + i {1,,,k} ( i 1 + 1 [( 1 1( 1 ( k 1 + ] + ( 1 1 + ( 1 + + ( k 1 + 1 where ll the terms with S (i the brckets re multiles of four, d ll the i 1 re eve Thus, d 1 ( 1 1 1 + ( 1 k + + ( k 1 (mod, ( ( 1/ ( ( / ( ( k/ ( ( 1/+( /++( k / ( (/ c Eli Bihm - My 3, 005 364 Itroductio to Number Theory (1 Jcobi s Symbol (cot 4 ( ( We sw tht ( (, thus: 1 It remis to show tht 1 1 1 ( 1 k + 1 + + k 1 + + + k (mod 1 (1 + ( 1 1(1 + ( 1 1 + ( 1 1 + ( 1 + ( 1 1( 1 But ( 1 1 d ( 1, thus 64 ( 1 1( 1 Therefore, 1 1 + ( 1 1 + ( 1 (mod 16 c Eli Bihm - My 3, 005 365 Itroductio to Number Theory (1 Ad, Jcobi s Symbol (cot 1 3 (1 + ( 1 1(1 + ( 1(1 + ( 3 1 (mod 16 1 + ( 1 1 + ( 1 + ( 3 1 (mod 16 etc, thus, 1 + ( 1 1 + ( 1 + + ( k 1 (mod 16 Jcobi s Symbol (cot 5 The first multilictio roerty: ( ( ( m m (if is corime to m it is corime to m d to ; the rest is derived directly from the defiitio 6 The secod multilictio roerty: ( ( ( b b (if b is corime to, the both d b re corime to ; the rest is derived sice this roerty holds for Legedre s symbol 1 1 1 + 1 + + k 1 (mod c Eli Bihm - My 3, 005 366 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 367 Itroductio to Number Theory (1

Jcobi s Symbol (cot 7 The recirocity lw: if m, re corime d odd the m ( m First ssume tht m is rime, thus, 1 m k By the recirocity lw of Legedre s symbol we kow tht Thus, i ( ( i i ( 1 ++ k 1 }{{ k } c Eli Bihm - My 3, 005 36 Itroductio to Number Theory (1 ( We sw i roerty 3 tht, thus, 1 Jcobi s Symbol (cot ( 1 1 Now for y odd m: QED m 1 1 + ( 1 ( ( m + + ( k 1 l l m ( ( 1 ++ l (mod, c Eli Bihm - My 3, 005 369 Itroductio to Number Theory (1 Alictio of Jcobi s Symbol: Jcobi s Symbol (cot Usig the roerties of Jcobi s symbol, it is esy to clculte Legedre s symbols i olyomil time Exmle: 117 71 37 117 6 71 7 +1 117 1 117 7 37 1 37 3 3 6 37 37 4 ( 37 7 ((+1 1 1 ((+1 3 ((+11 71 is rime, therefore ( 117 71 c lso be comuted by: 117 117 71 117 135 (mod 71 71 37 3 Comlexity: Jcobi s Symbol (cot The oly reuired rithmetic oertios re modulr reductios d divisio by owers of two Clerly, divisio (rule 6 reduces the umertor by fctor of two A modulr reductio (usig rule 7 d the rule 1, reduces the umber by t lest two: s if > b the b + r b + r > r + r, thus r < /, ie, mod b < / Therefore, t most O(log modulr reductios/divisios re erformed, ech of which tkes O((log time This shows tht the comlexity is O((log 3, which is olyomil i log A more recise lysis of this lgorithm shows tht the comlexity c be reduced to O((log c Eli Bihm - My 3, 005 370 Itroductio to Number Theory (1 c Eli Bihm - My 3, 005 371 Itroductio to Number Theory (1