Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Find all solutions to the following linear congruences using Fermat’s Little Theorem or
Euler’s Theorem to help you. Show all your steps.
Solution:
(a) First note that (3, 59) = 1, so we can divide both sides of the congruence by 3173
to get 3289 x ≡ 2173 (mod 59). Next, 59 is prime, so by Fermat’s Little Theorem (or
Euler’s Theorem) we only need to consider exponents modulo 59 − 1 = 58. Since 289 ≡
57 (mod 59) and 173 mod 58 = 57, the congruence can now be written 357 x ≡ 257
(mod 59). But 357 ≡ 3 (mod 59) and 257 ≡ 2 ≡ 30 (mod 59), so:
3x ≡ 2 (mod 59)
=⇒ x ≡ 3 · 2 (mod 59)
≡ 3 · 30 (mod 59)
≡ 31 (mod 59)
(b) Since 27145 and 42 are even but 1 is odd, there is no solution to this congruence.
[This was actually a mistake; I had meant to use a different modulus!]
2. Find the value of the Euler phi-function φ(n) for each of the following integers n. Show all
steps.
Solution:
(a) By using the divisibility rule for 11 we see that 1001 is divisible by 11, and can factor
it as 1001 = 11 · 91 = 7 · 11 · 13. Then φ(1001) = φ(7)φ(11)φ(13) = 6 · 10 · 12 = 720.
(b) We see that 27,000,000 = 33 ·26 ·56 , so φ(27,000,000) = φ(33 )φ(26 )φ(56 ) = (32 )(2)(25 )(1)(55 )(4)
= 7,200,000
3. Use prime
factorization to show that if m and n are positive integers such that m n, then
φ(m)φ(n).
Solution:
5. If t is any positive integer, describe a reduced residue system (RRS) modulo 2t , with expla-
nation.
Solution: An RRS consists of all positive integers less than 2t which are relatively prime
to 2t . But these are just the integers that are not divisible by 2, that is, odd integers. So an
RRS consists of all odd integers less than 2t .
6. Find the number of divisors τ (n) and the sum of the divisors σ(n) of each of the following
integers n. Show all steps.
Solution:
7. (a) If a is an integer that is not divisible by 23, what are the possible values of ord23 (a)?
(b) Use part (a) to help show that 5 is a primitive root modulo 23.
2
(c) Show that 2 is NOT a primitive root modulo 23, by using part (b) to help find ord23 (2).
[Hint: Write 2 as a power of 5 (mod 23).]
(d) Use part (b) to help find four more primitive roots modulo 23.
Solution:
(a) ord23 (a)φ(23) = 22, so the possible values of ord23 (a) are 1, 2, 11, 22.
(b) First note that 52 ≡ 2 6≡ 1 (mod 23), so clearly ord23 (5) 6= 1, 2. We now calculate 511
mod 23 as follows:
53 ≡ 5 · 2 ≡ 10 (mod 23)
54 ≡ 22 ≡ 4 (mod 23)
58 ≡ 42 ≡ 16 (mod 23)
=⇒ 511 = 53 · 58 ≡ (10)(16) ≡ −1 (mod 23)
So we see that ord23 (5) 6= 11 too, and therefore the only possibility is ord23 (5) = 22, so
5 is a primitive root mod 23.
(c) From part (b) we see that 2 ≡ 52 (mod 23). So since 5 is primitive, we have ord23 (2) =
22
= 11.
(2, 22)
(d) 5u is primitive iff (u, 22) = 1, so for example 53 , 55 , 57 , 59 are primitive modulo 23. Using
results from part (b) we get:
53 ≡ 10 (mod 23)
55 = 52 · 53 ≡ 2 · 10 ≡ 20 (mod 23)
57 = 52 · 55 ≡ 2 · 20 ≡ 17 (mod 23)
59 = 52 · 57 ≡ 2 · 17 ≡ 11 (mod 23)
8. If p is an odd prime and a is a primitive root mod p, prove that a(p−1)/2 ≡ −1 (mod p).
Solution: Let b = a(p−1)/2 mod p. Then b2 ≡ 1 (mod p), so b ≡ ±1 (mod p) since p is
prime. But b ≡ 1 is impossible because a is primitive, so b ≡ −1 (mod p).