Chapter The Integers and Division Division

Slides:



Advertisements
Similar presentations
CS 202 Epp section ?? Aaron Bloomfield
Advertisements

The Integers and Division. Outline Division: Factors, multiples Exercise 2.3 Primes: The Fundamental Theorem of Arithmetic. The Division Algorithm Greatest.
CSE115/ENGR160 Discrete Mathematics 03/15/12
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
22C:19 Discrete Structures Integers and Modular Arithmetic
22C:19 Discrete Math Integers and Modular Arithmetic Fall 2010 Sukumar Ghosh.
CSE115/ENGR160 Discrete Mathematics 03/13/12 Ming-Hsuan Yang UC Merced 1.
Number Theory and Cryptography
1.  The set N = {1,2,3,4,……..} is known as natural numbers or the set of positive integers  The natural numbers are used mainly for :  counting  ordering.
CSE115/ENGR160 Discrete Mathematics 03/15/11
1 Integers and Division CS/APMA 202 Rosen section 2.4 Aaron Bloomfield.
Number Theory and Cryptography
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
BY MISS FARAH ADIBAH ADNAN IMK
The Integers and Division
Integers Number Theory = Properties of Integers
The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Number Theory and Cryptography
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 3 (Part 2): The Fundamentals: Algorithms, the.
9/2/2015Discrete Structures1 Let us get into… Number Theory.
CSE 504 Discrete Mathematics & Foundations of Computer Science
Section 2.2: Affine Ciphers; More Modular Arithmetic Practice HW (not to hand in) From Barr Textbook p. 80 # 2a, 3e, 3f, 4, 5a, 7, 8 9, 10 (Use affinecipherbreaker.
Mathematics of Cryptography Part I: Modular Arithmetic
February 24, 2015Applied Discrete Mathematics Week 4: Number Theory 1 Modular Arithmetic Let a be an integer and m be a positive integer. We denote by.
3.4/3.5 The Integers and Division/ Primes and Greatest Common Divisors Let each of a and b be integers. We say that a divides b, in symbols a | b, provided.
MATH 224 – Discrete Mathematics
MAT 1000 Mathematics in Today's World Winter 2015.
Discrete Mathematics CS 2610 March 17, Number Theory Elementary number theory, concerned with numbers, usually integers and their properties or.
Section 2.1: Shift Ciphers and Modular Arithmetic The purpose of this section is to learn about modular arithmetic, which is one of the fundamental mathematical.
Prep Math Competition, Lec. 1Peter Burkhardt1 Number Theory Lecture 1 Divisibility and Modular Arithmetic (Congruences)
CompSci 102 Discrete Math for Computer Science February 16, 2012 Prof. Rodger.
Copyright © Curt Hill Divisibility and Modular Arithmetic A Topic in Number Theory.
Section 2.1: Shift Ciphers and Modular Arithmetic Practice HW from Barr Textbook (not to hand in) p.66 # 1, 2, 3-6, 9-12, 13, 15.
CSCI 391: Practical Cryptology Substitution Monoalphabetic Ciphers.
Number Theory 이재원 School of Information Technology Sungshin W. University.
Chapter 2 (Part 1): The Fundamentals: Algorithms, the Integers & Matrices The Integers and Division (Section 2.4)
22C:19 Discrete Structures Integers and Modular Arithmetic Fall 2014 Sukumar Ghosh.
Elements of Coding and Encryption 1. Encryption In the modern word, it is crucial that the information is transmitted safely. For example, Internet purchases,
MAT 1000 Mathematics in Today's World Winter 2015.
Module #9 – Number Theory 1/5/ Algorithms, The Integers and Matrices.
Foundations of Computing I CSE 311 Fall Review: Division Theorem Let a be an integer and d a positive integer. Then there are unique integers q.
Unit 2 Modular Arithmetic and Cryptography IT Disicipline ITD1111 Discrete Mathematics & Statistics STDTLP 1 Unit 2 Modular Arithmetic and Cryptography.
Discrete Mathematics
CSE 311: Foundations of Computing Fall 2013 Lecture 11: Modular arithmetic and applications.
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,
The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
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.
CSE 311 Foundations of Computing I Lecture 12 Modular Arithmetic and Applications Autumn 2012 CSE
CSE 311 Foundations of Computing I Lecture 11 Modular Exponentiation and Primes Autumn 2011 CSE 3111.
Chapter 3 The Fundamentals: Algorithms, the integers, and matrices Section 3.4: The integers and division Number theory: the part of mathematics involving.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
CS 210 Discrete Mathematics The Integers and Division (Section 3.4)
CSE15 Discrete Mathematics 03/20/17
CSE15 Discrete Mathematics 03/15/17
Introduction to Cryptography
Integers and Division Section 3.4.
CMSC Discrete Structures
Number Theory and Cryptography
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Applied Discrete Mathematics Week 3: Algorithms
Applied Discrete Mathematics Week 4: Number Theory
Number Theory.
Modular Arithmetic and Change of Base
CSE 311 Foundations of Computing I
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Applied Discrete Mathematics Week 10: Introduction to Counting
Presentation transcript:

Chapter 3 3.4 The Integers and Division Division The Division Algorithm Modular Arithmetic Applications of Congruences Cryptology

Division Definition 1: if a and b are integers with a≠0, we say that a divides b if there is an integer c such that b=ac. When a divides b we say that a is a factor of b and that b is a multiple of a. the notation a|b denotes that a divides b. we write a | b when a does not divide b. Example 1: Determine whether 3|7 and whether 3|12. Example: Determine whether 3|0. /

Theorem 1: let a, b, and c be integers. Then If a|b and a|c, then a|(b+c) If a|b and a|bc for all integer c If a|b and b|c, then a|c Corollary 1: If a, b, c are integers such that a|b and a|c , then a| mb + nc whenever m and n are integers.

The Division Algorithm Theorem 2 the division algorithm :let a be an integer and d a positive integer. Then there are unique integers q and r, with 0 ≤ r < d, such that a= dq+r Definition 2: In the equality give in the division algorithm, d is called the divisor, a is called the dividend, q is called the quotient, and r is called the remainder. This notation is used to express the quotient and remainder. q = a div d, r = a mod d. Example 4: What are the quotient and remainder when -11 is divided by 3?

Modular Arithmetic Definition 3: if a and b are integers and m is a positive integer, then a is congruent to b modulo m if m divides a - b. we use the notation a≡b (mod m) to indicate that a is congruent to b modulo m. if a and b are not congruent modulo m, we write a ≡b (mod m) . /

Modular Arithmetic Theorem 3: let a and b be integers, and let m be a positive integer. Then a≡b (mod m) if and only if a mod m = b mod m . Example 5: determine whether 17 is congruent to 5 modulo 6 and whether 24 and 14 are congruent modulo 6.

a+c≡b+d (mod m) , ac ≡ bd (mod m) Modular Arithmetic Theorem 4 : let m be positive integer. The integers a and b are congruent modulo m if and only if there is an integer k such that a = b + km . Theorem 5: let m be a positive integer. If a≡b(mod m ) and c ≡d (mod m), then a+c≡b+d (mod m) , ac ≡ bd (mod m) Example 6: because 7≡2 (mod 5) and 11≡1 (mod 5) , it follows from theorem 5 that 18=7+11 ≡2+1=3(mod 5) , and that 77=7*11 ≡2*1=2 (mod 5)

Corollary 2: let m be a positive integer and let a and b be integers Corollary 2: let m be a positive integer and let a and b be integers. Then (a+b) mod m = ((a mod m)+(b mod m)) mod m And ab mod m =((a mod m)(b mod m)) mod m.

Applications of Congruences Hashing Functions Pseudorandom Numbers Cryptology

Hashing Functions How can memory locations be assigned so that customer records can be retrieved quickly? Hashing function and key h(k) = k mod m; m is the number of available memory locations. Collision: one way to re solve a collision is to assign the first free location.

Pseudorandom Numbers The numbers generated by systematic method are not truly random, they are called pseudorandom numbers. Linear Congruential Method(m, a, c, x0 :integers): Modulus m Multiplier a, 2  a < m Increment c, 0  c < m Seed x0 , 0  x0 < m xn+1= (axn+c) mod m For example: m=9, a=7, c=4, x0 =3, then (x1, x2, x3, x4, x5, x6, x7, x8, x9)=(7, 8, 6, 1, 2, 0, 4, 5, 3) x10=x1

Cryptology Important Application of Congruences Earliest known uses by Julius Caesar. Shifting each letter three letters forward in the alphabet. To express the process mathematically: Let U={0,.., 25}, V={A, .., Z} and g: V -> U is a bijection function defined as the table below. Define function f : U -> U, where f(p)=(p+3) mod 26. The Encryption function h:V->V, where h(x)=g-1( f(g(x) ) ) The decryption function f-1(p)=(p-3) mod 26. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Applications of Congruences Example 9: What is the secret message produced from the message “MEET YOU IN THE PARK” using the Caesar cipher. HW: Example 10, p208