MA215 Fall 12 Mid1
MA215 Fall 12 Mid1
MA215 Fall 12 Mid1
[5 marks]
Page 1 of 7
1. Let A and B be sets. Prove that (A B) \ (A B) = (A \ B) (B \ A). (Hint: you may use
the laws of set operations; however, any correct method you choose is acceptable.)
Solution:
Note that A \ B = A B c and B \ A = B Ac . Further more, DeMorgans law implies that
(A B)c = Ac B c , etc. We have
(A \ B) (B \ A) = (A B c ) (B Ac )
= (A B) (A Ac ) (B c B) (B c Ac )
= (A B) U U (A B)c
= (A B) \ (A B)
Alternate:(textbook version)
(A B) \ (A B) =(A B) (A B)c
=(A B) (Ac B c )
=(A Ac ) (A B c ) (B Ac ) (B B c )
= (A \ B) (B \ A)
=(A \ B) (B \ A)
[5 marks]
Page 2 of 7
(a) B0 = {A1 }
Solution: For any x P, 1 divides x and x divides x, i.e. 1 Ax and x Ax for all
x P.
For x = 1, Ax = {1} and obviously A1 B0 . If x 6= 1, sum of elements in Ax must at
least be x + 1, then Ax 6 B0 . It follows that B0 = {A1 }.
[5 marks]
[5 marks]
(c) C
Solution: B2 = . We have seen that A1 6 B2 . Let x 6= 1, then {1, x} Ax . Suppose
that Ax B2 , then Ax contains at least another positive integer a 6= 1, x, which implies
that the sum of divisors of x is at least x + 1 + a > x + 2. This is contradiction, and
B2 = .
[5 marks]
Page 3 of 7
(a) R S
Solution:
R S = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 3), (3, 1), (3, 3)}.
[2 marks]
(b) R S
Solution:
R S = {(1, 2), (3, 3)}.
[2 marks]
[2 marks]
(d) R1
Solution:
R1 is obtained by interchanging the order of the pairs:
R1 = {(1, 1), (1, 3), (2, 1), (3, 2), (3, 3)}.
Page 4 of 7
(f) The transitive closure of S (Hint: draw the directed graph for the relation)
Solution:
First, examine the directed graph diagram for S:
1
2
We make the following observations about this diagram:
There are sequences of arrows, starting at 1 and ending at x for every x A.
There are sequences of arrows, starting at 2 and ending at x for every x A.
There are no sequences of arrows leading from 3 to either 1 or 2.
Therefore, we conclude that
transitive(S) = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 3)}.
Page 5 of 7
5. The construction of the integers outlined in this problem uses the relation on N N defined
by (a, b) (c, d) if and only if a + d = b + c.
[8 marks]
[4 marks]
(b) Let [(a, b)] denote the equivalence class of (a, b) with respect to . Prove that the
operation given by
[(a, b)] + [(c, d)] := [(a + c, b + d)]
is well-defined.
Solution:
Suppose that [(a1 , b1 )] = [(a2 , b2 )] and that [(c1 , d1 )] = [(c2 , d2 )]. We need to show that
[(a1 + c1 , b1 + d1 )] = [(a2 + c2 , b2 + d2 )].
By definition of the equivalence classes,
a1 + b 2 = b 1 + a2
and
c1 + d2 = d1 + c2 .
Add these two equations together, and parenthesize as follows:
(a1 + c1 ) + (b2 + d2 ) = (a2 + c2 ) + (b1 + d1 ).
Therefore,
(a1 + c1 , b1 + d1 ) (a2 + c2 , b2 + d2 ),
which is the same as saying
[(a1 + c1 , b1 + d1 )] = [(a2 + c2 , b2 + d2 )],
so addition is well-defined.
Page 6 of 7
(c) Prove that N N/ contains an additive identity. In other words, find an element
[(i, j)] N N/ with the property that
[(i, j)] + [(c, d)] = [(c, d)]
for every [(c, d)] N N/ .
Solution:
Let [(i, j)] = [(0, 0)]. Then for any [(c, d)] N N/ ,
[(c, d)] + [(i, j)] = [(c, d)] + [(0, 0)] = [(c + 0, d + 0)] = [(c, d)].
Page 7 of 7