Miniconference on the Mathematics of Computation

Slides:



Advertisements
Similar presentations
Mod arithmetic.
Advertisements

Chapter 4 Finite Fields. Introduction of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key concern operations on “numbers”
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.
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
CSE115/ENGR160 Discrete Mathematics 03/13/12 Ming-Hsuan Yang UC Merced 1.
Number Theory(L5) Number Theory Number Theory(L5).
Congruence of Integers
BY MISS FARAH ADIBAH ADNAN IMK
Divisibility October 8, Divisibility If a and b are integers and a  0, then the statement that a divides b means that there is an integer c such.

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.
Prep Math Competition, Lec. 1Peter Burkhardt1 Number Theory Lecture 1 Divisibility and Modular Arithmetic (Congruences)
Section 2.2: Affine Ciphers; More Modular Arithmetic Shift ciphers use an additive key. To increase security, we can add a multiplicative parameter. –For.
Elements of Coding and Encryption 1. Encryption In the modern word, it is crucial that the information is transmitted safely. For example, Internet purchases,
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
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.
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.
Congruence and Sets Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois Dali - “The Persistence of Memory” 1.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
Discrete Mathematics
Lecture 2-3 Basic Number Theory and Algebra. In modern cryptographic systems, the messages are represented by numerical values prior to being encrypted.
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-Theoretic Algorithms
Mathematical Background for Cryptography: Modular arithmetic and gcd
CSE15 Discrete Mathematics 03/15/17
Students will know that…
Modular Arithmetic Lesson 4.6.
Advanced Algorithms Analysis and Design
COT 3100, Spring 2001 Applications of Discrete Structures
Lecture 3.2: Public Key Cryptography II
Integers and Division Section 3.4.
Number Theory and Techniques of Proof
Number Theory and Cryptography
Cryptology Design Fundamentals
Cryptology Design Fundamentals
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
CSE 311 Foundations of Computing I
Prime and Relatively Prime Numbers
Lecture 20 Guest lecturer: Neal Gupta
CSE 311 Foundations of Computing I
CSE 311: Foundations of Computing
Discrete Math for CS CMPSC 360 LECTURE 12 Last time: Stable matching
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Modular Arithmetic and Change of Base
CSE 311 Foundations of Computing I
Modelling and Searching Networks Lecture 3 – ILT model
Modular Arithmetic ICS 6D Sandy Irani.
Modular Arithmetic.
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Section 10.3 Modular Arithmetic
Modelling and Searching Networks Lecture 4 – ILAT model
Miniconference on the Mathematics of Computation
Miniconference on the Mathematics of Computation
Miniconference on the Mathematics of Computation
Combinations and Pascal’s triangle
Adjacency Matrices and PageRank
Miniconference on the Mathematics of Computation
Miniconference on the Mathematics of Computation
Miniconference on the Mathematics of Computation
CLOCK ARITHMETIC.
Factor A factor of an integer is any integer that divides the given integer with no remainder.
Clements MAΘ October 30th, 2014
Miniconference on the Mathematics of Computation
Lecture 3 Strings and Things (Section 1.1)
Maths Unit 2 - Multiples, factors & primes
Lecture 2-3 Basic Number Theory and Algebra
Section 9.3 Modular Arithmetic.
Presentation transcript:

Miniconference on the Mathematics of Computation MTH 210 Modular Arithmetic 1 Dr. Anthony Bonato Ryerson University

Even vs odd simple way to “split up” integers: a number n is even if it has 2 as a divisor we write 2 | n otherwise, it is odd

use [0] to denote even integers use [1] to denote odd integers [0] = 0, ±2, ±4, ±6 … [1] = ±1, ±3, ±5 …

Weird arithmetic [0] + [0] = [0] [0] + [1] = [1] [1] + [1] = [0] “even plus even is even” [0] + [1] = [1] “even plus odd is odd” [1] + [1] = [0] “odd plus odd is even”

Weird arithmetic [0] x [0] = [0] [0] x [1] = [1] [1] x [1] = [1] “even times even is even” [0] x [1] = [1] “even times odd is even” [1] x [1] = [1] “odd times odd is odd”

Congruences x ≡ y (mod 2) if 2 divides x – y write: 2 | (x-y) eg: 4 ≡ 0 (mod 2), 17 ≡ 1 (mod 2)

Key facts x ≡ y (mod 2) then y ≡ x (mod 2) x ≡ x (mod 2) If x ≡ y (mod 2) and y ≡ z (mod 2), then x ≡ z (mod 2)

General congruences m > 2 an integer x ≡ y (mod n) if n | (x-y) eg 13 ≡ 1 (mod 12), 23 ≡ 3 (mod 5)

Key facts x ≡ y (mod n) then y ≡ x (mod n) x ≡ x (mod n) If x ≡ y (mod n) and y ≡ z (mod n), then x ≡ z (mod n)

[2] = {x: remainder of 2 when 3 divides x} [m] = {x | x ≡ m (mod n)} called equivalence classes (mod n) or congruence classes eg if n = 3, then [2] = {x: remainder of 2 when 3 divides x}

Exercises

Miniconference on the Mathematics of Computation MTH 210 Modular Arithmetic II Dr. Anthony Bonato Ryerson University

Key facts Given a ≡ c (mod n) and b ≡ d (mod n) a + b ≡ c + d (mod n) For all integers k > 0, ak ≡ ck (mod n)

Exercises