SlideShare a Scribd company logo
1 of 24
Download to read offline
MATHEMATICAL SYSTEM
Modular Arithmetic
Definition. Let 𝑎, 𝑏 ∈ ℤ. Then 𝑎 and 𝑏 are said to be
congruent modulo 𝑚, denoted by 𝑎 ≡ 𝑏 𝑚𝑜𝑑 𝑚, if and
only if 𝑚|𝑎 − 𝑏 . The number 𝑚 > 0 is called the
modulus. 𝑎 ≡ 𝑏 𝑚𝑜𝑑 𝑚 is called a linear congruence.
A congruence in the form 𝑎𝑥 ≡ 𝑏 𝑚𝑜𝑑 𝑚 is called a
linear congruence in the variable 𝑥.
MATHEMATICAL SYSTEM
Exercise. Tell whether the congruence is true or not.
1) 29 ≡ 8 𝑚𝑜𝑑 3
2) 15 ≡ 4 𝑚𝑜𝑑 6
3) −30 ≡ −8 𝑚𝑜𝑑 11
4) 28 ≡ −8 𝑚𝑜𝑑 9
5) 33 ≡ 49 𝑚𝑜𝑑 4
MATHEMATICAL SYSTEM
Exercise. Solve the following congruence equations:
1) 2𝑥 + 1 ≡ 3 𝑚𝑜𝑑 10
2) 4𝑥 + 1 ≡ 5 𝑚𝑜𝑑 12
3) 6𝑥 + 1 ≡ 7 𝑚𝑜𝑑 14
4) 8𝑥 + 1 ≡ 9 𝑚𝑜𝑑 16
5) 5𝑥 + 1 ≡ 3 𝑚𝑜𝑑 5
MATHEMATICAL SYSTEM
Definition. Let 𝑎, 𝑏 ∈ ℕ. Then 𝑏 is the additive inverse
of 𝑎 mod m if and only if 𝑎 + 𝑏 ≡ 0 𝑚𝑜𝑑 𝑚. On the
other hand, 𝑏 is the multiplicative inverse of 𝑎 mod m
if and only if 𝑎𝑏 ≡ 1 𝑚𝑜𝑑 𝑚.
Exercise.
1) Find the additive inverse of 7 in mod 16 arithmetic.
2) Find the multiplicative inverse of 8 in mod 11
arithmetic.
MATHEMATICAL SYSTEM
Applications of Modular Arithmetic
1) Clock Arithmetic
2) Determining the Day of the Week
3) ISBN and UPC
4) Validity of Credit Card numbers
5) Cryptology
MATHEMATICAL SYSTEM
Clock Arithmetic
Example:
Disregarding A.M. or P.M., if it is 5: 00 now, what
time was it 57 hours ago?
Solution:
Calculate 5 − 57 𝑚𝑜𝑑 12. Thus, evaluate
−52 𝑚𝑜𝑑 12 and so, the solution is 8: 00.
MATHEMATICAL SYSTEM
Day of the Week
Zeller’s Congruence
𝑥 ≡
13𝑚 − 1
5
+
𝑦
4
+
𝑐
4
+ 𝑑 + 𝑦 − 2𝑐 𝑚𝑜𝑑 7
Where 𝑑 is the day of the month, 𝑚 is the month using
1 for March, 2 for April, …, 10 for December, 11 for
January, and 12 for February, 𝑦 is the last two digits of
the year if the month is March through December
MATHEMATICAL SYSTEM
while 𝑦 is the last two digits of the year minus 1 if the
month is January or February, 𝑐 is the first two digits
of the year, 𝑥 is the day of the week (using 0 for
Sunday, 1 for Monday, …, 6 for Saturday).
Example: Use the Zeller’s congruence to prove that Sir
Tiongson was born on Wednesday.
Note: His Birth Date: April 30, 1997
MATHEMATICAL SYSTEM
Solution:
𝑚 = 2, 𝑑 = 30, 𝑦 = 97, 𝑐 = 19
By substitution,
𝑥
≡ ቆ
ቇ
13(2) − 1
5
+
97
4
+
19
4
+ 30 + 97
− 2(19) 𝑚𝑜𝑑 7
𝑥 ≡ 3 𝑚𝑜𝑑 7, which implies Wednesday.
MATHEMATICAL SYSTEM
Exercise. Determine the day of the week on which you
were born by applying the Zeller’s congruence.
ISBN
ISBN- International Standard Book Number
Every book that is catalogued in the Library of Congress
must have an ISBN.
This 13-digit number was created to help ensure that orders
for books are filled accurately and that books are
catalogued correctly.
MATHEMATICAL SYSTEM
The first three digits of an ISBN are 978 (or 979)
followed by 9 digits that are divided into three groups
of various lengths.
These indicate the country or region, the publisher, and
the title of the book. The last digit (13th one) is called a
check digit.
If we label the first digit of an ISBN 𝑑1, the second
digit 𝑑2, and so on until 𝑑13, then we have the formula
MATHEMATICAL SYSTEM
Formula for the ISBN Check Digit
𝑑13
= 10
− (
)
𝑑1 + 3𝑑2 + 𝑑3 + 3𝑑4 + 𝑑5 + 3𝑑6 + 𝑑7 + 3𝑑8
+ 𝑑9 + 3𝑑10 + 𝑑11 + 3𝑑12 𝑚𝑜𝑑 10
Exercise
Determine the ISBN check digit for the book “The
Equation that Couldn’t Be Solved” by Mario Livio.
The first 12 digits are 978-0-7432-5820-?
MATHEMATICAL SYSTEM
UPC (Universal Product Code)
This number is placed on many items and is
particularly useful in grocery stores.
A check-out clerk passes the product by a scanner,
which reads the number from a bar code and records
the price on the cash register.
In addition to pricing items, the UPC gives the store
manager accurate information about inventory.
MATHEMATICAL SYSTEM
Formula for the UPC Check Digit
𝑑12
= 10
− (
)
3𝑑1 + 𝑑2 + 3𝑑3 + 𝑑4 + 3𝑑5 + 𝑑6 + 3𝑑7 + 𝑑8
+ 3𝑑9 + 𝑑10 + 3𝑑11 𝑚𝑜𝑑 10
Exercise. Find the check digit for the UPC of the Blu-
ray Disc release of the film Jurassic World. The first 11
digits are 0-25192-21221-?
MATHEMATICAL SYSTEM
Credit Card Numbers
Luhn Algorithm- Beginning with the next-to-last digit
(the last digit is the check digit) and reading from right
to left, double every other digit. If a digit becomes a
two-digit number after being doubled, treat the number
as two individual digits. Now, find the sum of the new
list of digits; the final sum must be congruent to 0 mod
10.
MATHEMATICAL SYSTEM
Exercise. Determine whether 5234 8213 3410 1298 is
a valid credit card number.
Is 6011 0123 9145 2317 a valid credit card number?
Justify your answer.
Cryptology
It is the study of making and breaking secret codes.
Plaintext- is a message before it is coded.
MATHEMATICAL SYSTEM
Ciphertext- is the message after it has been written in
code.
Encryption- is the method of changing from plaintext
to ciphertext.
Cyclical coding scheme- each letter of the alphabet is
shifted the same number of positions.
Decryption- is the method of changing from ciphertext
to plaintext.
MATHEMATICAL SYSTEM
Formula (Encryption)
𝑐 ≡ 𝑝 + 𝑚 𝑚𝑜𝑑 26
Where 𝑝 is the numerical equivalent of the plaintext
letter, 𝑐 is the numerical equivalent of the ciphertext
letter, and 𝑚 is the number of positions the letter is
shifted.
Formula (Decryption)
𝑝 ≡ 𝑐 + 26 − 𝑚 𝑚𝑜𝑑 26
MATHEMATICAL SYSTEM
Exercise. Using the formula 𝑐 ≡ 𝑝 + 22 𝑚𝑜𝑑 26,
encode the line from Lord Byron’s poem “She Walks
in Beauty”
SHE WALKS IN BEAUTY LIKE THE NIGHT
Answer:
ODA SWHGO EJ XAWQPU HEGA PDA JECDP
MATHEMATICAL SYSTEM
Introduction to Group Theory
Algebraic System- is a nonempty set together with one
or more well-defined operations.
Examples:
The set of real numbers under addition and
multiplication is an algebraic system.
The set of 𝑚𝑥𝑛 matrices under matrix addition is an
algebraic system
MATHEMATICAL SYSTEM
Group- is a set of elements with a well-defined
operation satisfying the following four properties:
1) The set is closed with respect to the operation.
2) The operation satisfies the associative property.
3) There is an identity element.
4) Each element has an inverse.
MATHEMATICAL SYSTEM
Examples:
1) The set of integers under addition is a group.
2) The set of nonzero real numbers under
multiplication forms a group.
Remark: Groups in which the operation satisfies the
commutative property are called commutative groups
or abelian groups. The above groups are examples of
Abelian Groups.
MATHEMATICAL SYSTEM
Determine whether the following statement is true or
false. Justify your answer.
1) The set {−1, 1} is a group under multiplication.
2) The set of all odd integers is closed under addition.
3) ℚ under multiplication is a group.
4) The set {0, 1, 2, 3} is a group under addition mod 4.
5) The set {−1, 0, 1} is a group under addition.

More Related Content

What's hot

What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...
What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...
What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...
Simplilearn
 
MACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULEMACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULE
DrBindhuM
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
Lena
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
Nitesh Singh
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
Ashita Agrawal
 

What's hot (20)

Set Theory Presentation
Set Theory PresentationSet Theory Presentation
Set Theory Presentation
 
Fuzzy sets
Fuzzy sets Fuzzy sets
Fuzzy sets
 
Introduction to sets
Introduction to setsIntroduction to sets
Introduction to sets
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEM
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...
What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...
What Is Dynamic Programming? | Dynamic Programming Explained | Programming Fo...
 
Theory of Computation
Theory of ComputationTheory of Computation
Theory of Computation
 
MACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULEMACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULE
 
Sets PowerPoint Presentation
Sets PowerPoint PresentationSets PowerPoint Presentation
Sets PowerPoint Presentation
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
4.6 halting problem
4.6 halting problem4.6 halting problem
4.6 halting problem
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3
 
Intro to Discrete Mathematics
Intro to Discrete MathematicsIntro to Discrete Mathematics
Intro to Discrete Mathematics
 
Set Theory
Set TheorySet Theory
Set Theory
 
Introduction to Data Structures & Algorithms
Introduction to Data Structures & AlgorithmsIntroduction to Data Structures & Algorithms
Introduction to Data Structures & Algorithms
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
Prpositional2
Prpositional2Prpositional2
Prpositional2
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Introduction to Sets
Introduction to SetsIntroduction to Sets
Introduction to Sets
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 

Similar to Chapter-4-Mathematical-System.pdf

DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
bintu55
 
Introduction Combined Number And Dp
Introduction Combined Number And DpIntroduction Combined Number And Dp
Introduction Combined Number And Dp
Awais Khan
 
Business mathematics is a very powerful tools and analytic process that resul...
Business mathematics is a very powerful tools and analytic process that resul...Business mathematics is a very powerful tools and analytic process that resul...
Business mathematics is a very powerful tools and analytic process that resul...
mkrony
 
Computational skills
Computational skillsComputational skills
Computational skills
leoscotch
 
ix-number system-ppt(2).pptx
ix-number system-ppt(2).pptxix-number system-ppt(2).pptx
ix-number system-ppt(2).pptx
Rajkumarknms
 

Similar to Chapter-4-Mathematical-System.pdf (20)

Business mathematics presentation
Business mathematics presentationBusiness mathematics presentation
Business mathematics presentation
 
Mathematics topics for class 6
Mathematics topics for class 6Mathematics topics for class 6
Mathematics topics for class 6
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
G5Q3-WEEK-6-MATH-PPT.pptx
G5Q3-WEEK-6-MATH-PPT.pptxG5Q3-WEEK-6-MATH-PPT.pptx
G5Q3-WEEK-6-MATH-PPT.pptx
 
Number system part 1
Number  system part 1Number  system part 1
Number system part 1
 
Number system.pdf
Number system.pdfNumber system.pdf
Number system.pdf
 
DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
 
Analysis.pptx
Analysis.pptxAnalysis.pptx
Analysis.pptx
 
Lesson 1 introduction
Lesson 1   introductionLesson 1   introduction
Lesson 1 introduction
 
Lesson 1 introduction
Lesson 1   introductionLesson 1   introduction
Lesson 1 introduction
 
Introduction Combined Number And Dp
Introduction Combined Number And DpIntroduction Combined Number And Dp
Introduction Combined Number And Dp
 
Sistemas de ecuaciones lineales
Sistemas de ecuaciones linealesSistemas de ecuaciones lineales
Sistemas de ecuaciones lineales
 
Arithmetic Sequence and Arithmetic Series
Arithmetic Sequence and Arithmetic SeriesArithmetic Sequence and Arithmetic Series
Arithmetic Sequence and Arithmetic Series
 
Generating Patterns and arithmetic sequence.pptx
Generating Patterns and arithmetic sequence.pptxGenerating Patterns and arithmetic sequence.pptx
Generating Patterns and arithmetic sequence.pptx
 
Business mathematics is a very powerful tools and analytic process that resul...
Business mathematics is a very powerful tools and analytic process that resul...Business mathematics is a very powerful tools and analytic process that resul...
Business mathematics is a very powerful tools and analytic process that resul...
 
P2-Chp3-SequencesAndSeries from pure maths 2.pptx
P2-Chp3-SequencesAndSeries from pure maths 2.pptxP2-Chp3-SequencesAndSeries from pure maths 2.pptx
P2-Chp3-SequencesAndSeries from pure maths 2.pptx
 
1 ESO - UNIT 04 - INTEGER NUMBERS
1 ESO - UNIT 04 - INTEGER NUMBERS1 ESO - UNIT 04 - INTEGER NUMBERS
1 ESO - UNIT 04 - INTEGER NUMBERS
 
Computational skills
Computational skillsComputational skills
Computational skills
 
ix-number system-ppt(2).pptx
ix-number system-ppt(2).pptxix-number system-ppt(2).pptx
ix-number system-ppt(2).pptx
 
U5 l1 simultaneous equations
U5 l1  simultaneous equationsU5 l1  simultaneous equations
U5 l1 simultaneous equations
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 

Chapter-4-Mathematical-System.pdf

  • 1.
  • 2. MATHEMATICAL SYSTEM Modular Arithmetic Definition. Let 𝑎, 𝑏 ∈ ℤ. Then 𝑎 and 𝑏 are said to be congruent modulo 𝑚, denoted by 𝑎 ≡ 𝑏 𝑚𝑜𝑑 𝑚, if and only if 𝑚|𝑎 − 𝑏 . The number 𝑚 > 0 is called the modulus. 𝑎 ≡ 𝑏 𝑚𝑜𝑑 𝑚 is called a linear congruence. A congruence in the form 𝑎𝑥 ≡ 𝑏 𝑚𝑜𝑑 𝑚 is called a linear congruence in the variable 𝑥.
  • 3. MATHEMATICAL SYSTEM Exercise. Tell whether the congruence is true or not. 1) 29 ≡ 8 𝑚𝑜𝑑 3 2) 15 ≡ 4 𝑚𝑜𝑑 6 3) −30 ≡ −8 𝑚𝑜𝑑 11 4) 28 ≡ −8 𝑚𝑜𝑑 9 5) 33 ≡ 49 𝑚𝑜𝑑 4
  • 4. MATHEMATICAL SYSTEM Exercise. Solve the following congruence equations: 1) 2𝑥 + 1 ≡ 3 𝑚𝑜𝑑 10 2) 4𝑥 + 1 ≡ 5 𝑚𝑜𝑑 12 3) 6𝑥 + 1 ≡ 7 𝑚𝑜𝑑 14 4) 8𝑥 + 1 ≡ 9 𝑚𝑜𝑑 16 5) 5𝑥 + 1 ≡ 3 𝑚𝑜𝑑 5
  • 5. MATHEMATICAL SYSTEM Definition. Let 𝑎, 𝑏 ∈ ℕ. Then 𝑏 is the additive inverse of 𝑎 mod m if and only if 𝑎 + 𝑏 ≡ 0 𝑚𝑜𝑑 𝑚. On the other hand, 𝑏 is the multiplicative inverse of 𝑎 mod m if and only if 𝑎𝑏 ≡ 1 𝑚𝑜𝑑 𝑚. Exercise. 1) Find the additive inverse of 7 in mod 16 arithmetic. 2) Find the multiplicative inverse of 8 in mod 11 arithmetic.
  • 6. MATHEMATICAL SYSTEM Applications of Modular Arithmetic 1) Clock Arithmetic 2) Determining the Day of the Week 3) ISBN and UPC 4) Validity of Credit Card numbers 5) Cryptology
  • 7. MATHEMATICAL SYSTEM Clock Arithmetic Example: Disregarding A.M. or P.M., if it is 5: 00 now, what time was it 57 hours ago? Solution: Calculate 5 − 57 𝑚𝑜𝑑 12. Thus, evaluate −52 𝑚𝑜𝑑 12 and so, the solution is 8: 00.
  • 8. MATHEMATICAL SYSTEM Day of the Week Zeller’s Congruence 𝑥 ≡ 13𝑚 − 1 5 + 𝑦 4 + 𝑐 4 + 𝑑 + 𝑦 − 2𝑐 𝑚𝑜𝑑 7 Where 𝑑 is the day of the month, 𝑚 is the month using 1 for March, 2 for April, …, 10 for December, 11 for January, and 12 for February, 𝑦 is the last two digits of the year if the month is March through December
  • 9. MATHEMATICAL SYSTEM while 𝑦 is the last two digits of the year minus 1 if the month is January or February, 𝑐 is the first two digits of the year, 𝑥 is the day of the week (using 0 for Sunday, 1 for Monday, …, 6 for Saturday). Example: Use the Zeller’s congruence to prove that Sir Tiongson was born on Wednesday. Note: His Birth Date: April 30, 1997
  • 10. MATHEMATICAL SYSTEM Solution: 𝑚 = 2, 𝑑 = 30, 𝑦 = 97, 𝑐 = 19 By substitution, 𝑥 ≡ ቆ ቇ 13(2) − 1 5 + 97 4 + 19 4 + 30 + 97 − 2(19) 𝑚𝑜𝑑 7 𝑥 ≡ 3 𝑚𝑜𝑑 7, which implies Wednesday.
  • 11. MATHEMATICAL SYSTEM Exercise. Determine the day of the week on which you were born by applying the Zeller’s congruence. ISBN ISBN- International Standard Book Number Every book that is catalogued in the Library of Congress must have an ISBN. This 13-digit number was created to help ensure that orders for books are filled accurately and that books are catalogued correctly.
  • 12. MATHEMATICAL SYSTEM The first three digits of an ISBN are 978 (or 979) followed by 9 digits that are divided into three groups of various lengths. These indicate the country or region, the publisher, and the title of the book. The last digit (13th one) is called a check digit. If we label the first digit of an ISBN 𝑑1, the second digit 𝑑2, and so on until 𝑑13, then we have the formula
  • 13. MATHEMATICAL SYSTEM Formula for the ISBN Check Digit 𝑑13 = 10 − ( ) 𝑑1 + 3𝑑2 + 𝑑3 + 3𝑑4 + 𝑑5 + 3𝑑6 + 𝑑7 + 3𝑑8 + 𝑑9 + 3𝑑10 + 𝑑11 + 3𝑑12 𝑚𝑜𝑑 10 Exercise Determine the ISBN check digit for the book “The Equation that Couldn’t Be Solved” by Mario Livio. The first 12 digits are 978-0-7432-5820-?
  • 14. MATHEMATICAL SYSTEM UPC (Universal Product Code) This number is placed on many items and is particularly useful in grocery stores. A check-out clerk passes the product by a scanner, which reads the number from a bar code and records the price on the cash register. In addition to pricing items, the UPC gives the store manager accurate information about inventory.
  • 15. MATHEMATICAL SYSTEM Formula for the UPC Check Digit 𝑑12 = 10 − ( ) 3𝑑1 + 𝑑2 + 3𝑑3 + 𝑑4 + 3𝑑5 + 𝑑6 + 3𝑑7 + 𝑑8 + 3𝑑9 + 𝑑10 + 3𝑑11 𝑚𝑜𝑑 10 Exercise. Find the check digit for the UPC of the Blu- ray Disc release of the film Jurassic World. The first 11 digits are 0-25192-21221-?
  • 16. MATHEMATICAL SYSTEM Credit Card Numbers Luhn Algorithm- Beginning with the next-to-last digit (the last digit is the check digit) and reading from right to left, double every other digit. If a digit becomes a two-digit number after being doubled, treat the number as two individual digits. Now, find the sum of the new list of digits; the final sum must be congruent to 0 mod 10.
  • 17. MATHEMATICAL SYSTEM Exercise. Determine whether 5234 8213 3410 1298 is a valid credit card number. Is 6011 0123 9145 2317 a valid credit card number? Justify your answer. Cryptology It is the study of making and breaking secret codes. Plaintext- is a message before it is coded.
  • 18. MATHEMATICAL SYSTEM Ciphertext- is the message after it has been written in code. Encryption- is the method of changing from plaintext to ciphertext. Cyclical coding scheme- each letter of the alphabet is shifted the same number of positions. Decryption- is the method of changing from ciphertext to plaintext.
  • 19. MATHEMATICAL SYSTEM Formula (Encryption) 𝑐 ≡ 𝑝 + 𝑚 𝑚𝑜𝑑 26 Where 𝑝 is the numerical equivalent of the plaintext letter, 𝑐 is the numerical equivalent of the ciphertext letter, and 𝑚 is the number of positions the letter is shifted. Formula (Decryption) 𝑝 ≡ 𝑐 + 26 − 𝑚 𝑚𝑜𝑑 26
  • 20. MATHEMATICAL SYSTEM Exercise. Using the formula 𝑐 ≡ 𝑝 + 22 𝑚𝑜𝑑 26, encode the line from Lord Byron’s poem “She Walks in Beauty” SHE WALKS IN BEAUTY LIKE THE NIGHT Answer: ODA SWHGO EJ XAWQPU HEGA PDA JECDP
  • 21. MATHEMATICAL SYSTEM Introduction to Group Theory Algebraic System- is a nonempty set together with one or more well-defined operations. Examples: The set of real numbers under addition and multiplication is an algebraic system. The set of 𝑚𝑥𝑛 matrices under matrix addition is an algebraic system
  • 22. MATHEMATICAL SYSTEM Group- is a set of elements with a well-defined operation satisfying the following four properties: 1) The set is closed with respect to the operation. 2) The operation satisfies the associative property. 3) There is an identity element. 4) Each element has an inverse.
  • 23. MATHEMATICAL SYSTEM Examples: 1) The set of integers under addition is a group. 2) The set of nonzero real numbers under multiplication forms a group. Remark: Groups in which the operation satisfies the commutative property are called commutative groups or abelian groups. The above groups are examples of Abelian Groups.
  • 24. MATHEMATICAL SYSTEM Determine whether the following statement is true or false. Justify your answer. 1) The set {−1, 1} is a group under multiplication. 2) The set of all odd integers is closed under addition. 3) ℚ under multiplication is a group. 4) The set {0, 1, 2, 3} is a group under addition mod 4. 5) The set {−1, 0, 1} is a group under addition.