Math 412: Number Theory Lecture 6: congruence system and

Similar documents
Applications of Fermat s Little Theorem and Congruences

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

Numbers (8A) Young Won Lim 5/24/17

Numbers (8A) Young Won Lim 6/21/17

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

Numbers (8A) Young Won Lim 5/22/17

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

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

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Solutions for the Practice Questions

Carmen s Core Concepts (Math 135)

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

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

SOLUTIONS FOR PROBLEM SET 4

1111: Linear Algebra I

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

Distribution of Primes

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

Discrete Math Class 4 ( )

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

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

The Chinese Remainder Theorem

Number Theory/Cryptography (part 1 of CSC 282)

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

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

Fermat s little theorem. RSA.

Multiples and Divisibility

Math 127: Equivalence Relations

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

Data security (Cryptography) exercise book

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

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

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography

Modular arithmetic Math 2320

Foundations of Cryptography

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

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.

Introduction to Modular Arithmetic

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

Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS

Practice Midterm 2 Solutions

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

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

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

NUMBER THEORY AMIN WITNO

Modular Arithmetic. claserken. July 2016

Number Theory for Cryptography

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

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

ALGEBRA: Chapter I: QUESTION BANK

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

Public Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014

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

Number Theory. Konkreetne Matemaatika

12. Let Rm = {0,1,2,..., m 1} be a complete residue system modulo ra. Let a be an integer. When is a Rm = {0,1 a, 2 a,...

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

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.

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

1.6 Congruence Modulo m

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

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

Math 3560 HW Set 6. Kara. October 17, 2013

Cryptography, Number Theory, and RSA

Two congruences involving 4-cores

Solutions for the 2nd Practice Midterm

The Chinese Remainder Theorem

MATH 135 Algebra, Solutions to Assignment 7

Rational Points On Elliptic Curves - Solutions. (i) Throughout, we ve been looking at elliptic curves in the general form. y 2 = x 3 + Ax + B

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

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

Linear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Modular Arithmetic: refresher.

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

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

by Michael Filaseta University of South Carolina

Example Enemy agents are trying to invent a new type of cipher. They decide on the following encryption scheme: Plaintext converts to Ciphertext

Goldbach Conjecture (7 th june 1742)

Lecture 32. Handout or Document Camera or Class Exercise. Which of the following is equal to [53] [5] 1 in Z 7? (Do not use a calculator.

Sheet 1: Introduction to prime numbers.

Implementation / Programming: Random Number Generation

The Chinese Remainder Theorem

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

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

MAT Modular arithmetic and number theory. Modular arithmetic

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

CHAPTER 2. Modular Arithmetic

Classical Cryptography

Wilson s Theorem and Fermat s Theorem

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

SMML MEET 3 ROUND 1

ON SPLITTING UP PILES OF STONES

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:

The number theory behind cryptography

An elementary study of Goldbach Conjecture

MATHCOUNTS. 100 Classroom Lessons. August Prepared by

Arithmetic of Remainders (Congruences)

Mark Kozek. December 7, 2010

TOURNAMENT ROUND. Round 1

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

Transcription:

Math 412: Number Theory Lecture 6: congruence system and classes Gexin Yu gyu@wm.edu College of William and Mary

Chinese Remainder Theorem Chinese Remainder Theorem: let m 1, m 2,..., m k be pairwise coprimes. Then for any integers a 1, a 2,..., a k, the system of linear equations x a 1 (mod m 1 ) x a 2 (mod m 2 )... x a k (mod m k ) has a solution. Furthermore, the solution is x M 1 M 1 1 a 1 +... + M k M 1 k a k (mod m), where m = m 1 m 2... m k = m j M j and M 1 j M j 1 (mod m j ).

Solving polynomial congruences Consider f (x) = a n x n + + a 1 x + a 0 0 (mod m) with a i Z. We may consider the system of congruence equations f (x) 0 (mod p r ), where p r is a prime power of m, then use Chinese Remainder Theorem. Hensel s Theorem: If c is a solution to f (x) 0 (mod p r 1 ), then the solution to f (x) 0 (mod p r ) with x c (mod p r 1 ) are x c + y i p r 1 (mod p r ), where y y 1,..., y l (mod p) are solutions to f (c)y f (c) p r 1 (mod p)

Congruence systems Ex: Find the solutions to the following congruences: 3x + 4y 5 (mod 13) 2x + 5y 7 (mod 13)

Thm: Let a, b, c, d, e, f and m be integers with m > 0, and (, m) = 1, where = ad bc. Then the system of congruences ax + by e (mod m) cx + dy f (mod m) has a unique solution modulo m, given by x 1 (de bf ) (mod m) y 1 (af ce) (mod m)

congruent matrices Def: Let A = (a ij ), B = (b ij ) be n k matrices with integer entries. Then A is congruent to B modulo m if a ij b ij (mod m) for all 1 i n and 1 j k.

congruent matrices Def: Let A = (a ij ), B = (b ij ) be n k matrices with integer entries. Then A is congruent to B modulo m if a ij b ij (mod m) for all 1 i n and 1 j k. Thm: If A, B are n k matrices with A B (mod m), C is a k p matrix, and D is a p n matrix, all with integer entries, then AC BC (mod m) and DA DB (mod m)

Inverse of a matrix If A and B are n n matrices of integers and AB BA I (mod m), where I is the identity matrix. Then B is said to be an inverse of A modulo m.

Inverse of a matrix If A and B are n n matrices of integers and AB BA I (mod m), where I is the identity matrix. Then B is said to be an inverse of A modulo m. The inverse of an n n matrix, if exists, is unique.

Inverse of a matrix If A and B are n n matrices of integers and AB BA I (mod m), where I is the identity matrix. Then B is said to be an inverse of A modulo m. The inverse of an ( n ) n matrix, if exists, is unique. a b Thm: Let A = be a matrix with integers such that c d = det(a) = ad bc is a coprime to m. Then ( ) A 1 = 1 d b c a

Ex: Find the inverse of A = ( ) 3 4. 2 5

Congruent classes A complete system of residues modulo m is a set of integers such that every integer is congruent modulo m to exactly one integer of the set.

Congruent classes A complete system of residues modulo m is a set of integers such that every integer is congruent modulo m to exactly one integer of the set. Ex: A set of m incongruent integers modulo m forms a complete set of residues modulo m.

Congruent classes A complete system of residues modulo m is a set of integers such that every integer is congruent modulo m to exactly one integer of the set. Ex: A set of m incongruent integers modulo m forms a complete set of residues modulo m. Ex: If r 1,..., r m is a complete system of residues modulo m, and if a N and (a, m) = 1, then ar 1 + b, ar 2 + b,..., ar m + b is a complete system of residues modulo m for any integer b.

Ex: let n 1, and b has no prime divisor less than or equal to n. Then for any a N, n! a(a + b)(a + 2b)... (a + (n 1)b)