Modular Arithmetic Created by previous Honors Pre- Calculus students.

Slides:



Advertisements
Similar presentations
Division & Divisibility. 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.
Advertisements

Mod arithmetic.
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Cryptography and Network Security
Chapter 4 Finite Fields. Introduction of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key concern operations on “numbers”
Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
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.
Polynomial Division with a Box. Polynomial Multiplication: Area Method x + 5 x 2 x 3 5x25x2 -4x 2 -4x-4x -20x x +1 5 Multiply (x + 5)(x 2 – 4x + 1) x.
Strategies Used For Mental Multiplication/Division of Larger Numbers June 4 th 2008 Year 5/6NH.
Congruence class arithmetic. Definitions: a ≡ b mod m iff a mod m = b mod m. a  [b] iff a ≡ b mod m.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
Measuring Time.
Addition & Subtraction Add Plus More than Subtract Difference Take away Altogether Minus Less than +-
ADDING, SUBTRACTING, MULTIPLYING AND DIVIDING INTEGERS By : Katie Kurth and Kateylnn Everhart.
Integers: Multiplication & Division
division algorithm Before we study divisibility, we must remember the division algorithm. r dividend = (divisor ⋅ quotient) + remainder.
INTEGERS AND MULTIPLICATION
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
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,
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.
Whole Numbers Are the whole numbers with the property of addition a group?
9/2/2015Discrete Structures1 Let us get into… Number Theory.
1 Arithmetic and Logical Operations - Part II. Unsigned Numbers Addition in unsigned numbers is the same regardless of the base. Given a pair of bit sequences.
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,
Information Security and Management 4. Finite Fields 8
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)
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
Addition, Subtraction, Multiplication, and Division of Integers
ARITHMETIC SEQUENCES These are sequences where the difference between successive terms of a sequence is always the same number. This number is called the.
Copyright © Curt Hill Divisibility and Modular Arithmetic A Topic in Number Theory.
Chapter 3 Whole Numbers Section 3.6 Algorithms for Whole-Number Multiplication and Division.
Lecture 11.   Modular arithmetic is arithmetic in which numbers do not continue forever.  Modulo 7 has numbers 0, 1, 2, 3, 4, 5, and 6.  Modulo 5.
Computational Number Theory - traditional number theory Prime Numbers Factors Counting Factors D- functions.
TELLING TIME LINKS Identifies days, weeks, and months on a calendar.
Elements of Coding and Encryption 1. Encryption In the modern word, it is crucial that the information is transmitted safely. For example, Internet purchases,
DRP Carl Gauss “Mathematics is the queen of sciences” “Number Theory is the queen of mathematics”
Tuesday’s lecture: Today’s lecture: One-way permutations (OWPs)
Multiplication Facts X 3 = 2. 8 x 4 = 3. 7 x 2 =
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 13 Mathematical Systems.
Introduction To Number Systems Binary System M. AL-Towaileb1.
The Slope of a Line. Important things about slope… Slope is the change in y over change in x. Slope is represented by the letter m Vertical line has NO.
9.1 Primes and Related Congruence Equations 23 Sep 2013.
Discrete Mathematics
Activity 2-11: Quadratic Reciprocity
Ch 3.1 Add and Subtract Signed Numbers Vocabulary Op posites :2 numbers the same distance from 0 but in opposite directions
Cryptography Lecture 14 Arpita Patra © Arpita Patra.
Divisibility and Modular Arithmetic
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.
Any questions on the Section 5.4 homework?. Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
CMPS 2433 – Coding Theory Chapter 3
3x + 2 6x3 - 5x2 – 12x – 4 2x2 – 3x – 2 6x3 + 4x2 -9x2 – 12x -9x2 – 6x
Activity 2-11: Quadratic Reciprocity
Intro to Programming With Snap PII.
Modular Arithmetic and Change of Base
More Maths Programming Guides.
Section 10.3 Modular Arithmetic
CLOCK ARITHMETIC.
divide dividend divisor inverse operations quotient
Introduction To Number Systems
Division Vocabulary Review.
Section 9.3 Modular Arithmetic.
Presentation transcript:

Modular Arithmetic Created by previous Honors Pre- Calculus students

Division Algorithm If a and b are integers where b > 0, There exist integers, q and r, with the property that: a = bq + r where 0 ≤ r < b. For example, if a = 17 and b = 5, 17 = 5∙3 +2. Thus, q = 3 & r = 2. r=2 is called the remainder.

Modular Arithmetic Modular arithmetic is an application of the division algorithm For example, if it’s now May, what month will it be 25 months from now?  You got an answer of June right?  You probably didn’t count did you? You observed, 25 = 2∙  So you just added one month to the current month to get your answer of June.

Try a couple… 1. counting in hours - if it is 10:00 a.m. what time will it be 30 hours from now? 2. counting in days - if it is Wednesday what day of the week will it be 452 days from now? 3. counting degrees - if you are facing north and spin clockwise 810 degrees, which way are you facing?

Counting Answers 1. We are only interested in the fact that 30 is 6 more than 24 and that 10 (a.m.) plus 6 leaves a remainder of 4 when we take away pm 2. in the second case that 452 leaves a remainder of 4 when we take away multiples of 7 Sunday leaves a remainder of 90 when we take away multiples of 360. East

Clock Arithmetic = Modular Arithmetic Click on the following link to see a visual demonstration of clock arithmetic or display of numbers mod 12. Check out the part about negative numbers! mber_bracelets/mod_arith.html mber_bracelets/mod_arith.html

Modular Arithmetic Continued… When a = qn + r, where q is the quotient and r is the remainder upon dividing a by n, we write: a mod n = rOR r = a modulo n n is the modulus. Sometimes r is called the residue For example:  17 mod 5 = 2 because 17 = 5∙3 + 2  35 mod 7 = 0 because 35 = 7∙5 + 0  29 mod 8 = 5because 29 = 8∙3 + 5

Notice… Notice that when you are modding by 12 your remainders (the answers) will be between 0 and 11. You will never get an answer of 12 because that means that you could have divided further. For example: 36 mod 12 = 0 (it goes in evenly)

Try a few on your own 1.8 mod mod mod mod mod mod mod mod 5

Answers 1.8 mod 13 = 8 because 8 = 0∙ mod 11 = 1 because 23 = 2∙ mod 7 = 4 because 46 = 6∙ mod 3 = 0 because 42 = 14∙ mod 8 = 7 because 31 = 3∙ mod 15 = 2 because 92 = 6∙ mod 11 = 5 because 27 = 2∙ mod 5 = 4 because 84 = 16∙5 + 4

And a few more… 1.)-5 mod 12 2.)-4 mod 10 3.)-15 mod 15 4.)-23 mod 8 5.)-28 mod 7 6.)-46 mod 4 7.)-50 mod 9 8.)-61 mod 3

And a few more… 1.)-5 mod 12= 7because -5 = 12∙ )-4 mod 10 = 6because -4 = 10∙ )-15 mod 15 = 0because -15 = 15∙ )-23 mod 8 = 1because -23 = 8∙ )-28 mod 7 = 0because -28 = 7∙ )-46 mod 4 = 2because -46 = 4∙ )-50 mod 9 = 4because -50 = 9∙ )-61 mod 3 = 2because -61 = 3∙

Congruences This idea of congruence was first developed by the mathematician Carl Friedrich Gauss in the late 18th century. a ≡ b if a = b mod n For example: 24 ≡ 9 mod 5 because 24 mod 5 = 4 and 9 mod 5 = 4

Good websites Q.09.98/kupper1.html Q.09.98/kupper1.html