Modular Arithmetic In today’s lesson we will:

Slides:



Advertisements
Similar presentations
Solve the following problem without using a calculator. In the past seven years, the MSA Fundraising Committee has earned $ ; $ ; $ ;
Advertisements

Divisibility Rules Page 10 in textbook.
Fractions and Decimals 5.2. Writing a Fraction as a decimal Divide the numerator by the denominator.
Multiplying Multiple Digit Numbers
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.
Aim: How can we simplify powers of i?
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
Polynomial Long Division. And we know that FACTORS help us find x intercepts and solutions! This is what we were using long division in grade school for….
Long Division. We are going to try to solve 837 ÷ 27.
Numerical Functions & Tricks In today’s lesson we will look at: why we might want to use mathematical techniques some useful functions other mathematical.
Order of Operations Lesson 1.3 Mr. Sparks & Mr. Beltz.
The Steps… 1.Divide2. Multiply 3. Subtract4. Bring Down And an easy way to remember them… D ad M om S ister B rother.
Divisibility Tests How can you tell quickly whether a number can be divided exactly by another?
OPENING ACTIVITY On a sheet of paper, solve the following problems: 1.
Division methods.
Securing number facts, relationships and calculating.
Maths Parent Workshop October 2013 Stakesby Community Primary School.
Clock Arithmetic These calculations are done using the clock on the right. For example, = = = = 4.
Mathematics Meeting for Parents of Reception & KS1 Children.
Mental Arithmetic Strategies Scotts Primary School. Mental Arithmetic Scheme.
Unit 6: Polynomial Expressions and Equations Lesson 6
Chapter 3: Playing with numbers
End of Year Targets (see handout)
Long Division Methods Method 1.
Mental Arithmetic Strategies
Winwick CE Primary School
Strategies Number – addition, subtraction, multiplication and division
Solve One-Step and Two Step Problems MAFS.2.OA.1.1 (DOK 2)
Mental strategies for multi-digit whole number multiplicati0n
Mental strategies for multi-digit whole number multiplicati0n
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
In this lesson you will learn how to tell what time it is when
The partial- Quotients Division Algorithm
Year 1 Block A.
Division 5 Vocabulary.
Polynomial Long Division
Numerical Functions & Tricks
Lattice Multiplication
Today is No Pens Day Wednesday!
Today is No Pens Day Wednesday!
Division of Decimal Fractions
Adding 2-Digit Numbers Name: ___________________________
The lowest common multiple The lowest common multiple (or LCM) of two numbers is the smallest number that is a multiple of both the numbers. For small.
Year 7 Number - Calculations
Year 2 Autumn Term Week 4 Lesson 1
Tests of Divisibility 1 - All integers can be divided by 1
In this lesson you will learn how to tell what time it is when
Year 2 Spring Term Week 9 Lesson 2
Asking geographical questions
Starter Questions 3cm.
Year 2 Spring Term Week 11 Lesson 3
Review The circle is divided into( )equal parts,
Year 2 Spring Term Week 11 Lesson 3
Year 2 Summer Term Week 12 Lesson 4
Year 10.
2 Activity 1: 5 columns Write the multiples of 2 into the table below. What patterns do you notice? Colour the odd numbers yellow and the even numbers.
How can Smarties help us learn about Chance and Data?
Division With Remainders Grids
Year 2 Autumn Term Week 4 Lesson 1
Year 2 Summer Term Week 12 Lesson 4
Check even answers: p.763.
Rules of Divisibility A number is said to be “divisible” by a number if you can divide it by that number and get no remainder.
Starter.
2-6 Decimals to Fractions and vice versa
Mental Strategies in Key Stage 1
Starter.
Year 2 Spring Term Week 9 Lesson 2
No Pencil/Paper Computation
3.2 The Remainder Theorem.
Place Value Place value in 5-digit and 6-digit numbers, place on lines, add and subtract using place value. Objectives Day 1 Understand place value in.
Presentation transcript:

Modular Arithmetic In today’s lesson we will: remember how we used to do division with remainder look at numbers that repeat learn why remainders are useful use remainders to solve problems

Division – what’s the answer? If I were to ask you, “What is 10 ÷ 4?”, what would you say? Now, you might say 2.5 Think back to your primary school days – all of the answers were whole numbers. The answer would have been “2 remainder 2”. For the rest of the lesson we’re going to look at remainders, and why they’re useful.

Modular Arithmetic Modular arithmetic is division with remainders, where we’re particularly interested in the remainder part – also called the modulus Why the remainder, though?  That seems like the least important part of the answer. Think about dividing by four, how many possible remainders are there?  The remainder can only be 0, 1, 2 or 3 (as 4 is divisible by four and the remainder is back to 0), so there are four possible remainders. Modular arithmetic is therefore a good way of creating a calculation with a limited number of outputs

Repeating Numbers If you look at each digit in a counter, after getting to 9 they go back to 0. Times and angles do a similar thing, although you possibly haven’t thought about it in this way. If it’s now 10 o’clock, what time will it be in four hours’ time?  We know that a standard clock only shows twelve hours, but 10 + 4 = 14, so what do we do?  We divide the time by twelve and use the remainder; 14 ÷ 12 is 1 remainder 2, so the time would be 2 o’clock

Repeating Numbers If we’re using a compass to find directions and we’re currently heading on a bearing of 280º, which way would we be facing if we turned 100º clockwise?  Adding 280 and 100 gives us 380, but the compass only goes up to 360.  Dividing 380 by 360 gives 1 remainder 20, so the new direction is 20º. It also means that 20º is the same as 380º, which is also the same as 740º and 1100º, etc. – they all point in the same direction. Modular arithmetic is therefore very useful for things that repeat or are cyclical in nature.

Example Imagine that you were creating a web-page for the French department and you wanted to cycle through red, white and blue for the heading colours. If we divide the number of the heading by three and use the remainder so that 0 = red, 1 = white and 2 = blue: Heading Number Remainder when Heading No. ÷ 3 Colour Red 1 White 2 Blue 3 4 5 6

Another example… When I was at school, the PE teachers used to put us in teams by lining us up and moving along the line, cycling through the team names, e.g. “A, B, C, A, B, C…”, etc. If I wanted to write a program that did this, where would I started? How many teams are there? There are three, so we could work through the people dividing their position by three and looking at the remainder, which can only be 0, 1 or 2 – i.e. one of three possible values.

Remainder if position is divided by 3 Team with this position Another example… students = ("Tom", "Dick", "Harry", "Rita", "Sue", "Bob", "Peter", "Paul", "Mary") teams = ("A", "B", "C") Student Student Position Remainder if position is divided by 3 Team with this position Tom A Dick 1 B Harry 2 C Rita 3 Sue 4 Bob 5 Peter 6 Paul 7 Mary 8