S 5 Sol
S 5 Sol
S 5 Sol
n = k 2 for k N, then the pair k, k counts the divisor k twice when it should only be counted once, so n
has an odd number of divisors. There is Q
an alternative solution where you use the Fundamental
Theorem
Q
of Arithmetic to express n as a product i pai i of distinct prime numbers. Then n has i (ai + 1) positive
divisors, and this number is odd if, and only if, each ai is even, and by the FTA, this happens if, and only
if, n is a perfect square.
(b) Which natural numbers m have a prime number of natural number divisors? Q
Q
Solution 1 has 1 divisor. Suppose that n > 1 has prime factorization n = i pai i , then n has i (ai +
1) positive integer divisors. This expression is prime if, and only if, there is only one prime p1 in the
factorization, and ai = q 1 where q is prime. Thus the required numbers are those of the form q p1 as p, q
range over the prime numbers.
(c) Suppose that k > 1 is a natural number. Prove that there are infinitely many natural numbers n which
each have exactly k natural number divisors.
Solution Suppose that p is a prime number, then pk1 has exactly k positive divisors. This yields infinitely
many examples since p can be any prime number.
5. Suppose that n is a natural number. Let n denote the equivalence relation on Z defined by a n b if, and only
if, n | (a b). The equivalence classes of this relation form a finite set Z/ n . This notation is ponderous, so we
introduce compact notation Zn for Z/ n . Write out the addition and multiplication tables for
(a) Z4 ;
Solution
+
[0]
[1]
[2]
[3]
[0]
[0]
[1]
[2]
[3]
[1]
[1]
[2]
[3]
[0]
[2]
[2]
[3]
[0]
[1]
[3]
[3]
[0]
[1]
[2]
+
[0]
[1]
[2]
[3]
[4]
[0]
[0]
[1]
[2]
[3]
[4]
[1]
[1]
[2]
[3]
[4]
[0]
[2]
[2]
[3]
[4]
[0]
[1]
[3]
[3]
[4]
[0]
[1]
[2]
[4]
[4]
[0]
[1]
[2]
[3]
[0]
[0]
[1]
[2]
[3]
[4]
[5]
[1]
[1]
[2]
[3]
[4]
[5]
[0]
[2]
[2]
[3]
[4]
[5]
[0]
[1]
[3]
[3]
[4]
[5]
[0]
[1]
[2]
[4]
[4]
[5]
[0]
[1]
[2]
[3]
[5]
[5]
[0]
[1]
[2]
[3]
[4]
and
[0]
[1]
[2]
[3]
[0]
[0]
[0]
[0]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say for addition), then there is the concern that the definition of addition
given in (c) is nonsense, because each given equivalence class has many names. For example 24 = 36 . Once
you know that (b) holds, it does not matter which name for each equivalence class you use in the recipe for
addition in (c). A similar remark applies to multiplication.
8. (a) Suppose that x Z is a square. Which are the possible equivalence classes [x] in Z7 ?
Solution These are [0]2 = [0], [1]2 = [6]2 = [1], [2]2 = [5]2 = 4, [3]2 = [4]2 = [2].
(b) Suppose that C is a set of six consecutive positive integers. Is it possible that C can be partitioned into two
subsets A and B so that the product of all the elements of A is the same as the product of all the elements
of B? If S = {s} is a singleton subset of Z, we define the product of all the elements of S to be s.
Solution Suppose, for contradiction, that such a partition exists. Clearly 7 cannot divide any of these 6
consecutive integers else the FTA will ensure that the two products are different. Work in Z7 . The product
of the six consecutive integers will be in the equivalence class [6!] = [6], but [6] is not a square in Z7 by part
(a). This is the required contradiction.
9. Let n be a natural number. Prove that there are natural numbers a1 , a2 , . . . , an and natural numbers b1 , . . . , bn
such that the following conditions are satisfied.
(a) If i 6= j, then ai and aj are coprime.
(b) If i 6= j, then bi and bj are coprime.
(c) The numbers ai and bj are not coprime for all i and for all j.
Solution Choose n2 different prime numbers and write them in an n by n square. There is an infinite supply
of prime numbers, thanks to Euclid, so this can be done. Let ai denote the product of the numbers in the i-th
row, and let bj denote the product of the numbers in the j-th column. That does it.
If you would
Qn more formal, for i = 1 . . . n and j = 1 . . . n let pij be a different prime number.
Qn like to be a touch
Let ai = j=1 pij and bj = i=1 pij . Then for each i and for each j, gcd(ai , bj ) = pij 6= 1.
10. (Tutor Pacifier) Let S be a finite set of positive integers which has the following property: if x is an element of S,
then so too are all positive divisors of x. A non-empty subset T of S is good if whenever x, y T and x < y, the
ratio y/x is a power of a prime number. A non-empty subset T of S is bad if whenever x, y T and x < y, the
ratio y/x is not a power of a prime number. A single element set is considered both good and bad (by definition,
or by vacuous reasoning, as you please). Let k be the largest possible size of a good subset of S. Prove that k is
also the smallest number of pairwise-disjoint bad subsets whose union is S.
Solution Not yet, but here is the solution to Problem 10 of Sheet 3. This was to Prove the Schr
oder-Bernstein
Theorem unaided (no books, internet etc). The theorem states that if A, B are sets, and there are injective
maps f : A B and g : B A, then there is a bijective map h : A B. By replacing B with an appropriate
copy of itself if necessary, you can assume that A B = . This trick may well simplify writing up the proof.
Proof We may assume wlog that A B = . Suppose that x A \ Im g, then we say that x is an A-stopper. Any
element of A obtained from an A-stopper by finitely many applications of the map g f is also an A-stopper.
Suppose that y B \ Im f . We say that g(y) is a B-stopper. Any element of A obtained from g(y) by finitely
many applications of the map g f is also called a B-stopper.
If a A, then by looking at successive (unique where defined) preimages of a under g, then f , then g, then f
etc, so see that the A-stoppers and the B-stoppers form disjoint subsets of A. The elements which are neither
A-stoppers nor B-stoppers we call non-stoppers.
If y B, we say that y is an A-stopper, B-stopper or non-stopper as g(y) is an A-stopper, B-stopper or nonstopper. Notice the meaning of this language. Given any element of A or B, you can look for a pre-image of
this element under f or g as appropriate, and if you succeed, iterate (do it again and again). Either you can do
this indefinitely, or you get stuck (you stop) in A or in B.
We now define a map : A B which will be the required bijection. Suppose that a A. If a is a B-stopper,
we define (a) to be the unique element of B such that g((a)) = a. Otherwise a is an A-stopper or a non-stopper.
In that case we define (a) to be f (a).
Notice that maps A-stoppers to A-stoppers, B-stoppers to B-stoppers and non-stoppers to non-stoppers.
Injectivity: suppose that (a1 ) = (a2 ) is an A-stopper or a non-stopper, then f (a1 ) = f (a2 ) so a1 = a2 by
injectivity of f . If (a1 ) = (a2 ) is a B-stopper, then a1 = g((a1 ) = g((a2 )) = a2 . Therefore is injective.
Now suppose that b B is an A-stopper or a non-stopper, so there is a A such that b = f (a) = (a). on the
other hand, suppose that b B is a B-stopper. Therefore (g(b)) = b. Therefore is surjective, and hence a
bijection.