Discrete Mathematics 03 20 09 Review Division Algorithm
- Slides: 11
Discrete Mathematics 03. 20. 09
Review Division Algorithm 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 A positive integer greater than 1 with exactly two positive integer divisors Relatively Prime 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 / 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 x 0=3. Find: xn+1 = (axn + c) mod m Find x 1 , x 2, x 3, x 4, x 5, x 6, x 7, x 8, x 9
Applying Modular Arithmetic Problem 3: Cryptology Encrypt the word HELLO using f(p) = p+3
- Division algorithm discrete math
- Dijkstra algorithm in discrete mathematics
- Matematika diskrit kenneth rosen pdf
- Pigeonhole principle in discrete mathematics
- Logical equivalence in discrete mathematics
- Kesetaraan logis adalah
- Bfs in discrete mathematics
- String in maths
- Tautological implication
- Relations discrete math
- Logical equivalence table
- "element iv therapy"