Discrete Mathematics 03.20.09.

Slides:



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

Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
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
Thinking Mathematically
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
February 19, 2015Applied Discrete Mathematics Week 4: Number Theory 1 The Growth of Functions Question: If f(x) is O(x 2 ), is it also O(x 3 )? Yes. x.
CSC2110 Discrete Mathematics Tutorial 5 GCD and Modular Arithmetic
CSE115/ENGR160 Discrete Mathematics 03/15/11
Chapter II. THE INTEGERS
1 Integers and Division CS/APMA 202 Rosen section 2.4 Aaron Bloomfield.
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
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
© 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
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.
Module :MA3036NI Cryptography and Number Theory Lecture Week 7
Mathematics of Cryptography Modular Arithmetic, Congruence,
The Integers & Division. a divides b if a is not zero there is a m such that a.m = b “a is a factor of b” “b is a multiple of a” a|b Division.
Numbers MST101. Number Types 1.Counting Numbers (natural numbers) 2.Whole Numbers 3.Fractions – represented by a pair of whole numbers a/b where b ≠ 0.
Factors
Chapter The Integers and Division Division
CompSci 102 Discrete Math for Computer Science
Copyright © Zeph Grunschlag, Basic Number Theory Zeph Grunschlag.
Section 2.2: Affine Ciphers; More Modular Arithmetic Shift ciphers use an additive key. To increase security, we can add a multiplicative parameter. –For.
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)
Elements of Coding and Encryption 1. Encryption In the modern word, it is crucial that the information is transmitted safely. For example, Internet purchases,
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
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.
Greatest Common Factor Least Common Multiple Factorization.
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Divisibility and Modular Arithmetic
Greatest Common Factor and Least Common Multiples GCF and LCM.
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.
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Number Theory: Prime and Composite Numbers
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Chapter 3 The Fundamentals: Algorithms, the integers, and matrices Section 3.4: The integers and division Number theory: the part of mathematics involving.
Agenda Review:  Relation Properties Lecture Content:  Divisor and Prime Number  Binary, Octal, Hexadecimal Review & Exercise.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
Number-Theoretic Algorithms
Factors
CS 210 Discrete Mathematics The Integers and Division (Section 3.4)
Mathematics of Cryptography
Introduction to Cryptography
COT 3100, Spring 2001 Applications of Discrete Structures
Integers and Division Section 3.4.
CMSC Discrete Structures
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
Discrete Math for CS CMPSC 360 LECTURE 12 Last time: Stable matching
Week #5 – 23/25/27 September 2002 Prof. Marie desJardins
Modular Arithmetic and Change of Base
The Integers & Division
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Copyright © Zeph Grunschlag,
Divisibility and Modular Arithmetic
Applied Discrete Mathematics Week 10: Introduction to Counting
Number Theory.
Presentation transcript:

Discrete Mathematics 03.20.09

Review Division Algorithm Greatest Common Divisor (GCD) a = dq + r Greatest Common Divisor (GCD) GCD(a,b) – the largest integer that divides both a and b Least Common Multiples (LCM) LCM(a,b) – the smallest positive integer that is divisible by both a and b

Review Prime Relatively Prime Integers Pairwise Relatively Prime A positive integer greater than 1 with exactly two positive integer divisors Relatively Prime Integers Integers a and b such that GCD(a,b) = 1 Pairwise Relatively Prime A set of integers with the property that every pair of these integers is relatively prime

Today’s Topics Modular Arithmetic Applications of Modular Arithmetic

Modular Arithmetic In some situations, we care only about the remainder of an integer when it is divided by some specified positive integer. Ex.: Identifying if an integer is positive or negative.

Congruences 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. a  b (mod m) if m | a - b Definition of Notations: a  b (mod m) a is congruent to b modulo m a is not congruent to b modulo m m | a – b m divides a - b /

Example Determine whether 17 is congruent to 5 modulo 6. Determine whether 24 and 14 are congruent to modulo 6.

Exercise Decide whether each of these integers is congruent to 5 modulo 17. 80 103 - 29 - 122 35

Applying Modular Arithmetic Problem 1: What time will it be 50 hours from now?

Applying Modular Arithmetic Problem 2: Generating pseudorandom numbers generated by choosing m=9, a=7, c=4 and x0=3. Find: xn+1 = (axn + c) mod m Find x1 , x2, x3, x4, x5, x6, x7, x8, x9

Applying Modular Arithmetic Problem 3: Cryptology Encrypt the word HELLO using f(p) = p+3