SlideShare a Scribd company logo
modular arithmetic
OBJECTIVES
•UNDERSTAND MODULAR ARITHMETIC WITH EXAMPLES
•UNDERSTAND ABOUT CONGRUENCE
•IDENTIFY VALID AND INVALID CONGRUENCE
•USE MODULO CONCEPTS AND PROPERTIES TO SOLVE
MODULAR ARITHMETIC PROBLEMS AND COMPOSE
PROOFS
MODULAR ARITHMETIC
•ANOTHER APPLICATION OF THE DIVISION
ALGORITHM THAT WILL BE IMPORTANT TO US IS
MODULAR ARITHMETIC. MODULAR ARITHMETIC
IS AN ABSTRACTION OF A METHOD OF
COUNTING THAT YOU OFTEN USE
FOR EXAMPLE
• IF IT IS NOW SEPTEMBER, WHAT MONTH WILL IT BE 25 MONTHS
FROM NOW?
• OF COURSE, THE ANSWER IS OCTOBER, BUT THE INTERESTING
FACT IS THAT YOU DIDN’T ARRIVE AT THE ANSWER BY STARTING
WITH SEPTEMBER AND COUNTING OFF 25 MONTHS.
• INSTEAD, WITHOUT EVEN THINKING ABOUT IT, YOU SIMPLY
OBSERVED THAT 25=2∙12+1, AND YOU ADDED 1 MONTH TO
SEPTEMBER
FOR EXAMPLE
•If it is now wednesday, you know that in 23 days it
will be friday.
•This time, you arrived at your answer by noting that
23=3∙ 7+2, so you added 2 days to wednesday instead
of counting off 23 days
WHAT IS MODULAR ARITHMETIC?
•Modular arithmetic is an abstraction of a
method of counting that you often use.
Surprisingly, this simple idea has numerous
important applications in mathematics and
computer science.
THE DIVISION ALGORITHM:
• Given any positive integer n and any nonnegative integer a, if we divide a by n, we
get an integer quotient q and an integer remainder r that obey the following
relationship:
• a = q n + r 0  r < n ; q = a / n
• Where x is the largest integer less than or equal to x.
E.G. Let a = 7 and n = 3, then 7 = 2  3 + 1. Here, q = 2 and r = 1,
Let a = 10 and n = 2, then 10 = 5  2 + 0. Here, q = 5 and r = 0,
Let a = -11 and n = 7, then -11 = (-2)  7 + 3. Here, q = -2 and r = 3.
WHAT IS MODULAR ARITHMETIC?
•When a=qn+r, where q is the
quotient and r is the remainder
upon dividing a by n, we write
a mod n = r.
EXAMPLE
3 mod 2 = 1 since 3= 1∙2+1
6 mod 2=0 since 6=3∙2+0,
11 mod 3=2 since 11=3∙3+2,
62 mod 85=62 since 62=0∙85+62,
-2 mod 15 = 13 since -2 =(-1)15+13
a≡ r mod n
a: dividend
r:remainder
n:divisor
modular arithmetic
modular arithmetic
Modular arithmetic
operations:
• The (mod n) operation maps all integers into the set of integers
{0, 1, … , (n -1)}. The modular arithmetic exhibits the following
properties:
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
modular arithmetic
How to calculate ab mod n
modular arithmetic
modular arithmetic
Calculate 25
𝑚𝑜𝑑5
modular arithmetic
Calculate 810
𝑚𝑜𝑑13
modular arithmetic
Calculate 48𝑚𝑜𝑑11
modular arithmetic

More Related Content

PPTX
Mathematical model
PDF
Edgar Dale's Cone of Experience
PDF
Mathematics in our World- Lesson 1
PDF
Introduction to Statistics
PPTX
Computer peripheral or Peripheral Devices
PPTX
Mathematics in Ancient Greece
PDF
Poset in Relations(Discrete Mathematics)
PPT
bearings.ppt
Mathematical model
Edgar Dale's Cone of Experience
Mathematics in our World- Lesson 1
Introduction to Statistics
Computer peripheral or Peripheral Devices
Mathematics in Ancient Greece
Poset in Relations(Discrete Mathematics)
bearings.ppt

What's hot (20)

PDF
TRIANGLE INEQUALITY THEOREM
PDF
Nature of the roots and sum and product of the roots of a quadratic equation
PPT
Systems of Linear Equations Graphing
PDF
Math 7 lesson 11 properties of real numbers
PPTX
Rational Root Theorem
PPT
Triangle inequalities
PPT
Completing the square
PPTX
Polynomial equations
PPT
Solving Word Problems Involving Quadratic Equations
PPTX
Mathematical System.pptx
PPT
Solving Systems by Substitution
PPTX
Angles formed by parallel lines cut by transversal
PPTX
Lecture 5 (solving simultaneous equations)
PPTX
Rational numbers in the number line
PDF
Lesson plan in mathematics 9 (illustrations of quadratic equations)
PDF
Linear Equations in Two Variables
DOCX
Factoring general trinomials
PPTX
writing linear equation
PPTX
MEASURES OF POSITION - Quartile, Decile and Percentile
PDF
Adding and subtracting radical expressions
TRIANGLE INEQUALITY THEOREM
Nature of the roots and sum and product of the roots of a quadratic equation
Systems of Linear Equations Graphing
Math 7 lesson 11 properties of real numbers
Rational Root Theorem
Triangle inequalities
Completing the square
Polynomial equations
Solving Word Problems Involving Quadratic Equations
Mathematical System.pptx
Solving Systems by Substitution
Angles formed by parallel lines cut by transversal
Lecture 5 (solving simultaneous equations)
Rational numbers in the number line
Lesson plan in mathematics 9 (illustrations of quadratic equations)
Linear Equations in Two Variables
Factoring general trinomials
writing linear equation
MEASURES OF POSITION - Quartile, Decile and Percentile
Adding and subtracting radical expressions
Ad

Similar to modular arithmetic (20)

PPT
Discrete Math Ch5 counting + proofs
PPT
Data-Handling part 1 .ppt
PPTX
Precalculus 12 Introduction to Calculus.pptx
PPTX
vedic multipication using ancient Indian sutras
PPTX
01 Real numbers Class X powerpoint presentation by Suraj Sir
PPT
RS-12-Calculating-Reliability-of-a-Measure.ppt
PPTX
Vedic maths ppt by lakshay virmani
PDF
Ee184405 statistika dan stokastik statistik deskriptif 2 numerik
PPTX
Number_Theory_( ITC )_Cryptographys.pptx
PPT
KB & AH Circle Reflection
PPTX
peterson-ig-unit-01-reviewed-121027131444-phpapp01.pptx
PPTX
VECTORS (lecture and presentation.).pptx
PPTX
Lesson 9 transcendental functions
PDF
PowerPoint_Ch2_Section2.1 and 2.2.pdf
PDF
Calculating Reliability.pdf
PPSX
Counting
PPTX
SLR MLR.pptx
PPT
Vedic mathematicss by SANKAR
PPT
Vedic mathematicss-R.SANKAR
Discrete Math Ch5 counting + proofs
Data-Handling part 1 .ppt
Precalculus 12 Introduction to Calculus.pptx
vedic multipication using ancient Indian sutras
01 Real numbers Class X powerpoint presentation by Suraj Sir
RS-12-Calculating-Reliability-of-a-Measure.ppt
Vedic maths ppt by lakshay virmani
Ee184405 statistika dan stokastik statistik deskriptif 2 numerik
Number_Theory_( ITC )_Cryptographys.pptx
KB & AH Circle Reflection
peterson-ig-unit-01-reviewed-121027131444-phpapp01.pptx
VECTORS (lecture and presentation.).pptx
Lesson 9 transcendental functions
PowerPoint_Ch2_Section2.1 and 2.2.pdf
Calculating Reliability.pdf
Counting
SLR MLR.pptx
Vedic mathematicss by SANKAR
Vedic mathematicss-R.SANKAR
Ad

Recently uploaded (20)

PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
Complications of Minimal Access Surgery at WLH
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
Hazard Identification & Risk Assessment .pdf
PDF
IGGE1 Understanding the Self1234567891011
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Lesson notes of climatology university.
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PDF
Trump Administration's workforce development strategy
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Classroom Observation Tools for Teachers
PDF
RMMM.pdf make it easy to upload and study
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
Weekly quiz Compilation Jan -July 25.pdf
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Complications of Minimal Access Surgery at WLH
Indian roads congress 037 - 2012 Flexible pavement
Hazard Identification & Risk Assessment .pdf
IGGE1 Understanding the Self1234567891011
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Lesson notes of climatology university.
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Computing-Curriculum for Schools in Ghana
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
Trump Administration's workforce development strategy
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Classroom Observation Tools for Teachers
RMMM.pdf make it easy to upload and study
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Empowerment Technology for Senior High School Guide
Weekly quiz Compilation Jan -July 25.pdf

modular arithmetic

  • 2. OBJECTIVES •UNDERSTAND MODULAR ARITHMETIC WITH EXAMPLES •UNDERSTAND ABOUT CONGRUENCE •IDENTIFY VALID AND INVALID CONGRUENCE •USE MODULO CONCEPTS AND PROPERTIES TO SOLVE MODULAR ARITHMETIC PROBLEMS AND COMPOSE PROOFS
  • 3. MODULAR ARITHMETIC •ANOTHER APPLICATION OF THE DIVISION ALGORITHM THAT WILL BE IMPORTANT TO US IS MODULAR ARITHMETIC. MODULAR ARITHMETIC IS AN ABSTRACTION OF A METHOD OF COUNTING THAT YOU OFTEN USE
  • 4. FOR EXAMPLE • IF IT IS NOW SEPTEMBER, WHAT MONTH WILL IT BE 25 MONTHS FROM NOW? • OF COURSE, THE ANSWER IS OCTOBER, BUT THE INTERESTING FACT IS THAT YOU DIDN’T ARRIVE AT THE ANSWER BY STARTING WITH SEPTEMBER AND COUNTING OFF 25 MONTHS. • INSTEAD, WITHOUT EVEN THINKING ABOUT IT, YOU SIMPLY OBSERVED THAT 25=2∙12+1, AND YOU ADDED 1 MONTH TO SEPTEMBER
  • 5. FOR EXAMPLE •If it is now wednesday, you know that in 23 days it will be friday. •This time, you arrived at your answer by noting that 23=3∙ 7+2, so you added 2 days to wednesday instead of counting off 23 days
  • 6. WHAT IS MODULAR ARITHMETIC? •Modular arithmetic is an abstraction of a method of counting that you often use. Surprisingly, this simple idea has numerous important applications in mathematics and computer science.
  • 7. THE DIVISION ALGORITHM: • Given any positive integer n and any nonnegative integer a, if we divide a by n, we get an integer quotient q and an integer remainder r that obey the following relationship: • a = q n + r 0  r < n ; q = a / n • Where x is the largest integer less than or equal to x. E.G. Let a = 7 and n = 3, then 7 = 2  3 + 1. Here, q = 2 and r = 1, Let a = 10 and n = 2, then 10 = 5  2 + 0. Here, q = 5 and r = 0, Let a = -11 and n = 7, then -11 = (-2)  7 + 3. Here, q = -2 and r = 3.
  • 8. WHAT IS MODULAR ARITHMETIC? •When a=qn+r, where q is the quotient and r is the remainder upon dividing a by n, we write a mod n = r.
  • 9. EXAMPLE 3 mod 2 = 1 since 3= 1∙2+1 6 mod 2=0 since 6=3∙2+0, 11 mod 3=2 since 11=3∙3+2, 62 mod 85=62 since 62=0∙85+62, -2 mod 15 = 13 since -2 =(-1)15+13
  • 10. a≡ r mod n a: dividend r:remainder n:divisor
  • 13. Modular arithmetic operations: • The (mod n) operation maps all integers into the set of integers {0, 1, … , (n -1)}. The modular arithmetic exhibits the following properties:
  • 28. How to calculate ab mod n