Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views2 pages

Mid 1

Elementary number theory

Uploaded by

Gaurav Bharwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Mid 1

Elementary number theory

Uploaded by

Gaurav Bharwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

18.

781: MIDTERM 1

MARCH 7, 2003

Instructions: To receive credit for a solution, your answer must be explained fully in com­
plete sentences. Correct answers without proper explanation will receive no credit.
No notes, books, or calculators are allowed.
Each question is worth ten (10) points.
(1) Compute the greatest common divisor g of 423 and 198. Then find integers x and y so
that g = 423x + 198y.
Answer. Using the Euclidian algorithm
423 = 2(198) + 27

198 = 7(27) + 9
27 = 3(9),
so g = 9. To find x and y, write
9 = 198 − 7(27) = 198 − 7(423 − 2 ∗ 198) = 15(198) − 7(423),
so take x = −7 and y = 15.
(2) Write down the definition of a reduced residue system modulo an integer m. Then show
that any two reduced residue systems modulo m have the same number of elements.
Answer. A reduced residue system modulo m is a set of integers {r1 , . . . , rs } prime to m
so that for any integer x prime to m there exists a unique i in [1, s] with
x ≡ ri (mod m).
Note that the uniqueness of i in the above implies that ri is not congruent to rj for j �= i.
If {r1� , . . . , rs� � } is a second reduced residue system, define a set map
{r1 , . . . , rs } −→ {r1� , . . . , rs� � }
by sending ri to the unique rj� for which ri ≡ rj� (mod m). If ri and rj map to the same
element under the above map, then ri ≡ rj (mod m), and so i = j and the map is injective.
That the map is surjective follows from the definition of reduced residue system given above.
(3) Show that −1 is not a square modulo a prime p if p ≡ 3 (mod 4).
Answer. Suppose by contradiction that there exists an integer x with x2 ≡ −1 (mod p).
Raising both sides of the equation to the (p − 1)/2–th power and noting that (p − 1)/2 is odd
since p ≡ 3 (mod 4), we find that
xp−1 ≡ −1 (mod p).
1
2 MARCH 7, 2003

Now since (p, x2 ) = 1, we have (x, p) = 1 and so by Euler’s theorem xp−1 ≡ 1 (mod p). We
therefore find that
1 ≡ −1 (mod p)
which is a contradiction.
(4) Let p be a prime number. Show that the numerator of
1 1 1
1 + + + ··· +
2 3 p−1
is divisible by p (Hint: Clear denominators).
Answer. It was stated in class that the assumption that p > 2 should be added to the
problem.
Let us first note that if a/b is any rational number with (a, b) = 1 and if c is any integer
prime to p, then p|a if and only if p divides the numerator of the rational number (ca)/b.
Therefore, it suffices to show that (p − 1)! times the above number is divisible by p.
Now if we multiply the above number by (p − 1)!, we get
p−1
� (p − 1)!
(1) 1+ .
j=2
j

The key point is that the set {0, 1, (p−1)!


j
}, where j = 2, . . . , p − 1, is a complete residue
(p−1)! (p−1)!
system modulo p. To prove this it suffices to show j
is not congruent to j�
modulo
� (p−1)!
p for j =
� j . But this is clear, for by Wilson’s theorem the number j
defines the unique
congruence class modulo p of integers r for which
jr ≡ −1 (mod p).
(p−1)!
Thus {0, 1, j
}
is a complete residue system modulo p. It follows that each number in this
set is congruent to a unique number in {0, 1, 2, . . . , p − 1}, and hence the sum (1) is congruent
to
1 + 2 + 3 + · · · + (p − 1)
modulo p. This sum is in turn equal to p(p − 1)/2, and since (p − 1)/2 is an integer if p > 2,
this implies that the sum is congruent to 0 modulo p.
(5) Show that if n ≥ 1, then

n � �
n
k
(−1) = 0.
k=0
k
Answer. By the binomial theorem
n � �

n n
0 = (1 + (−1)) = (−1)k .
k=0
k

You might also like