Module 6 Mathematical Analysis Days of The Week Isbn Upc Credit Card Codes
Module 6 Mathematical Analysis Days of The Week Isbn Upc Credit Card Codes
1. 5 ⊕ 7 ANSWER: 5
2. 6 ⊕ 3 ANSWER: 2
3. 7 Θ 2 ANSWER: 5
4. 3 Θ 7 ANSWER: 3
Situations such as these that repeat in cycles are
represented mathematically by using modular
arithmetic, or arithmetic modulo n.
TRUE
FALSE
A Day of the Week
July 4, 2010, was a Sunday. What day of the week is
July 4, 2015?
ACTIVITY
I. Determine whether the congruence is true or false.
Subtraction Modulo n
Evaluate each of the following
Answer: 5
Answer: 2
Disregarding a.m. or p.m., if it is 5 o’clock now, what
time was it 57 hours ago?
Therefore, if it is 5 o’clock now, 57 hours
ago it was 8 o’clock.
Check on this!
If today is Tuesday, what day of the week will it be 93
days from now?
Answer:
Multiplication Modulo n
Check on this!
Answer: 10
2 is a solution
6 is a solution
The solutions are 1, 6, 11, 16, 21,26, ...
Check on this!
Answer: NO SOLUTION
ACTIVITY.
Find all whole number solutions of the congruence
equation.
Additive and Multiplicative Inverses in
Modular Arithmetic
Example of additive inverses
ACTIVITY.
Find the additive inverse and the multiplicative
inverse, if it exists, of the given number.
1. 4 in modulo 9 arithmetic
2. 7 in modulo 5 arithmetic
3. 3 in modulo 8 arithmetic
Computing the Day of the Week
Using the floor function, we can write a formula that
gives the day of the week for any date on the Gregorian
calendar. The formula, known as Zeller’s congruence, is
given by
Where:
d is the day of the month
m is the month using 1 for March, 2 for April, ... , 10 for
December; January and February are assigned the
values 11 and 12, respectively
y is the last two digits of the year if the month is March
through December; if the month is January or
February, y is the last two digits of the year minus 1
c is the first two digits of the year
x is the day of the week (using 0 for Sunday, 1 for
Monday, ... , 6 for Saturday)
Determine the day of the week on
July 4, 1776,
The first three digits of an ISBN are 978, the next digit
indicates the country in which the publisher is
incorporated (0, and sometimes 1, for books written in
English), the next two to seven digits indicate the
publisher, the next group of digits indicates the title of
the book, and the last digit (the 13th one) is called a
check digit.
It is this check digit that is used to ensure accuracy.
For instance, the ISBN for the fourth edition of the
American Heritage Dictionary is 978-0-395-82517-4.
Suppose, however, that a bookstore clerk sends an
order for the American Heritage Dictionary and
inadvertently enters the number 978-0-395-28517-4,
where the clerk transposed the 8 and 2 in the five
numbers that identify the book.
Correct ISBN: 978-0-395-82517-4
Incorrect ISBN: 978-0-395-28517-4
The receiving clerk calculates the check digit as
follows.
Because the check digit is 6 and not 4 as it should
be, the receiving clerk knows that an incorrect ISBN
has been sent. Transposition errors are among the
most frequent errors that occur. The ISBN coding
system will catch most of them.
Check on this!
A purchase order for the book The Mathematical
Tourist by Ivars Peterson includes the ISBN 978-0-
760-73261-6. Determine whether this is a valid ISBN.
ACTIVITY.
Determine the correct check digit for the UPC.
Credit Card Numbers
Companies that issue credit cards also use modular
arithmetic to determine whether a credit card
number is valid. This is especially important in e-
commerce, where credit card information is
frequently sent over the Internet. The primary
coding method is based on the Luhn algorithm,
which uses mod 10 arithmetic.
Answer:
ACTIVITY.
Determine whether the given credit card number is
a valid number.
Cryptology
Related to codes on books and grocery items are
secret codes. These codes are used to send
messages between people, companies, or nations.
Solution:
ACTIVITY: