Professional Documents
Culture Documents
The first exam will be on Friday, September 29, 2006. The syllabus will be sections 1.1 to 1.6
through page 69.
Following are some of the concepts and results you should know:
• Know the Well-ordering principle: Any set of positive integers which has at least one element
contains a smallest element.
where µ ¶
n n!
= .
k k!(n − k)!
• Know the definition of the greatest common divisor of the integers a and b (notation: (a, b)).
• Know the Euclidean Algorithm and how to use it to compute the greatest common divisor of
integers a and b.
• Know how to use elementary row operations to codify the calculations needed for the Euclid-
ean algorithm into a sequence of matrix operations as illustrated on Pages 11 and 12.
• Be sure to know Theorem 1.1.6 (Page 13) which relates the relative primeness of a and b to
various divisibility conclusions.
• Know the definition of least common multiple of integers a and b (notation: [a, b]).
• Know the relationship between the greatest common divisor, least common multiple, and the
product of integers a and b: ab = (a, b)[a, b]. (Exercise 9, Page 36.)
• Know Euclid’s Lemma (Theorem 1.3.1 Page 26): If p is a prime, a and b are integers, and
p|ab, then p|a or p|b.
• Know the Fundamental Theorem of Arithmetic (Theorem 1.3.3, Page 27), and how to use it
to compute the greatest common divisor and least common multiple of two integers a and b
(Corollary 1.3.5, Page 30).
• Know the argument to show that there are infinitely many prime integers.
• Know what it means for an integer a to be congruent modulo n to another integer b (notation
a ≡ b mod n).
1
Exam I Review Sheet Solutions Math 4023
• Know the definition of [a]n is invertible in Zn , and know the criterion of invertibility of [a]n :
An element [a]n ∈ Zn is invertible (or has a multiplicative inverse) if and only if (a, n) = 1,
that is, if and only if a and n are relatively prime. Moreover, if r and s are integers such that
ar + ns = 1, then [a]−1 n = [r]n . (Theorem 1.4.3, Page 43.)
• Know what it means for a nonzero congruence class [a]n ∈ Zn to be a zero divisor: there is
[b]n 6= [0]n with [a]n [b]n = [0]n .
• Every nonzero element of Zn is either invertible or a zero divisor. (Corollary 1.4.5, Page 46.)
ax ≡ b mod n.
In particular, know that the solutions form congruence classes modulo n, so that they can be
identified with elements of Zn .
• Know the criterion for solvability of a linear congruence, namely Theorem 1.5.1, and know
how to find all of the solutions to a linear congruence using the algorithm on Page 52.
• Know the Chinese Remainder Theorem (Theorem 1.5.2), and how to solve simultaneous
congruences.
• Know what it means for an integer a to have finite multiplicative order modulo n (Page 60),
and know the criterion for a to have finite multiplicative order modulo n (Theorem 1.6.1).
• Know Fermat’s theorem: if p is prime and p does not divide a then ap−1 ≡ 1 mod p. (The-
orem 1.6.3, Page 63).
• Know the definition of order of a modulo n (Page 61): ordn (a) = k if k is the smallest positive
integer such that [a]kn = [1]n .
• (Theorem 1.6.2) If a has order k modulo n then ar ≡ as mod n if and only if r ≡ s mod k.
• Know Fermat’s theorem: if p is prime and p does not divide a then ap−1 ≡ 1 mod p. (The-
orem 1.6.3, Page 63).
• If p is prime and a is an integer not divisible by p, then the order of a mod p divides p − 1.
2
Exam I Review Sheet Solutions Math 4023
• Know how to use Theorems 1.6.5 and 1.6.6 to compute ϕ(n) from the prime factorization of
n: If n = pk11 · · · pkr r , then
µ ¶ µ ¶
k1 k1 −1 kr kr −1 1 1
ϕ(n) = (p1 − p1 ) · · · (p1 − p1 ) = n 1 − ··· 1 − .
p1 pr
aϕ(n) ≡ 1 mod n.
• Corollary to Euler’s Theorem: If a is relatively prime to n, then the order of a mod n divides
ϕ(n).
Review Exercises
Be sure that you know how to do all assigned homework exercises. The following are a few supple-
mental exercises similar to those already assigned as homework. These exercises are listed randomly.
That is, there is no attempt to give the exercises in the order of presentation of material in the
text.
· ¸ · n ¸
2 1 n 2 n2n−1
1. Let A = . Using mathematical induction, show that A = for all positive
0 2 0 2n
integers n ∈ P.
Ak+1 = Ak
· k· A k−1 ¸ · ¸
2 k2 2 1
= ·
0 2k 0 2
· k ¸
2 · 2 2 + k2k−1 · 2
k
=
0 2k · 2
· k+1 ¸
2 (k + 1)2k
= .
0 2k+1
· n ¸
2 n2n−1
The last matrix is of the form for n = k + 1. Hence P (k + 1) is true whenever
0 2n
P (k) is true, which verifies the induction step, and by the principle of mathematical induction,
P (n) is true for all n ∈ P, i.e., the proposed formula for An is valid for all n ∈ P. J
3
Exam I Review Sheet Solutions Math 4023
1 1 1 k
+ + ··· + = .
1·2 2·3 k · (k + 1) k+1
Consider the left hand side of the statement P (n) for n = k + 1. That is:
1 1 1 1
(∗) + + ··· + + .
1·2 2·3 k · (k + 1) (k + 1) · (k + 2)
1 1 1 1 k 1
+ + ··· + + = +
1·2 2·3 k · (k + 1) (k + 1) · (k + 2) k + 1 (k + 1) · (k + 2)
k(k + 2) 1 k(k + 2) + 1 (k + 1)2
= + = =
(k + 1)(k + 2) (k + 1)(k + 2) (k + 1)(k + 2) (k + 1)(k + 2)
k+1
= .
k+2
This is the statement that P (k + 1) is true, provided P (k) is true, and by the principle of
induction, we conclude that P (n) is a true statement for all n ∈ P. J
(a) a = 6, b = 25
4. This problem involves arithmetic modulo 16. All answers should only involve expressions of
the form [a]16 , with a an integer and 0 ≤ a < 16.
4
Exam I Review Sheet Solutions Math 4023
I Solution. [15]−1 −1
16 = [−1]16 = [−1]16 = [15]16 . J
5. (a) Show that the square of an arbitrary integer x is congruent to either 0 or 1 modulo 4.
(b) Let x and y ∈ Z and assume that x2 + y 2 ≡ r mod 4 for a non-negative integer r which
is chosen as small as possible. What are the possible values of r? Why? (Hint: Part (a)
will be useful.)
I Solution. From Part (a), [x2 ]4 and [y 2 ]4 can be either [0]4 or [1]4 . Hence, the possi-
bilities for [x2 + y 2 ]4 = [x2 ]4 + [y 2 ]4 are as follows:
[x2 ]4 [y 2 ]4 [x2 + y 2 ]4
[0]4 [0]4 [0]4
[0]4 [1]4 [1]4
[1]4 [0]4 [1]4
[1]4 [1]4 [2]4
Hence, the possibilites for r are 0, 1, 2. In particular, note that no integer that is
congruent to 3 modulo 4 can be written as the sum of two squares of integers. J
(c) Show that not every positive integer is the sum of two squares of integers.
(d) List the first 4 positive integers that are not sums of two squares. (Note that 1 = 12 + 02
is a sum of two squares.)
5
Exam I Review Sheet Solutions Math 4023
I Solution. From Part (b) we know that 3, 7, 11, and 15 are not sums of two squares
since they are congruent to 3 modulo 4. However, there may be additional numbers that
are not sums of two squares. The first few squares are 0 = 02 , 1 = 12 , 4 = 22 , and
9 = 32 . So we ask if there are any numbers smaller than 15 that cannot be written as a
sum of two of these squares: 1 = 12 + 02 ; 2 = 11 + 12 ; 4 = 22 + 02 ; 6 cannot be written
as a sum of two of the integers 0, 1, and 4; 8 = 22 + 22 ; 9 = 33 + 02 ; 10 = 32 + 12 .
Therefore, 3, 6, 7, 11 are the four smallest integers that cannot be written as a sum of
two squares. J
6. Let a, b, c, and d be positive integers. Determine if each of the following statements is True
or False. If False, provide a counterexample.
(c) If there exist integers r and s such that ra + sb = d, then d = (a, b).
(e) For every positive integer n, the number system Zn always contains nonzero zero divisors.
I Solution. False. The set of all positive integers does not have a largest element. J
7. Express 24 and 102 a products of primes and use this information to calculate (12, 102) and
[12, 102].
6x ≡ 9 mod 15.
6
Exam I Review Sheet Solutions Math 4023
10. (a) Find the greatest common divisor d = (803, 154) of 803 and 154, using the Euclidean
Algorithm.
I Solution. From the top row of the last matrix in Part (a), it follows that
I Solution.
803 · 154 123662
[803, 154] = = = 11242.
(803, 154) 11
J
x ≡ 5 (mod 25)
x ≡ 23 (mod 32).
5x ≡ 14 (mod 17)
3x ≡ 2 (mod 13).
7
Exam I Review Sheet Solutions Math 4023
I Solution. First note that [5]−117 = [7]17 since 5 · 7 = 35 = 1 + 2 · 17 and [7]17 [14]17 =
[98]17 = [13]17 , so the congruence 5x ≡ 14 (mod 17) can be multiplied by [7]17 to get an
equivalent congruence x ≡ 13 (mod 17). Similarly, the second congruence can be multiplied
by [3]−1
13 = [9]17 to give an equivalent congruence x ≡ 5 (mod 13). Hence, we need to solve
the equivalent system:
x ≡ 13 (mod 17)
x ≡ 5 (mod 13).
Use the Euclidean algorithm to write 4 · 13 − 3 · 17 = 1. Then the solution of the system of
congruences is x = 13 · 4 · 13 − 5 · 3 · 17 = 421 modulo 13 · 17 = 221. Hence all of the solutions
are of the form x = 200 + 221k for some k ∈ Z. J
x ≡ a (mod m)
x ≡ b (mod n)
has no solution.
x ≡ 1 (mod 2)
x ≡ 0 (mod 2)
97 = 64 + 32 + 1.
51 = 1
52 = 25
54 = (52 )2 = 625 ≡ 117 ≡ −10 mod 127
58 ≡ (54 )2 ≡ (−10)2 ≡ 100 ≡ −27 mod 127
516 ≡ (58 )2 ≡ (−27)2 ≡ 94 ≡ −33 mod 127
532 ≡ (516 )2 ≡ (−33)2 ≡ 1089 ≡ 73 mod 127
64 32 2 2
5 ≡ (5 ) ≡ 73 ≡ 122 ≡ −5 mod 127.
Then
597 = 564+32+1 = 564 532 51 ≡ (−5) · 73 · 5 ≡ −1825 ≡ 80 mod 127.
J
8
Exam I Review Sheet Solutions Math 4023
I Solution. Since 127 is prime and 127 does not divide 4, Fermat’s theorem applies to
give 4126 ≡ 1 mod 127. J
Hence
463 = (47 )9 ≡ 1 mod 127.
J
15. Compute the Euler phi function ϕ(n) for each of the following natural numbers n.
(a) n = 221
(b) n = 6125
(c) n = 341
(d) n = 6860
16. Let p = 29 and q = 31 so that n = pq = 899, and let e = 101 in the RSA algorithm.
I Solution. Use the method in Exercise 1 to get 555101 mod 899 = 731 and 731341
mod 899 = 555. J