E.3 Workshop exercises from week 3
Exercise 3.1. By
Theorem 4.5.5,
|
|
|
Exercise 3.2.
-
(i)
The remainder on dividing by is , so
Proposition 5.1.5(ii) shows that is the smallest
positive integer such that .
-
(ii)
The remainder on dividing by is (because
), so Proposition 5.1.5(ii) implies
that is the smallest positive integer congruent to
modulo . Thus the largest negative integer congruent to
modulo is .
Exercise 3.3.
-
(i)
We use the Euclidean algorithm:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thus , and
Theorem 4.5.5 shows that
|
|
|
-
(ii)
-
(a)
Solutions exist by Theorem 5.2.2
because divides .
Lemma 5.2.8 enables us to simplify the congruence by
dividing by :
|
|
|
Moreover, dividing
by in the identity
from (i), we obtain
|
|
|
In particular, and are coprime, and
Theorem 5.2.6 shows the complete solution is given by
|
|
|
-
(b)
(because and and , or by prime factorization), and , so no
solutions exist to this congruence.
-
(c)
Since divides , solutions exist. We
simplify the congruence by dividing by :
|
|
|
Since and are coprime, Theorem 5.2.6
and (a) imply that the complete solution is
given by
|
|
|
Exercise 3.5. By
Proposition 5.3.5, if simultaneous solutions exist,
must divide . As
does not divide , no simultaneous solutions exist.
Exercise 3.6.
-
(i)
A bit of experimentation shows that , and thus and are
coprime. (Alternatively, use the Euclidean algorithm.)
-
(ii)
The Chinese Remainder Theorem (Theorem 5.3.2) applies
because and are coprime by (i). In the
notation used in Theorem 5.3.2, we have , , ,
, and , so that and , and the complete
solution is given by . Since , we can simplify this answer to .
Exercise 3.7.
-
(i)
and , where , , and are prime numbers (as we
showed using the Sieve of Eratosthenes in
Section 4.6).
-
(ii)
Proposition 4.7.10 and the prime factorizations found
in (i) imply that
|
|
|
-
(iii)
Combining Corollary 4.7.5 with the prime factorizations
found in (i), we see that has
positive factors, while has
positive factors.
Exercise 3.8. If denotes the
number of pupils, then is a simultaneous solution to the two congruences
and ; further, we know
that . We find by experimentation (or the
Euclidean algorithm), so that
and are coprime, and the Chinese Remainder Theorem applies. The
complete solution is given by
|
|
|
As and , we conclude that the number of pupils
is .
Exercise 3.9. First note that if
is a number in the grid and is not prime, then where
; then , so . Thus
every number in the grid which is not prime has a factor less than
, and thus in particular a prime factor less than . It is
therefore only necessary to go through crossing out multiples of
if . As we have seen in Section 4.6
of the lecture notes, there are such primes, so it is necessary
to go through the grid times.
Exercise 3.10.
-
(i)
We have (either by prime factorization or by the
facts that , and ). As , Theorem 5.2.2 implies that the congruence has no
solutions.
-
(ii)
Since , we have , so solutions
exist, and Theorem 5.2.6 implies that the complete
solution is given by
|
|
|
-
(iii)
We have (using prime factorization) and ,
so solutions exist. Lemma 5.2.8 enables us to simplify the
congruence; we have if and only if
. Now and are coprime, and we have , so Theorem 5.2.6 shows that the
complete solution to the congruence is given by
|
|
|
-
(iv)
As (by prime factorization) and ,
solutions exist. Again we apply Lemma 5.2.8 to simplify; we
have if and only if . Now
, and the complete solution is
therefore given by
|
|
|
Exercise 3.11. In the notation
of The Chinese Remainder Theorem (Theorem 5.3.2), we have , , and . We apply the Euclidean algorithm to
show that and are coprime (so that Theorem 5.3.2
applies) and to write :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hence and . Now
|
|
|
is a simultaneous solution to the two congruences, and the
complete solution is given by , that is, .
Division with remainder shows that , so the
answer can (and should) be simplified to .
Exercise 3.13. All primes other than
are odd, and thus are of the form either or for some
. Suppose that there are only finitely many primes of the
form , say , where , and let
. Then no divides (as is of the
form ), and (as is odd); thus if
is the prime factorization of , then each
must be of the form , say , where
. However, the product is
then also of the form because
|
|
|
for some , whereas . This
contradiction proves that there must be infinitely many primes of the
form .
Note: the last part of the argument can be
elegantly written using congruence notation; indeed, we have
|
|
|
whereas
|
|
|
so we cannot have .
Exercise 3.14.
-
(i)
The result is obvious for . For , write
, where
, are distinct prime numbers,
and . Corollary 4.7.5 implies
that has positive factors. If any
of the terms is even, then this product is even, and
vice versa, so we conclude that the number of positive
factors of is odd if and only if is odd for each
. Now is odd precisely when is
even, say for some . Thus the number of
factors of is odd if and only if
|
|
|
i.e., is
a square.
-
(ii)
If we pair together numbers with , this groups the
factors of into pairs — the only possible exception is if
, in which case . Thus if is a perfect square, the
factors comprise various pairs with left over, so the
number of factors is odd; if is not a perfect square, the
factors can be paired off with none left over, so the number of
factors is even.