Professional Documents
Culture Documents
Shubh N. Singh
Department of Mathematics
Central University of South Bihar
Gaya (Bihar), India
Contents
Contents i
Preface 1
2 Prime Numbers 11
2.1 Euclid’s Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Prime Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Solved Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Fermat’s Theorem 15
3.1 Solved Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 Exercises on Fermat’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . 18
4 Linear Congruences 19
4.1 Solved Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.2 Objective Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.3 Exercises on Linear Congruence Equations . . . . . . . . . . . . . . . . . . . 22
6 Wilson’s Theorem 27
6.1 Solved Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.2 Exercises on Multiplicative Inverse . . . . . . . . . . . . . . . . . . . . . . . 28
7 Euler-Phi Functions 29
7.1 Solved Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
7.2 Exercises on Euler Phi functions . . . . . . . . . . . . . . . . . . . . . . . . 30
Bibliography 31
Index 32
i
ii CONTENTS
Preface
The notion of group theory first came into light in the course of as early as 1770 by Joseph
Louis Lagrange. In the vicinity of 1830. Evariste. Galois extended Lagrange’s work in
the exploration of solutions of equations and introduced firstly the term ‘group’. During
those days, mathematicians were working with groups of transformations. These were
nothing, but the collection of mappings, that, under, operation possesses certain attributes.
In the beginning, a group was a set of permutations (i.e.. one-to-one correspondence
/bijection) with the characteristic that the combination of any two permutations is again
a permutation and belongs to the same set. Mathematicians like Felix Klein (1849-1925),
a German mathematician take on the idea to amalgamate areas of geometry. In 1870,
Leopold Kronecker (1823-1891) proposed a set of axioms for a group. The concept of the
group proposed earlier was generalized to the present concept ’of an abstract group during
the first decade of the twentieth’ century’, which was defined by virtue of a set of axioms.
The theory and concept of abstract groups play a very important role in present-day
science and mathematics. Indeed, the concept of groups arises in a number of seemingly
unconnected disciplines. The word-groups appear in analysis, topology, algebra, geometry,
computer science, chemistry, physics, economics, and biology, etc. So the study of groups
is indispensable and very fascinating. In this book, our aim surrounds the study of groups
and the properties they hold.
The theory of groups is regarded as the branch of abstract algebra. The first fruitful
and productive use of groups was made in the early nineteenth century by Augustin Louis
Cauchy (1789-1857) and Evariste Galois (1811-1932) . They used groups in order to de-
scribe the effect of permutations on the roots of a polynomial equation. What they use
as groups were not based on an axiomatic approach. In 1854, Arthur Cayley (1821-1895)
firstly proposed the axioms for a group. However, the concept proposed by Cayley was lost
sight of. Kronecker again come out with the postulates for an Abelian group in 1870. H.
Weber proposed the notion for finite groups in 1882 and the concept for infinite groups in
1883. As discussed earlier, the notion of a group arose from the study of one-one functions
on the set of roots of a polynomial equation. We have seen that the set G of all one-one
functions from a set A onto itself satisfies the following properties:
1
2 CONTENTS
Chapter 1
Definition 1.0.1. Let a, b, and c be integers such that a and b are not both zero. Then
the equation
ax + by = c
is called the linear Diophantine equation in two unknowns.
Example 1.0.2. Consider the following linear Diophantine equation in two unknowns:
3x + 6y = 18.
Observe that
Example 1.0.3. Consider the following linear Diophantine equation in two unknowns:
2x + 10y = 17.
Observe that the left-hand side of the equation is an even number whatever the choice of
integers x and y. However, the right-hand side of the equation is an odd integer. Hence
there is no solution to this equation 2x + 10y = 17.
Faced with this, it is reasonable to enquire about the circumstances under which a
solution is possible and, when a solution does exist, whether we can determine all the
solutions explicitly.
3
4 CHAPTER 1. LINEAR DIOPHANTINE EQUATIONS
Proof. Write d := gcd(a, b). Then clearly d | a and d | b. This implies that a = dr and
b = ds for some integers r, s ∈ Z.
First, suppose that ax + by = c has a solution, say (x0 , y0 ). This gives ax0 + by0 = c.
Therefore
c = ax0 + by0
= (dr)x0 + (ds)y0
= d(rx0 + sy0 ).
c = dt
= (ax0 + by0 )t
= a(tx0 ) + b(ty0 ).
Example 1.0.5. The linear Diophantine equation 6x + 51y = 22 in two unknowns has no
solution, since gcd(6, 51) = 3 but 3 does not divide 22.
Example 1.0.6. The linear Diophantine equation 33x + 14y = 115 in two unknowns has
a solution, since gcd(33, 14) = 1 and 1 divides 115.
Example 1.0.7. The linear Diophantine equation 14x + 35y = 93 in two unknowns has
no solution, since gcd(14, 35) = 7 but 7 does not divide 93.
Example 1.0.8. The linear Diophantine equation 56x + 72y = 40 in two unknowns has a
solution, since gcd(56, 72) = 8 and 8 divides 40.
Example 1.0.9. The linear Diophantine equation 24x + 138y = 18 in two unknowns has
a solution, since gcd(24, 138) = 6 and 6 divides 18.
Problem 1.0.10. Which of the following linear Diophantine equations in two unknowns
can not be solved?
Example 1.0.12. Consider the following linear Diophantine equation in two unknowns:
3x + 6y = 18.
Note that a = 3, b = 6, and d := gcd(3, 6) = 3. Observe that the pair (4, 1) is a solution of
3x + 6y = 18, since 3 · 4 + 6 · 1 = 18. Say x0 = 4 and y0 = 1.
(i) the pair (−6, 6) is a solution of 3x + 6y = 18, since 3 · (−6) + 6 · 6 = 18. Also
6 3
−6 = 4 + (−5) 6 = 1 − (−5)
3 3
(ii) the pair (10, −2) is a solution of 3x + 6y = 18, since 3 · 10 + 6 · (−2) = 18. Also
6 3
10 = 4 + ·3 −2=1− ·3
3 3
22 = 4 · 5 + 2
5=2·2+1
2 = 2 · 1 + 0.
Thus gcd(5, 22) = 1. Since 1 | 18, the equation 5x + 22y = 18 has a solution.
Note that 18 = 1 · 18. So, we first write 1 := gcd(5, 22) as a linear combination of 5
and 22. For this, we work backward through the previous calculations as follows:
1=5−2·2
= 5 − 2 · (22 − 4 · 5)
= 5 − 2 · 22 + 8 · 5
= 9 · 5 − 2 · 22
6 CHAPTER 1. LINEAR DIOPHANTINE EQUATIONS
18 = 18 · 1
= 18 · (9 · 5 + (−2) · 22)
= 162 · 5 + (−2 · 18) · 22
= 162 · 5 + (−36) · 22.
Hence x = 162 and y = −36 is a solution to the linear Diophantine equation 5x + 22y = 18.
All other solutions are given by
22 5
x = 162 + t = 162 + 22t y = (−36) − t = −36 − 5t,
1 1
where t is an integer.
Problem 1.1.2. Determine whether the following linear Diophantine equation in two un-
knowns has a solution.
172x + 20y = 1000.
If a solution of the equation exists, then find it.
Solution. Applying the Euclidean’s Algorithm to the evaluation of gcd(172, 20), we find
that
172 = 8 · 20 + 12
20 = 1 · 12 + 8
12 = 1 · 8 + 4
8=2·4+0
Thus gcd(172, 20) = 4. Since 4 | 1000, the equation 172x + 20y = 1000 has a solution.
Note that 1000 = 4 · 250. So, we first write 4 := gcd(172, 20) as a linear combination
of 172 and 20. For this, we work backward through the previous calculations as follows:
4 = 12 − 8
= 12 − (20 − 12)
= 2 · 12 − 20
= 2 · (172 − 8 · 20) − 20
= 2 · 172 − 17 · 20
Thus we have 4 = 2 · 172 + (−17) · 20. Multiplying this relation by 250, we obtain
1000 = 250 · 4
= 250 · (2 · 172 + (−17) · 20)
= 500 · 172 + (−17 · 250) · 20
= 500 · 172 + (−4250) · 20.
1.1. SOLVED PROBLEMS 7
Hence x = 500 and y = −4250 is a solution to the linear Diophantine equation 172x+20y =
1000. All other solutions are given by
20 172
x = 500 + t = 500 + 5t y = (−4250) − t = (−4250) − 43t,
4 4
where t is an integer.
Problem 1.1.3. Find all the solutions (x, y) to the following Diophantine equation for
which x and y are both positive integers:
13 = 1 · 11 + 2
11 = 5 · 2 + 1
2 = 2 · 1 + 0.
Therefore gcd(13, 11) = 1, and so gcd(13, 11) divides 369. Therefore the linear Diophantine
equation 11x + 13y = 369 has a solution.
We now write 1 := gcd(13, 11) as a linear combination of 13 and 11. For this, we work
backward through the previous calculations as follows:
1 = 11 − 5 · 2
= 11 − 5 · (13 − 11)
= 11 · 6 + 13 · (−5).
Hence
369 = 369 · 1
= 369 · (11 · 6 + 13 · (−5))
= 11 · 2214 + 13 · (−1845).
where t ∈ Z.
I want solutions for which x and y are both positive. This means that x > 0 and y > 0.
The inequality x > 0 gives 2214 + 13t > 0, and so t > − 2214 13 = −170.31.
The inequality y > 0 gives −1845 − 11t > 0, and so t < − 1845 11 = −167.73.
The integers t which satisfy both of these inequalities are t = −170, −169, −168.
Thus the solutions are (x, y) = (4, 25), (17, 14), and (20, 3).
8 CHAPTER 1. LINEAR DIOPHANTINE EQUATIONS
t x y
−170 4 25
−169 17 14
−168 20 3
Problem 1.1.4. Sam buys large shirts for $18 each and small shirts for $11 each. The
shirts cost a total of $1188. What is the smallest total number of shirts, he could have
bought?
Solution. Let x be the number of large shirts, and let y be the number of small shirts.
Then
18x + 11y = 1188.
Applying the Euclidean’s algorithm, we get
18 = 1 · 11 + 7
11 = 1 · 7 + 4
7=1·4+3
4=1·3+1
3 = 3 · 1 + 0.
Therefore gcd(18, 11) = 1, and so gcd(18, 11) divides 1188. Therefore the linear Diophan-
tine equation 18x + 11y = 1188 has a solution.
We now write 1 := gcd(18, 11) as a linear combination of 18 and 11. For this, we work
backward through the previous calculations as follows:
1=4−3
= 4 − (7 − 4)
=2·4−7
= 2 · (11 − 7) − 7
= 2 · 11 − 3 · 7
= 2 · 11 − 3 · (18 − 11)
= 18 · (−3) + 11 · 5.
Hence
1188 = 1188 · 1
= 1188 · (18 · (−3) + 11 · 5)
= 18 · (−3564) + 11 · 5940.
where t ∈ Z.
Since the number of shirts can not be negative, we have x ≥ 0 and y ≥ 0.
The inequality x ≥ 0 gives −3564 + 11t ≥ 0, and so t ≥ 356411 = 324.
5940
The inequality y ≥ 0 gives 5940 − 18t ≥ 0, and so t ≤ 18 = 330. Thus 324 ≤ t ≤ 330.
The total number of shirts is x + y = (−3564 + 11t) + (5940 − 18t) = 23767t.
For 324 ≤ t ≤ 330, this is smallest for t = 330, which gives
x = 66, y = 0, x + y = 66.
Hence we conclude that Sam bought 66 large shirts, no small shirts, and a total of 66
shirts.
2. Determine whether the linear Diophantine equation 155x + 45y = 7 has a solution.
If yes, then find a solution of it.
3. Determine whether the linear Diophantine equation 60x + 33y = 9 has a solution. If
yes, then find a solution of it.
4. Determine whether the linear Diophantine equation 858x + 253y = 33 has a solution.
If yes, then find a solution of it.
5. Determine whether the linear Diophantine equation 2173x + 2491y = 210 has a
solution. If yes, then find a solution.
6. Find all integer solutions to the linear Diophantine equation 2173x + 2491y = 159.
7. Determine whether the linear Diophantine equation 258x+147y = 369 has a solution.
If yes, then find a solution of it.
10. Find all integer solutions to the linear Diophantine equation 258x + 147y = 369.
11. Find a general solution of the linear Diophantine equation 641x + 372y = 1254.
10 CHAPTER 1. LINEAR DIOPHANTINE EQUATIONS
Chapter 2
Prime Numbers
bc = (ar)(as) = a(ars).
The converse of the above proposition is not true, in general. For example,
Example 2.2.2. The integers 2, 3, 5, 7, 11, 13, 17, 19 are first few prime numbers, since the
positive divisors of these positive integers are only 1 and themself.
11
12 CHAPTER 2. PRIME NUMBERS
Example 2.2.4. The integers 4, 6, 8, 9, 10 are first few composite numbers, since they are
not prime numbers.
Proof. If p | a, then we are done. So, let us assume that p - a. Since p is prime, the only
positive divisors of p are 1 and p itself. This implies that gcd(p, a) = 1. Since p | ab, we
therefore obtain p | b by Euclid’s lemma.
By the mathematical induction, the above theorem easily extends to products of more
than two integers.
Proof. If n is prime, then there is nothing more to prove. So, let us assume that n is
composite. Then there exists an integer d such that d | n and 1 < d < n.
Among all such integers d, choose p1 to be the smallest (this is possible by the Well-
Ordering Principle). Then p1 must be a prime number. Otherwise it too would have a
divisor q with 1 < q < p1 ; but then q | p1 and p1 | n imply that q | n, which contradicts
the choice of p1 as the smallest positive divisor, not equal to 1, of n.
We therefore may write n = p1 n1 , where p1 is prime and 1 < n1 < n. If n1 happens
to be a prime, then we have our representation. In the contrary case, the argument is
repeated to produce a second prime number p2 such that n1 = p2 n2 ; that is,
n = p1 p2 p3 . . . pk .
Fermat’s Theorem
15
16 CHAPTER 3. FERMAT’S THEOREM
c=c·1
= c(ax + by)
= acx + bcy
= a(bs)x + b(ar)y
= ab(sx + ry).
Hence ab | c.
Theorem 3.0.5. Let p and q be distinct primes. If ap ≡ a mod q and aq ≡ a mod p, then
apq ≡ a mod pq.
Proof. Since aq ≡ a mod p, it follows that (aq )p ≡ ap mod p. Combining the congruences
apq ≡ ap mod p and aq ≡ a mod p, we obtain apq ≡ a mod p. This means p | (apq − a).
Now, since ap ≡ a mod q, it follows that (ap )q ≡ aq mod q. Combining the congruences
apq ≡ aq mod q and ap ≡ a mod q, we obtain apq ≡ a mod q. This means q | (apq − a).
Since gcd(p, q) = 1, we therefore have pq | (apq − a), and thus apq ≡ a mod pq.
Solution. Let a = 5 and p = 11. By Fermat’s theorem, we then get 510 ≡ 1 mod 11.
Now, we can write 38 = 10 · 3 + 8. So,
Since 510 ≡ 1 mod 11, it follows that (510 )3 ≡ 1 mod 11. Also, observe that 52 ≡
3 mod 11. Therefore (52 )4 ≡ 34 mod 11. Hence
250 = 82 · 3 + 4.
Hence
50250 = 5082·3+4
= (5082 )3 · 504
≡ 13 · 504 mod 83
≡ 6250000 mod 83
≡ 17 mod 83.
20182018 = 201812·168+2
= (201812 )168 · 20182
≡ 1168 · 32 mod 13
≡ 9 mod 13.
This means
Also, it is clear that 2 | 20182018 − 22. Since gcd(13, 2) = 1, therefore (13 · 2) | 20182018 − 22.
Hence 20182018 ≡ 22 mod 26. We conclude that the answer is 22.
18 CHAPTER 3. FERMAT’S THEOREM
Solution. It suffices to find the remainder when 20182018 is divided by 10. Note that
10 = 2 · 5.
First, we notice that gcd(2018, 5) = 1. By Fermat’s little theorem, we get 20184 ≡
1 mod 5. Now, we see that 2018 ≡ 3 mod 5 and 2018 = 4 · 504 + 2. Therefore
20182018 = 20184·504+2
= (20184 )504 · 20182
≡ 1504 · 32 mod 5
≡ 4 mod 5.
Linear Congruences
ax ≡ b (mod n),
(ii) the integer x0 = −9 is a solution of the equation, since 3 · (−9) ≡ 9 (mod 12).
In fact, any integer of the form 4 + 10k or of the form 9 + 10k where k ∈ Z is a solution to
the given linear congruence equation. The above linear congruence equation has infinitely
many integer solutions.
Example 4.0.4. Consider the linear congruence equation: 2x ≡ 1 (mod 4). Since 4 -
(2x − 1) for all x ∈ Z. Hence the equation 2x ≡ 1 (mod 4) has no solution.
Definition 4.0.5. Two solutions x1 and x2 of a linear congruence ax ≡ b mod n are said
to be equivalent if x1 ≡ x2 mod n.
Example 4.0.6. Two solutions x1 = 3 and x2 = −9 of the linear congruence 3x ≡
9 mod 12 discussed in Example 4.0.3 are equal, since 3 ≡ −9 mod 12.
Remark 4.0.7. If x0 is a solution of a linear congruence equation ax ≡ b (mod n), then
every integer of the set {x0 +nk : k ∈ Z} is also a solution of the linear congruence equation.
Such a set of solutions is called a solution class modulo n and denoted by [x0 ]n .
By definition of congruence, ax ≡ b (mod n) if and only if n | axb. Hence, ax ≡ b
(mod n) if and only if axb = ny for some integer y. Rearranging the equation to the
equivalent form axny = b, we arrive at the following result.
Lemma 4.0.8. Solving the linear congruence equation axb (mod n) is equivalent to solving
the linear Diophantine equation axny = b.
19
20 CHAPTER 4. LINEAR CONGRUENCES
Since we already know how to solve linear Diophantine equations, this means we can
apply that knowledge to solve linear congruence equations.
Theorem 4.0.9. Let a, b ∈ Z, let n ∈ N, and let d = gcd(a, n).
(i) If d - b, then the linear congruence equation ax ≡ b (mod n) has no solution.
(ii) If d | b, then the linear congruence equation ax ≡ b (mod n) has exactly d distinct
solution classes modulo n.
Proof. Solving the linear congruence equation ax ≡ b (mod n) is equivalent to solving the
linear Diophantine equation ax − ny = b.
(i) If d - b, then the linear Diophantine equation has no solution, so the linear congruence
equation has no solution, either.
(ii) If d | b, then the solutions of the linear Diophantine equation take the form:
n a
x = x0 + t, y = y0 + t
d d
where (x0 , y0 ) is any particular solution (obtained from the Euclidean algorithm, for
instance). To finish the proof, observe that as t runs through the values 0, 1, . . . , d1
(the residues modulo d) the congruence classes [x0 + nd t]n run through all the solutions.
(There are no other solutions because the classes just repeat for higher and lower
values of t.)
Example 4.0.10. Consider the linear congruence equation 6x ≡ 4 (mod 10). Note that it
has a solution, since d := gcd(6, 10) = 2 divides 4. we solve it by first guessing the solution
x0 = 4 by trial and error. Then the theorem tells us that [x0 + (10/2)t]10 for t = 0, 1 gives
the complete solution set. Thus, x = [4]10 and [9]10 is the complete solution.
As a special case of Theorem 4.0.9, let me point out that if d = gcd(a, n) = 1, then the
linear congruence equation ax ≡ b (mod n) has a unique solution class modulo n. In the
special case gcd(a, n) = 1, we can always solve the congruence by finding the inverse of
[a]m and then multiplying both sides of the congruence by the inverse to obtain the unique
solution. This is a satisfying idea because it is so similar to what we do in ordinary high
school algebra to solve linear equations.
Definition 4.0.11. Let n ∈ N and a be an integer. An inverse of a mod n is any integer
b such that a · b ≡ 1 (mod n). We write a−1 = b for the inverse just defined, when it exists.
Example 4.0.12. Consider the linear congruence equation 11x ≡ 15 (mod 20). Note
that the given equation has a unique solution class modulo 20, since d := gcd(11, 20) = 1
divides 15. Observe that 11 · 11 ≡ 1 (mod 20). Using this fact, we can solve the given
linear congruence equation simply by multiplying both sides by 11 and reducing numbers
mod20. Here we go:
4.1. SOLVED PROBLEMS 21
This proves that x = [5]20 is the unique solution to the given linear congruence equation
11x15 (mod 20).
Corollary 4.0.13. If gcd(a, n) = 1, then the linear congruence ax ≡ b mod n has a unique
solution modulo n. This unique solution is sometimes called the multiplicative inverse
of a modulo n.
(A) 0 (mod 3)
(B) 1 (mod 3)
(C) 2 (mod 3)
(D) none of these
(A) 4 (mod 5)
(B) 3 (mod 5)
(C) 2 (mod 5)
(D) 1 (mod 5)
(A) 6 (mod 7)
(B) 5 (mod 7)
(C) 4 (mod 7)
(D) 3 (mod 7)
22 CHAPTER 4. LINEAR CONGRUENCES
(A) 6 (mod 8)
(B) 5 (mod 8)
(C) 4 (mod 8)
(D) 3 (mod 8)
(A) 6 (mod 9)
(B) 8 (mod 9)
(C) 9 (mod 9)
(D) 10 (mod 9)
2. Find all solutions of the following linear congruence equation 2x ≡ 5 (mod 7).
3. Find all solutions of the following linear congruence equation 6x ≡ 5 (mod 8).
4. Find all solutions of the following linear congruence equation 19x ≡ 30 (mod 40).
5. Find all solutions of the following linear congruence equation 15x ≡ 9 (mod 25).
6. Find all solutions of the following linear congruence equation 6x ≡ 3 (mod 9).
7. Find all solutions of the following linear congruence equation 14x ≡ 42 (mod 50).
8. Find all solutions of the following linear congruence equation 13x ≡ 42 (mod 50).
9. Find all solutions of the following linear congruence equation 15x ≡ 42 (mod 50).
10. Find all solutions of the following linear congruence equation 5x ≡ 22 (mod 84).
11. Find all solutions of the following linear congruence equation 980x ≡ 1540 (mod 1600).
12. Find all solutions of the following linear congruence equation 230 ≡ 1081 (mod 12167).
Chapter 5
x ≡ 2 mod 5
x ≡ 5 mod 8
x ≡ 4 mod 37.
m1 · m2 · m3
M1 = = 296, so M1 ≡ 1 mod 5
m1
m1 · m2 · m3
M2 = = 185, so M2 ≡ 1 mod 8
m2
m1 · m2 · m3
M3 = = 40, so M3 ≡ 3 mod 37.
m3
We have
1 · 1 ≡ 1 mod 5, 1 · 1 ≡ 1 mod 8, 3 · 25 ≡ 1 mod 37.
x = 2 · 296 · 1 + 5 · 185 · 1 + 4 · 40 · 25
= 5517
≡ 1077 mod 5 · 8 · 37.
An integer satisfies the system of congruences if and only if it is in this congruence class
modulo 5 · 8 · 37 = 1480. The smallest positive integers in this congruence class is 1077.
23
24 CHAPTER 5. THE CHINESE REMAINDER THEOREM (CRT)
Problem 5.1.2. Find the smallest positive integer x satisfying the following system, or
show that no such x exists:
2x ≡ 1 mod 3
3x ≡ 2 mod 5
4x ≡ 3 mod 7
5x ≡ 4 mod 11.
2−1 ≡ 2 mod 3, 3−1 ≡ 2 mod 5, 4−1 ≡ 2 mod 7, and 5−1 ≡ 9 mod 11.
Now, we multiply the first equation by 2−1 , the second by 3−1 , the third by 4−1 , and
the fourth by 5−1 . Then the system of equations become
x ≡ 2 mod 3
x ≡ 4 mod 5
x ≡ 6 mod 7
x ≡ 3 mod 11.
We solve this via the CRT: x ≡ 839 mod 1145. So the smallest positive solution is
x = 839.
x≡2 (mod 3)
x≡3 (mod 5)
x≡2 (mod 7).
x≡1 (mod 4)
x≡2 (mod 3)
x≡3 (mod 5).
x≡2 (mod 3)
x≡4 (mod 5)
x≡6 (mod 13).
4x ≡ 2 (mod 6)
3x ≡ 5 (mod 7)
2x ≡ 4 (mod 11).
26 CHAPTER 5. THE CHINESE REMAINDER THEOREM (CRT)
Chapter 6
Wilson’s Theorem
Lemma 6.0.1. Let p be a prime number and a ∈ Z. Then a is the solution of the linear
congruence ax ≡ 1 mod p if and only if a = 1 or a = p − 1.
p | a2 − 1 =⇒ p | (a − 1)(a + 1) =⇒ p | p − 1 or p | a + 1.
(p − 1)! ≡ −1 mod p.
Solution. Note that 437 is not a prime, but 437 = 19 · 23. So we will consider 18! modulo
19 and modulo 23 separately.
27
28 CHAPTER 6. WILSON’S THEOREM
22! = 18! · 19 · 20 · 21 · 22
≡ 18! · (−4) · (−3) · (−2) · (−1) mod 23
≡ 18! · 24 mod 23
≡ 18! mod 23.
Therefore we have
18! ≡ 22! ≡ −1 mod 23.
In conclusion, 18! ≡ −1 mod 19 and 18! ≡ −1 mod 23. This yields 19 | 18! − (−1) and
23 | 18! − (−1). Since gcd(18, 23) = 1, we obtain (18 · 23) | 18! − (−1). This gives
18! ≡ −1 mod 437. Hence the answer is 436 which is indeed equal to −1 mod 437.
Euler-Phi Functions
Solution.
φ(27) = φ(33 ) = 32 · 2 = 18.
Solution.
Solution.
φ(2008) = φ(23 · 251) = φ(23 ) · φ(251) = 4 · 250 = 1000.
Problem 7.1.4. Let n ∈ N and let p be a prime. If p | n, then show that φ(pn) =
(p − 1)φ(n).
29
30 CHAPTER 7. EULER-PHI FUNCTIONS
and hence
mk
φ(pn) = φ(pm+1 pm 1 m2
1 p2 . . . pk )
mk
= φ(pm+1 ) φ(pm 1 m2
1 p2 . . . pk )
mk
= (p − 1)φ(pm ) φ(pm1 m2
1 p2 . . . pk )
= (p − 1)φ(n).
[2] J. A. Gallian, Contemporary Abstract Algebra, (Third Edition), D.C. Heath, 1994.
[3] G. Birkhoff and S. MacLane, A Survey of Modern Algebra, A. K. Peters Ltd., 1997.
[5] G. D. Birkhoff and T. C. Bartee, Modern Applied Algebra, McGraw-Hill Book Com-
pany, 1970.
[7] B. L. Van der Waerden, Modern Algebra, (Seventh Edition, 2 vols), Fredrick Ungar
Publishing Co., 1970.
[9] N. Jacobson, Basic Algebra I and II, (Second Edition, 2 vols), W. H. Freeman and
Company, 1989.
31
Index
Abelian group, 15
Associative operation, 6
Binary operation, 3
Cartesian product, 46
Cayley table, 5
Commutative group, 15
Commutative operation, 8
Commutative semigroup, 8
Conjugate elements, 64
Hamiltonion group, 32
Identity element, 11
Inverse element, 13
Mixed group, 64
Monoid, 12
Multiplication table, 5
Periodic group, 64
Permutation, 33
Quaternion group, 32
Semigroup, 6
Symmetric group of degree n, 34
Torsion group, 64
Torsion-free group, 64
Transformation, 32
Trivial group, 14
32