Congruence of Integers

Slides:



Advertisements
Similar presentations
Equivalence Relations
Advertisements

Section 7.5: Equivalence Relations Def: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive. Ex: Let.
Equivalence Relations
Equivalence Relations
Lecture 1 RMIT University, Taylor's University Learning Objectives
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Congruence class arithmetic. Definitions: a ≡ b mod m iff a mod m = b mod m. a  [b] iff a ≡ b mod m.
Chapter II. THE INTEGERS
Congruence Classes Z n = {[0] n, [1] n, [2] n, …, [n - 1] n } = the set of congruence classes modulo n.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
Week 8 - Wednesday.  What did we talk about last time?  Cardinality  Countability  Relations.
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
CS555Spring 2012/Topic 61 Cryptography CS 555 Topic 6: Number Theory Basics.
Peter Lam Discrete Math CS.  Sometimes Referred to Clock Arithmetic  Remainder is Used as Part of Value ◦ i.e Clocks  24 Hours in a Day However, Time.
BY MISS FARAH ADIBAH ADNAN IMK
The Integers and Division
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
Equivalence Relations MSU CSE 260. Outline Introduction Equivalence Relations –Definition, Examples Equivalence Classes –Definition Equivalence Classes.
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
9/2/2015Discrete Structures1 Let us get into… Number Theory.
Mathematics of Cryptography Part I: Modular Arithmetic
Module :MA3036NI Cryptography and Number Theory Lecture Week 7
Mathematics of Cryptography Modular Arithmetic, Congruence,
6.5 – Solving Equations with Quadratic Techniques.
NUMBER THEORY TS.Nguyễn Viết Đông.
Chapter 4 Number Theory in Asia The Euclidean Algorithm The Chinese Remainder Theorem Linear Diophantine Equations Pell’s Equation in Brahmagupta Pell’s.
Prelude to Public-Key Cryptography Rocky K. C. Chang, February
Prep Math Competition, Lec. 1Peter Burkhardt1 Number Theory Lecture 1 Divisibility and Modular Arithmetic (Congruences)
Ordered Sets. Relations. Equivalence Relations 1.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Chinese Remainder Theorem Dec 29 Picture from ………………………
Number Theory 이재원 School of Information Technology Sungshin W. University.
Elements of Coding and Encryption 1. Encryption In the modern word, it is crucial that the information is transmitted safely. For example, Internet purchases,
Network and Computer Security (CS 475) Modular Arithmetic
1 Section Congruences In short, a congruence relation is an equivalence relation on the carrier of an algebra such that the operations of the algebra.
Chinese Remainder Theorem. How many people What is x? Divided into 4s: remainder 3 x ≡ 3 (mod 4) Divided into 5s: remainder 4 x ≡ 4 (mod 5) Chinese Remainder.
SECTION 9 Orbits, Cycles, and the Alternating Groups Given a set A, a relation in A is defined by : For a, b  A, let a  b if and only if b =  n (a)
Discrete Mathematics 4. NUMBER THEORY Lecture 7 Dr.-Ing. Erwin Sitompul
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
ORDERED SETS. RELATIONS COSC-1321 Discrete Structures 1.
Cryptography Lecture 14 Arpita Patra © Arpita Patra.
Divisibility and Modular Arithmetic
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
The Relation Induced by a Partition
Garis-garis Besar Perkuliahan
Introduction to Cryptography
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Analytic Number Theory MTH 435
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 9 Relations Slides are adopted from.
Applied Discrete Mathematics Week 4: Number Theory
8.5 Equivalence Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Equivalence Relations
Applied Symbolic Computation (CS 300) Modular Arithmetic
Applied Symbolic Computation (CS 300) Modular Arithmetic
Applied Symbolic Computation (CS 300) Modular Arithmetic
Applied Symbolic Computation (CS 300) Modular Arithmetic
Equivalence Relations
Equivalence Relations
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Applied Symbolic Computation (CS 300) Modular Arithmetic
Clements MAΘ October 30th, 2014
Discrete Mathematics Chapter 4 Number Theory. Discrete Mathematics Chapter 4 Number Theory.
Algebra 5 Congruence Classes.
Chapter 8 (Part 2): Relations
Presentation transcript:

Congruence of Integers

Definition: Let n (>1) be a positive integer. For x, yZ, we say that x is congruent to y modulo n if and only if n | x y, denoted by x  y (mod n).

Note: x  y (mod n)  n |x y  x  y = nq for some qZ  x = y + nq  x and y yield the same remainder when each divided by n.

Theorem1. The relation of congruence modulo n is an equivalence relation on the set of integers. Pf: Need to check (i) reflexive, (ii) symmetric and (iii) transitive.

Note: The equivalence classes for congruence modulo n form a partition of Z, i.e. they separate Z into mutually disjoint subsets. These subsets are called congruence classes (or residue classes).

Ex1. When n = 4, we have 4 congruence classes as follow: [0]={ … , 8, 4, 0, 4, 8, …..} [1]={ …., 7, 3, 1, 5, 9,……} [2]={ …., 6, 2, 2, 6, 10,……} [3]={ …., 5, 1, 3, 7, 11,……}

Theorem 2. If a  b (mod n) and xZ, then a + x  b + x (mod n) and ax  bx (mod n). Pf:

Theorem 3. Suppose a  b (mod n), c  d (mod n). Then a+c  b+d (mod n) and acbd (mod n). Pf:

Theorem 4. If ax  ay(mod n) and (a, n)=1, then x  y (mod n). Pf:

Use the Euclidean Algorithm to find a solution of ax  b (mod n) when (a, n) = 1.

Ex2. Consider the congruence equation 20x  14 (mod 63). Since (20, 63) = 1,we can find two integers m, n such that 1 = 20m+63n. Appling the Euclidean Algorithm, we have 63=203+3, 20=36+2, 3=21+1. Thus 1 =

Ex2. Solve 20x  14 (mod 63)

Ex2’. Use another way to find the solution of 20x  14 (mod 63).

Theorem 5. If a and n are relatively prime, then the congruence equation ax  b (mod n) has an integer solution x. Moreover, any two solutions in Z are congruent modulo n.

Thm5. If (a, n)=1, then the congruence ax  b (mod n) has an integer solution x. Pf:

Thm5. Moreover, any two solutions of ax  b (mod n) in Z are congruent modulo n. Pf:

Ex3. Consider the equation 24x  45 (mod 12). Suppose that there is a solution, x0, of this congruence equation. Then 24x0–45 is a multiple of 12. It is impossible, because 24x0–45 is always an odd integer which cannot be a multiple of 12. Thus the equation 24x  45 (mod 12) has no solution. This Example tells us that the condition in Theorem5 “(a, n) = 1” is a very important condition for getting a solution of ax  b (mod n).