Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

MMW LESSON 11 - Modular - Arithmetic - and - Group - Theory CHRISTIAN PAUL C. ARNAIZ

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 19

MODULAR ARITHMETIC AND

LESSON 11
GROUP THEORY
LESSONS COVERED

11.1 Introduction to Modular Arithmetic


11.2 Operations on Modular Arithmetic
11.3 Introduction to Group theory

INTRODUCTION

Suppose you want to make a purchase on the Internet using a credit card.
You may have noticed that the typical http:// that precedes a web address is
replaced by https://. The “s” at the end indicates a secure website. This means that
someone who may be trying to steal credit card information cannot intercept the
information you send. The mathematics behind that is based on modular arithmetic.

Modular arithmetic, in turn, is part of a branch of mathematics called group


theory, another topic in this chapter. Group theory is used in a variety of many
seemingly unrelated subjects such as the structure of a diamond, wallpaper patterns,
quantum physics, and the 12-tone chromatic scale in music.

OBJECTIVES/COMPETENCIES

At the end of the lesson, the students should be able to:

1. Analyze graph and construct graphs.


2. Compute for the minimum or maximum distance of a route.
3. Determine if a graph is an Euler path or Euler Circuit.
4. Apply graph coloring to solve for practical problems, such as,
scheduling.

PRETEST

Based on your own words, answer the following:

1. What is modular arithmetic?


___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________

2. How would you perform an operation on modular arithmetic?


___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________

3. How would you determine whether a given credit card number is a valid number?
_________________________________________________________________
__
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
LESSON 11.1 INTRODUCTION TO MODULAR ARITHMETIC

Many clocks have the familiar 12-hour design. We designate whether the time
is before noon or after noon by using the abbreviations A.M. and P.M. A reference to
7:00 A.M. means 7 hours after 12:00 midnight; a reference to 7:00 P.M. means 7
hours after 12:00 noon. In both cases, once 12 is reached on the clock, we begin
again with 1.

Example 11.1

If we want to determine a time in the future or in the past, it is


necessary to consider whether we have passed 12 o’clock. To
determine the time 8 hours after 3 o’clock, we add 3 and 8.
Because we did not pass 12 o’clock, the time is 11 o’clock.

However, to determine the time 8 hours after 9 o’clock, we must take


into consideration that once we have passed 12 o’clock, we begin
again with 1. Therefore, 8 hours after 9 o’clock is 5 o’clock.

We will use the symbol ○+ to denote addition on a 12-hour clock.


3 +○ 8 = 11 and 9 +○ 8 = 5
We can also perform subtraction on a 12-hour clock. If the time now is 10 o’clock,
then
7 hours ago the time was 3 o’clock, which is the difference between 10 and 7 (10 – 7
= 3). However, if the time now is 3 o’clock, then, we see that 7 hours ago it was 8
o’clock. If we use the symbol ○- to denote subtraction on a 12-hour clock, we can
write 10 ○- 7 = 3 and 3 ○- 7 = 8

Example 11.2

A similar example involves day-of-the-week arithmetic. If we associate each


day of the week with a number, as shown at the left, then 6 days after Friday is
Thursday and 16 days after Monday is Wednesday.

5 +□ 6 = 4 and 1 □+ 16 = 3

We are using the □+ symbol for days-of-the-week arithmetic to differentiate


from the ○+symbol for clock arithmetic.

Another way to determine the day of the week is to note that when the sum 5
+ 6 = 11 is divided by 7, the number of days in a week, the remainder is 4, the
number associated with Thursday. When 1 + 16 = 17 is divided by 7, the remainder
is 3, the number associated with Wednesday. This works because the days of the
week repeat every 7 days.
The same method can be applied to 12-hour-clock arithmetic. From Example
12.1, when 8 + 7 = 15 is divided by 12, the number of hours on a 12-hour clock, the
remainder is 3, the time 7 hours after 8 o’clock.

Situations such as these that repeat in cycles are represented mathematically


by using modular arithmetic, or arithmetic modulo n.

Two integers a and b are said to be congruent modulo n, where n is a


natural number, if
𝑎−𝑏

𝑛
is an integer. In this case, we write
𝑎 𝑏 𝑚𝑜𝑑 𝑛

The number n is called the modulus. The statement 𝑎 𝑏 𝑚𝑜𝑑 𝑛 is called a


congruence.

Example 11.3

Determine whether the congruence is true.

a. 29 8 mod 3
b. 15 4 mod 6

a. Given: a = 29, b = 8, n = 3

𝑎−𝑏
𝑛
29 − 8 21
=
3 3 =7

Because 7 is an integer, 29 8 mod 3 is a true congruence.

b. Given: a = 15, b = 4, n = 6

𝑎−𝑏
𝑛
15 − 4 11
=
6 6 =7

Because is not an integer, 15 4 mod 6 is not a true congruence.

Now suppose today is Friday. To determine the day of the week 16 days from
now, we observe that 14 days from now the day will be Friday, so 16 days from now
the day will be Sunday. Note that the remainder when 16 is divided by 7 is 2, or,
using modular notation, 16 2 mod 7. The 2 signifies 2 days after Friday, which is
Sunday.

Example 11.4

July 4, 2017 was a Tuesday. What day of the week is July 4, 2022?

There are 5 years between the two dates. Each year has 365 days except 2020,
which has one extra day because it is a leap year. So the total number of days
between the two dates is (5*365) + 1 = 1826. Because = 260 remainder 6, 1826
≡ 6 mod 7.

Any multiple of 7 days past a given day will be the same day of the week. So the day
of the week 1826 days after July 4, 2017, will be the same as the day 6 days after
July 4, 2017. Thus July 4, 2022, will be a Monday.

Activity 11.1

In 2016, Abraham Lincoln’s birthday fell on Friday, February 12. On what day of the
week does Lincoln’s birthday fall in 2025?

LESSON 11.2 OPERATIONS MODULAR ARITHMETIC

In Example 12.3, we verified that 29 ≡ 8 mod 3. (Both 29 and 8 have remainder 2


when divided by 3, the modulus.) There are many other numbers congruent to 8
modulo 3, but of all these, only one is a whole number less than the modulus. This
number is the result when evaluating a modulo expression, and in this case, we use
an equal sign. Because 2 ≡ 8 mod 3 and 2 is less than the modulus, we can write
8 𝑚𝑜𝑑 3 = 2.
In general, m mod n becomes the remainder when m is divided by n.

Quotient remainder theorem

When we want to prove some properties about modular arithmetic, we often make
use of the quotient remainder theorem. It is a simple idea that comes directly from
long division.

The quotient remainder theorem says:

Given any integer A, and a positive integer B, there exist unique integers Q and
𝑹 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡
𝑨 𝑸 + 𝑹 𝒘𝒉𝒆𝒓𝒆 𝟎 𝑩

We can see that this comes directly from long division. When we divide A by B in
long division, Q is the quotient and R is the remainder. If we can write a number in
this form, then A mod B = R.

Modular Addition and Subtraction

Here’s the addition property of modular arithmetic:


(A + B) mod C = (A mod C + B mod C) mod C

Example 11.5

Let A = 14, B = 17, C = 5

Verifying both sides:


(A + B) mod C =
(14+17) mod 5 =
31 mod 5 = 1
(A + B) mod C = 1

(A mod C + B mod C) mod C =


(14 mod 5 + 17 mod 5) mod 5 =
(4 + 2) mod 5 = 1
(A mod C + B mod C) mod C = 1

(A + B) mod C = (A mod C + B mod C) mod C


Intuition Behind Modular Addition
Observe the figure below. If we want to calculate 12+9 mod 7 we can easily go
around the modular circle for a sequence of 12+9 steps clockwise (as shown in the
bottom left circle).

We can take a shortcut by observing that every 7 steps we end up in the


same position on the modular circle. These complete loops around the modular
circle don’t contribute to our final position. We ignore these complete loops
around the circle by calculating each number mod 7 (as shown in the two upper
modular circles). This will give us the number of clockwise steps, relative to 0, that
contributed to each of their final positions around the modular circle.

Now, we only have to go around the circle clockwise the total of the number of
steps that contributed to each of numbers final position (as shown in the bottom right
modular circle). This method applies, in general, to any two integers and any
modular circle.

Proof for Modular Addition

We will prove that (A + B) mod C = (A mod C + B mod C) mod C

From the quotient remainder theorem, we can write A and B as:

A = C * Q1 + R1 where 0 ≤ R1 < C and Q1 is some integer.

A mod C = R1

B = C * Q2 + R2 where 0 ≤ R2 < C and Q2 is some integer.

B mod C = R2

(A + B) = C * (Q1 + Q2) + R1+R2

(A + B) mod C =
(C * (Q1 + Q2) + R1+ R2) mod C =

We can eliminate the multiples of C when we take the mod C

= (R1 + R2) mod C

(A mod C + B mod C) mod C =

(R1 + R2) mod C

(R1 + R2) mod C = (R1 + R2) mod C

∴ (A + B) mod C = (A mod C + B mod C) mod C

A very similar proof holds for modular subtraction

(A - B) mod C = (A mod C - B mod C) mod C

A = C * Q1 + R1 where 0 ≤ R1 < C and Q1 is some integer. A mod C = R1


B = C * Q2 + R2 where 0 ≤ R2 < C and Q2 is some integer. B mod C = R2
(A - B) = C * (Q1 - Q2) + R1-R2

(A - B) mod C =
(C * (Q1 - Q2) + R1- R2) mod C =

We can eliminate the multiples of C when we take the mod C


= (R1 - R2) mod C

(A mod C - B mod C) mod C =


(R1 - R2) mod C

(R1 - R2) mod C = (R1 - R2) mod C


∴ (A - B) mod C = (A mod C - B mod C) mod C

Example 11.6

Evaluate each statement

a. (218+256) mod 5
b. (2611+135) mod 13
c. (136-727) mod 12
d. (14 mod 23 - 86 mod 23) mod 14
e. (140 mod 23 - 80 mod 23 - 6 mod 23) mod 23

a. 474 mod 5 = 4
b. 2746 mod 13 = 3
c. -591 mod 12 = 9
d. -72 mod 14 = 12
e. 54 mod 23 = 8

Modular Multiplication and Exponentiation

Multiplication Property of Modular Arithmetic:

(A * B) mod C = (A mod C * B mod C) mod C

Example 11.7

To verify the property let’s have an example.


Let
A = 4, B = 7, C = 6

(A * B) mod C = (4 * 7) mod 6
(A * B) mod C = (28) mod 6
(A * B) mod C = 4

(A mod C * B mod C) mod C = (4 mod 6 * 7 mod 6) mod 6


(A mod C * B mod C) mod C = (4 * 1) mod 6
(A mod C * B mod C) mod C = (4) mod 6
(A mod C * B mod C) mod C = 4

∴ (A * B) mod C = (A mod C * B mod C) mod C

Proof for Modular Multiplication

We will prove that (A * B) mod C = (A mod C * B mod C) mod C

From the quotient remainder theorem we can write A and B as:


A = C * Q1 + R1 where 0 ≤ R1 < C and Q1 is some integer. A mod C = R1
B = C * Q2 + R2 where 0 ≤ R2 < C and Q2 is some integer. B mod C = R2

(A * B) mod C = (A * B) mod C
(A * B) mod C = ((C * Q1 + R1 ) * (C * Q2 + R2) ) mod C
(A * B) mod C = (C * C * Q1 * Q2 + C * Q1 * R2 + C * Q2 * R1 + R1 * R 2 ) mod C (A
* B) mod C = (C * (C * Q1 * Q2 + Q1 * R2 + Q2 * R1) + R1 * R2 ) mod C

We can eliminate the multiples of C when we take the mod C


(A * B) mod C = (R1 * R2) mod C

(A mod C * B mod C) mod C = (A mod C * B mod C) mod C (A


mod C * B mod C) mod C = (R1 * R2) mod C

∴ (A * B) mod C = (A mod C * B mod C) mod C


Finally, let's explore the exponentiation property:

A^B mod C = ((A mod C)^B) mod C

Often, we want to calculate A^B mod C for large values of B. Unfortunately,


A^B becomes very large for even modest sized values for B.

For example:

2^90 = 1237940039285380274899124224

7^256 = 22135954000460481554501886154749459371625170502600730699163
6639052470497400798999684800343383794038078279445526231260759886736
3425940560014856027866381946458951205837379116473663246733509680721
264246243189632348313601

These huge values cause our calculators and computers to return overflow
errors. Even if they didn't, it would take a long time to find the mod of these huge
numbers directly.

To reduce the size of terms involved and make our calculation faster Here is a
simple divide and conquer strategy: we break down the exponent in smaller parts
using exponential rules.
Example 11.8

Suppose we want to calculate 2^90 mod 13, but we have a calculator that can't hold
any numbers larger than 2^50.

2^90 = 2^50 * 2^40

2^50 mod 13 = 1125899906842624 mod 13 = 4


2^40 mod 13 = 1099511627776 mod 13 = 3

2^90 mod 13 = (2^50 * 2^40) mod 13


2^90 mod 13 = (2^50 mod 13 * 2^40 mod 13) mod 13
2^90 mod 13 = (4 * 3) mod 13
2^90 mod 13 = 12 mod 13
2^90 mod 13 = 12

Example 11.9

How can we calculate A^B mod C quickly for any B?


5117𝑚𝑜𝑑 19
Step 1: Divide B into powers of 2 by writing it in binary
117 = 1110101 in binary

Start at the rightmost digit, let k=0 and for each digit:
If the digit is 1, we need a part for 2^k, otherwise we do not
Add 1 to k, and move left to the next digit
117 = (20 + 22 + 24 + 25 + 26)
117 = (1 + 4 + 16 + 32 + 64)

𝑚𝑜𝑑 𝑚𝑜𝑑
𝑚𝑜𝑑 𝑚𝑜𝑑

Step 2: Calculate mod C of the powers of two ≤ B


𝑚𝑜𝑑
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 19) 𝑚𝑜𝑑 19
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑
𝑚𝑜𝑑
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 19) 𝑚𝑜𝑑 19
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑
𝑚𝑜𝑑
𝑚𝑜𝑑 𝑚𝑜𝑑 19 = (54 𝑚𝑜𝑑 𝑚𝑜𝑑 19) 𝑚𝑜𝑑 19
𝑚𝑜𝑑 𝑚𝑜𝑑 19 = 289 𝑚𝑜𝑑
𝑚𝑜𝑑
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 19) 𝑚𝑜𝑑 19
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑
𝑚𝑜𝑑
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 19) 𝑚𝑜𝑑 19
𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑
532 𝑚𝑜𝑑
564 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 19) 𝑚𝑜𝑑 19
64
5 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑
64
5 𝑚𝑜𝑑

Step 3: Use modular multiplication properties to combine the calculated mod C


values

5117 𝑚𝑜𝑑 𝑚𝑜𝑑


5117 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 𝑚𝑜𝑑 19
𝑚𝑜𝑑 𝑚𝑜𝑑
5^117 𝑚𝑜𝑑 𝑚𝑜𝑑 19
5^117 𝑚𝑜𝑑 𝑚𝑜𝑑
𝟓^𝟏𝟏𝟕 𝒎𝒐𝒅 𝟏𝟗 𝟏

Sample Application of Modular Arithmetic

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.

Credit card numbers are normally 13 to 16 digits long. The first one to six
digits are used to identify the card issuer. The table below shows some of the
identification prefixes used by four popular card issuers.

Card issuer Prefix Number of digits


MasterCard 51 – 55 16
Visa 4 13 or 16
American Express 34 – 37 15
Discover 6011 16

The Luhn algorithm, used to determine whether a credit card number is valid, is
calculated as follows:

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. The Luhn algorithm is
demonstrated in example 12.10.

Example 11.10

Determine whether 5234 8213 3410 1298 is a valid credit card number.

Solution
Highlight every other digit, beginning with the next-to-last digit and reading from right
to left.
5234821334101298

Next double each of the highlighted digits.

10 2 6 4 16 2 2 3 6 4 2 0 2 2 18 8

Finally, add all digits, treating two-digit numbers as two single digits.

(1 + 0) + 2 + 6 + 4 + (1 + 6) + 2 + 2 + 3 + 6 + 4 + 2 + 0 + 2 + 2 + (1 + 8) + 8 = 60

Because 60 ≡ 0 mod 10, this is a valid credit card number.

LESSON 11.3 INTRODUCTION TO GROUP THEORY

A group is a set combined with an operation


Formal Definition of a Group

A group is a set G, combined with an operation *, such that:

1. The group contains an identity


2. The group contains inverses
3. The operation is associative
4. The group is closed under the operation.

Let's look at those one at a time using addition and integers:

1. The group contains an identity.

“There exists an e in the set G, such that a*e = a and e*a = a, for all elements a in G”

If we use the operation on any element and the identity, we will get that element
back. For the integers and addition, the identity is "0". Because 5+0 = 5 and 0+5 = 5.
In other words, it leaves other elements unchanged when combined with them.
There is only one identity element for every group.

The symbol for the identity element is e, or sometimes 0. But you need to start
seeing 0 as a symbol rather than a number. 0 is just the symbol for the identity, just
in the same way e is. It's defined that way. In fact, many times mathematicians prefer
to use 0 rather than e because it is much more natural.

2. The group contains inverses.

“For all a in G, there exists b in G, such that a * b = e and b * a = e.”

If we have an element of the group, there's another element of the group such that
when we use the operator on both of them, we get e, the identity.

For the integers and addition, the inverse of 5 is -5. (because 5 + -5 = 0). In just the
same way, for negative integers, the inverses are positives. -5 + 5 = 0, so the inverse
of -5 is 5. In fact, if a is the inverse of b, then it must be that b is the inverse of a.
Inverses are unique. You can't name any other number x, such that 5 + x = 0
besides
-5.

Make a note that while there exists only one identity for every single element in the
group, each element in the group has a different inverse. The notation that we use
for inverses is a-1. So in the above example, a-1 = b. In the same way, if we are
talking about integers and addition, 5-1 = -5.

3. Associative.
*For all a, b, and c in G, a * (b * c) = (a * b) * c”

You should have learned about associative way back in basic algebra. All it means is
that the order in which we do operations doesn't matter.
a * (b * c) = (a * b) * c

Notice that we still went a...b…c…

All that changes were the parentheses.

4. Closed under the operation.

“For all elements a, b in G, a*b is in G”

If we have two elements in the group, a and b, it must be the case that a*b is also in
the group. This is what we mean by closed. It's called closed because from inside
the group, we can't get outside of it.

And as with the earlier properties, the same is true with the integers and addition. If x
and y are integers, x + y = z, it must be that z is an integer as well.

Therefore, if you have a set and an operation, and you can satisfy every one of
those conditions, then you have a Group.

Only Two Operations

In reality, there are only two operations. When we subtract numbers, we say "a
minus b" because it's short. But what we really mean is "a plus the additive inverse
of b". The minus sign really just means add the additive inverse. In the same way,
division just means "multiply by the multiplicative inverse". So there is really only
addition and multiplication.

Example 11.11

Addition and {0}

If we add 0 to anything else in the group, we hope to get 0. Since the only other
thing in the group is 0, and 0 + 0 = 0, we have found the identity.
Now we need to find inverses. Well, again, we only have one element. So
what's the inverse of 0? We want 0 + 0 −1 = 0. Well, 0 + 0 = 0, so 0 −1 = 0. And 0 is in
the group, so 0−1 is also in the group. Since we've tried all the elements, all one of
them, we're done.

Associative? a + (b + c) = (b + c) + a? Well, since there is only one element, a


= b = c. So 0 + (0 + 0) = (0 + 0) + 0? Of course.

Finally, is it closed? If we take any element a, and any element b, will a + b be


in the group? Well, since there is only one element, 0, then a = 0 and b = 0. Is 0 + 0
in the group? You bet it is. So it's closed.
So {0} is a group with respect to addition.

Example 11.12

Multiplication and {-1, 1}

Back to the four steps. First, is there an identity? Well, this is going to be easy, there
are only three possibilities. Either:
• -1 is the identity,
• 1 is the identity, • or there isn't one.

1*-1 = -1 and -1*1 = -1. So it looks like 1 is the identity.

Now we need to find inverses. If we have a in the group, then we need to be able to
find an a−1 such that a * a−1 = 1 (or rather, e). So let's start off with 1.

1 * 1 = 1, so we know that if a = 1, a−1 = 1 as well.

Now -1 * -1 = 1. So if a = -1, then a−1 = -1 as well!

Since we have found an inverse for every element, we know the group is closed with
respect to inverses.

Is it associative? a * (b * c) = (a * b) * c. 1 * (-1 * 1) = (1 * -1) * 1

Finally, is it closed? Is 1*1 in the group? Yes. How about 1 * -1? Yes. And -1 * -1?
Yes. And finally, -1 * 1? Yes. So it is closed under the operation.

Therefore, {-1, 1} is a group under multiplication.

Example 11.13

Integers and multiplication

Let's go through the three steps again.

First, we need to find the identity. So we want a * e = e * a = a. 5 * e = 5. What is e?


e=1

Now we need to find out if integers under multiplication have inverses. So if we take
a number a, can we find a−1 such that a * a−1 = e?

Let's try 5 again. 5 * 5−1 = 1. So what is 5−1? It's 1/5.


But is not an integer. So the integers don't contain multiplicative inverses, and they
can't be a group with respect to multiplication. So we have shown that using one
operation, the integers are a group, and under another, they aren't.

The applications of groups are very advanced. For example, they are used on your
credit cards to make sure the numbers scanned are correct.

They are used by space probes so that if data is misread, it can be corrected. They
are even used to tell if polynomials have solutions we can find. For example, when
we have a*x = b, where a and b were in a group G, the properties of a group tell us
that there is one solution for x, and that this solution is also in G.

a * x = b a-1 * a * x = a-1 * b (a-1 * a) * x = a-1 * b (e) * x = a-1 * b x = a-1 * b

Since it must be that both a-1 and b are in G, a-1 * b must be in G as well.

Also, since we know the operator * must be well defined, this must be a unique
solution. Otherwise, the operator isn’t defined very well.
LEARNING INSIGHTS

Based on what you learned answer the following.

1. Where can you use modular arithmetic?


___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________

2. What is the difference of addition and subtraction operation of modular arithmetic?


_________________________________________________________________
__
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________

3. How can you know if a given statement is a group?


___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
POST-TEST

1. What is 14 mod 2?

2. What is -6 mod 18?

3. What is -17 mod 7

4. Determine whether the congruence is true.


7 ≡ 12 mod 5

5. 15 ≡ 1 mod 8
6. Evaluate each of the following.
(33 + 16) mod 6

7. (14 − 27) mod 5

8. (15 * 23) mod 11

9. Is 6011 0123 9145 2317 a valid credit card


number?

10. Show that the set {-1, 1} is a group under


multiplication, but not addition.

GLOSSARY

Arithmetic. the branch of mathematics dealing with the properties and manipulation
of numbers.

Arithmetic Modulo n. After performing the operation as usual, divide the result by n;
the answer is the remainder.

Integer. a whole number; a number that is not a fraction.

Modular. relating to a modulus.


Operation. a process in which a number, quantity, expression, etc., is altered or
manipulated according to formal rules, such as those of addition, multiplication, and
differentiation.

ONLINE REFERENCES

https://www.khanacademy.org/computing/computer-
science/cryptography/modarithmetic/a/what-is-modular-arithmetic

https://www.mathsisfun.com/sets/groups-introduction.html

REFERENCES

Aufmann, R., Lockwood, J., Nation, R., Clegg, D., (2018) Mathematical Excursions
(4th ed.), Boston, MA: Cengage Learning

You might also like