Grade 6/7/8 Math Circles April 1/2, Modular Arithmetic

Similar documents
Grade 7 & 8 Math Circles October 12, 2011 Modular Arithmetic

Grade 7/8 Math Circles February 9-10, Modular Arithmetic

Grade 6 Math Circles March 8-9, Modular Arithmetic

Modular arithmetic Math 2320

Modular Arithmetic and Doomsday

Grade 6 Math Circles March 1-2, Introduction to Number Theory

Number Theory: Modulus Math

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

Introduction To Modular Arithmetic

Groups, Modular Arithmetic and Geometry

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

Modular Arithmetic. claserken. July 2016

Distribution of Primes

Grade 6 Math Circles. Divisibility

Grade 6 Math Circles November 15 th /16 th. Arithmetic Tricks

A Quick Introduction to Modular Arithmetic

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

6.2 Modular Arithmetic

4) If your birthday fell on a Sunday this year, what day will it fall on next year? 5) If it is autumn now, what season will it be in 100 seasons?

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

Applications of Fermat s Little Theorem and Congruences

Classwork Example 1: Exploring Subtraction with the Integer Game

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

Modular Arithmetic. Kieran Cooney - February 18, 2016

Lesson 2: Using the Number Line to Model the Addition of Integers

Unit 2: Exponents. 8 th Grade Math 8A - Mrs. Trinquero 8B - Dr. Taylor 8C - Mrs. Benefield

Modular Arithmetic: refresher.

Carmen s Core Concepts (Math 135)

MATH 135 Algebra, Solutions to Assignment 7

MCAS/DCCAS Mathematics Correlation Chart Grade 4

Assignment 2. Due: Monday Oct. 15, :59pm

1.6 Congruence Modulo m

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Math 127: Equivalence Relations

Public Key Cryptography

Grade 6 Math Circles March 7/8, Magic and Latin Squares

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Arithmetic of Remainders (Congruences)

Core Learning Standards for Mathematics Grade 6

Grade 6 Math Circles. Math Jeopardy

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

MAT Modular arithmetic and number theory. Modular arithmetic

Grade 7/8 Math Circles February 11/12, Counting I - Solutions

Primitive Roots. Chapter Orders and Primitive Roots

Grade 7/8 Math Circles. Visual Group Theory

Grade 7/8 Math Circles February 21 st /22 nd, Sets

Synergy Round. Warming Up. Where in the World? Scrabble With Numbers. Earning a Gold Star

Diophantine Equations and Modulo 11.

Correlation of USA Daily Math Grade 2 to Common Core State Standards for Mathematics

Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Lesson 21: If-Then Moves with Integer Number Cards

Sample pages. Multiples, factors and divisibility. Recall 2. Student Book

Introduction to Modular Arithmetic

Grades 7 & 8, Math Circles 27/28 February, 1 March, Mathematical Magic

JMG. Review Module 1 Lessons 1-20 for Mid-Module. Prepare for Endof-Unit Assessment. Assessment. Module 1. End-of-Unit Assessment.

Surreal Numbers and Games. February 2010

Cryptography Lecture 1: Remainders and Modular Arithmetic Spring 2014 Morgan Schreffler Office: POT 902

Grade 7/8 Math Circles. Visual Group Theory

Core Learning Standards for Mathematics Grade 1 SAMPLE. Mondays p. 58 #3 4 p. 67 #2 5 p. 76 #2 5

The Chinese Remainder Theorem

Latin Squares for Elementary and Middle Grades

MATHS WORKSHEETS FIRST TERM

Meet #3 January Intermediate Mathematics League of Eastern Massachusetts

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Math Runes. Abstract. Introduction. Figure 1: Viking runes

Number Theory/Cryptography (part 1 of CSC 282)

An elementary study of Goldbach Conjecture

A Covering System with Minimum Modulus 42

MATH 13150: Freshman Seminar Unit 15

Discrete Math Class 4 ( )

Solutions for the 2nd Practice Midterm

Meaningful Ways to Develop Math Facts

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

Goldbach Conjecture (7 th june 1742)

Math 1111 Math Exam Study Guide

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

Lesson 5: Understanding Subtraction of Integers and Other Rational Numbers

Math Contest Preparation II

Senior Math Circles February 10, 2010 Game Theory II

Number Theory. Konkreetne Matemaatika

Dice Activities for Algebraic Thinking

Math 255 Spring 2017 Solving x 2 a (mod n)

A C E. Answers Investigation 4. Applications. Dimensions of 39 Square Unit Rectangles and Partitions. Small Medium Large

Introduction to Fractions

Solutions for the Practice Questions

Patterns, Functions & Algebra

Cross Out Singles. 3. Players then find the sums of the rows, columns, and diagonal, and record them in the respective circles.

Solutions for the Practice Final

HIGH SCHOOL MATHEMATICS CONTEST Sponsored by THE MATHEMATICS DEPARTMENT of WESTERN CAROLINA UNIVERSITY. LEVEL I TEST March 23, 2017

Grade 6, Math Circles 27/28 March, Mathematical Magic

Lesson 4.7. Activity 1

Chapters 1-3, 5, Inductive and Deductive Reasoning, Fundamental Counting Principle

University of British Columbia. Math 312, Midterm, 6th of June 2017

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

Transcription:

Faculty of Mathematics Waterloo, Ontario N2L 3G1 Modular Arithmetic Centre for Education in Mathematics and Computing Grade 6/7/8 Math Circles April 1/2, 2014 Modular Arithmetic Modular arithmetic deals primarily with operations and applications regarding remainders. Essentially, it s just another way to express remainders, and has many useful applications! Division and Remainder When doing long division, we have learned to use remainders. For example, when we divide 11 by 5, we see a remainder of 1. Let s look at how we can write this in two different ways: 5 11 2 R1 which is also written as 11 1(mod 5) As we can see above there is a relationship between modulo notation and long division! When working with modulo notation, a common phrase we use is x is congruent to A mod B. A can be any number that has the same remainder as X when divided by B. In this lesson, A will be the smallest positive integer between 0 and B. We can then make a general statement about the relationship between modulo form and division: (Ans) RA which is also written as X A(mod B) B X Modulo With Calculators Let s go through an example step-by-step to understand where this is useful: Find 373 in modulus 6: Divide 373 by the mod we want, which is 6: 373 6 = 62.17 Round this number down to a whole number: 62.17 = 62 Multiply this number by the mod we are working with: 62 6 = 372 Subtract this new number from our original number: 373 372 = 1 Express this in modulo notation: 373 1(mod 6) Therefore, we can say that 373 has a remainder of 1 when divided by 6, and can be expressed in modulo notation as 373 1(mod 6). 1

Congruence Class A Congruence Class is a way to organize the set all numbers who have the same remainder when divided by some modulo m. We denote a congruence class as [a] where a is the remainder. Let s look at the numbers 0-11 and what they are congruent to in modulo 4: 0 0 (mod 4) 1 1 (mod 4) 2 2 (mod 4) 3 3 (mod 4) 4 0 (mod 4) 5 1 (mod 4) 6 2 (mod 4) 7 3 (mod 4) 8 0 (mod 4) 9 1 (mod 4) 10 2 (mod 4) 11 3 (mod 4) Now let s organize all of our answers into congruence classes. Clearly these are infinite sets that spread from negative infinity to positive infinity. We can even make equations to summarize every number that can be in the set using any integer k: [0] = {... 4, 0, 4, 8...} = {for all x such that x 0 (mod 4)} = 4k + 0 [1] = {... 3, 1, 5, 9...} = {for all x such that x 1 (mod 4)} = 4k + 1 [2] = {... 2, 2, 6, 10...} = {for all x such that x 2 (mod 4)} = 4k + 2 [3] = {... 1, 3, 7, 11...} = {for all x such that x 3 (mod 4)} = 4k + 3 An interesting thing to notice is that congruence classes for the modulo m only exist from 0 to m 1. As shown above, for modulo 4, there only exists congruence classes [0], [1], [2] and [3]. Exercises I 1. Fill in the blanks: (a) 55 (mod 7) (b) 2048 (mod 3) (c) 406 (mod 1056) 2. What congruence classes exist for modulo 3? (a) List 3 numbers that belong to each of these classes. 3. What congruence classes exist for modulo 7? (a) List 3 numbers that belong to each of these classes. 2

Modular Operations Just like many different mathematical concepts, modular arithmetic has its own unique set of operations. Modular Addition Modular Addition is used to add congruence classes. To think of this concept, let s look at the additions of 14 and 15 using modulo 6: Transferring both into modulo notation we get: 17 5 (mod 6) and 15 3 (mod 6) Let us add in the following manner: 17 5 (mod 6) + 15 3 (mod 6) = (17 + 15) (5 + 3) (mod 6) = 32 8 (mod 6) = 32 2 (mod 6) If we were to find 32 in modulo 6 using the algorithm, we would get 32 2 (mod 6). We can extend this to say that any number that is 5 (mod 6) added to any number that is 3 (mod 6) will have a sum that is 2 (mod 6). Let s create an addition chart for all the congruence classes for modulo 6. The addition charts are different for every modulo based on reducing and how we add. When we add a class from a column and a row we change the sum into the modulo we are working with. This chart for example, shows that the sum of two numbers in modulo 6 with remainder 2 and 3 will result in a number with remainder 5: + [0] [1] [2] [3] [4] [5] [0] [0] [1] [2] [3] [4] [5] [1] [1] [2] [3] [4] [5] [0] [2] [2] [3] [4] [5] [0] [1] [3] [3] [4] [5] [0] [1] [2] [4] [4] [5] [0] [1] [2] [3] [5] [5] [0] [1] [2] [3] [4] Modular subtraction is the exact opposite of this concept and can be thought of as adding a negative number to find a sum. Remember that congruence classes stretch to negative infinity and therefore negative sums exist in congruence classes! 3

Modular Multiplication Modular Multiplication is used to multiply congruence classes. To think of this concept, let s look at the multiplication of 17 and 15 using modulo 6: Transferring both into modulo notation we get: 17 2 (mod 6) and 15 3 (mod 6) Let us multiply in the following manner: 17 5 (mod 6) 15 3 (mod 6) = (17 15) (5 3) (mod 6) = 255 15 (mod 6) = 255 3 (mod 6) If we were to find 255 in modulo 6 using the algorithm, we would get 255 3 (mod 6). We can extend this to say that any number that is 5 (mod 6) multiplied by any number that is 3 (mod 6) will have a product that is 3 (mod 6). Let s create a multiplication chart for all the congruence classes for modulo 6. When we multiply, we change the product into a modulo 6 as well. This chart for example, shows that the product of two numbers in modulo 6 with remainder 2 and 3 will result in a number with remainder 0: [0] [1] [2] [3] [4] [5] [0] [0] [0] [0] [0] [0] [0] [1] [0] [1] [2] [3] [4] [5] [2] [0] [2] [4] [0] [2] [4] [3] [0] [3] [0] [3] [0] [3] [4] [0] [4] [2] [0] [4] [2] [5] [0] [5] [4] [3] [2] [1] Exercises II 1. X 6 (mod 7) and Y 16 (mod 7). (a) What is X + Y equivalent to in modulo 7? (b) What is X - Y equivalent to in modulo 7? (c) What is Y - X equivalent to in modulo 7? (d) What is X Y equivalent to in modulo 7? 4

Applications of Congruences Let s look at a 12-hour analog clock. It is easy to tell from this what hour it is currently, it is up to us to know if it is am or pm. However, what if we have a 24-hour digital clock? When it comes to using 24-hour clocks, we have probably used tricks such as subtracting 12 from the number to get that 13:00 is the same as 1:00. We can very much write this as a mod: 13 1 (mod 12). A useful thing to remember is that the number of total items there are in the question is usually the modulo we are working in. In this case, 12 hours means we are working in modulo 12. Example: Let s say that today is a Monday. What day of the week will it be in: (a) 280 days? (b) 365 days? (c) 1000 days? Solution: (a) Let s change 280 into modulo notation. Since we are concerned with the day it will be, we will use modulo 7 as there are 7 days. 280 0 (mod 7) This means that in 280 days, it will be a Monday. (b) Let s change 365 into modulo notation. Since we are concerned with the day it will be, we will use modulo 7 as there are 7 days. 365 1 (mod 7) This means that in 365 days, it will be one day later, a Tuesday. (c) Let s change 1000 into modulo notation. Since we are concerned with the day it will be, we will use modulo 7 as there are 7 days. 1000 6 (mod 7) This means that in 1000 days, it will be six days later, a Sunday. 5

Problem Set NOTE: A leap year occurs every four years. A leap year occurs on any year that is divisible by 4 (ex: 4, 8, 12... 1996, 2000, 2004, 2008, 2012) 1. Solve the following: (a) What is 84 (mod 9)? (b) What is 52 (mod 5)? (c) What is -4 (mod 10)? 2. Create the following tables: (a) Addition table for modulo 7 (b) Multiplication table for modulo 7 3. I celebrated my 21st birthday on Wednesday, July 27th, 2011. On what day of the week was I born? (Don t forget about leap years!) 4. One year on Venus lasts 225 Earth days. Alysha is 13 years and 83 days old. How many days until her next Venusian birthday? How old will she be turning (in Venusian years)? Omit leap years for simplicity. 5. It is 8:00 AM in our 24 hour world. What time is it in a 3 hour world? 6. Using a standard 52 card deck I deal all the cards out to Vince, Tim, and myself. Were the cards dealt evenly? 7. Luc is facing West, he rotates 1260 clockwise. What direction is he now facing? (Note: A circle has 360 degrees) 8. ** 1 year on Jupiter is equal to approximately 12 Earth years. On what day of the week did you celebrate your 1 st Jovian (or Jupiterian) birthday? (If you haven t turned 1 on Jupiter yet, calculate on which day of the week your 1 st birthday will fall) 9. *** Tim counted the loonies in her pocket. When she put them in groups of 4, she had 2 loonies left over. When she put them in groups of 5, she had one loonie left over. If Philippa has more than 10 loonies, what is the smallest possible number of loonies she could have? 6