Tutorial_4_solution
Tutorial_4_solution
1. Let A = {0, 1, 2, 3, 4} and B = {0, 1, 2, 3}. The ordered pairs in the relation R are:
(a) a = b:
R = {(0, 0), (1, 1), (2, 2), (3, 3)}
(b) a + b = 4:
R = {(1, 3), (2, 2), (3, 1), (4, 0)}
(c) a > b:
R = {(1, 0), (2, 0), (2, 1), (3, 0), (3, 1), (3, 2), (4, 0), (4, 1), (4, 2), (4, 3)}
R = {(1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 2), (3, 0), (3, 3), (4, 0)}
2. (a) List all the ordered pairs in the relation R = {(a, b) | a divides b} on the set {1, 2, 3, 4, 5, 6}:
R = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 2), (2, 4), (2, 6), (3, 3), (3, 6), (4, 4), (5, 5), (6, 6)}
1 1
2 2
3 3
4 4
5 5
6 6
3. For each of these relations on the set {1, 2, 3, 4}, decide whether it is reflexive, symmetric, antisymmet-
ric, and transitive.
(a) {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
• Reflexive: No (missing (1, 1) and (4, 4)).
• Symmetric: No (e.g., (2, 4) is present but (4, 2) is not present).
• Antisymmetric: No (e.g., (2, 3) and (3, 2) both exist).
• Transitive: Yes.
(b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
• Reflexive: Yes (all (1, 1), (2, 2), (3, 3), (4, 4) are present).
• Symmetric: Yes (for every (a, b), (b, a) is present).
• Antisymmetric: No (e.g., (1, 2) and (2, 1) both exist).
• Transitive: Yes (all required pairs for transitivity are present).
(c) {(2, 4), (4, 2)}
• Reflexive: No (missing (1, 1), (2, 2), (3, 3), (4, 4)).
• Symmetric: Yes (both (2, 4) and (4, 2) are present).
• Antisymmetric: No (both (2, 4) and (4, 2) exist).
• Transitive: No (e.g., (2, 4) and (4, 2) exist but (2, 2) is not present).
(d) {(1, 2), (2, 3), (3, 4)}
• Reflexive: No (missing (1, 1), (2, 2), (3, 3), (4, 4)).
• Symmetric: No (e.g., (1, 2) is present but (2, 1) is not).
• Antisymmetric: Yes (no (a, b) and (b, a) both exist unless a = b).
• Transitive: No (e.g., (1, 2) and (2, 3) exist but (1, 3) is not present).
(e) {(1, 1), (2, 2), (3, 3), (4, 4)}
• Reflexive: Yes (all (1, 1), (2, 2), (3, 3), (4, 4) are present).
• Symmetric: Yes (only pairs where a = b are present).
• Antisymmetric: Yes (no (a, b) and (b, a) both exist unless a = b).
• Transitive: Yes (all required pairs for transitivity are present).
(f) {(1, 3), (1, 4), (2, 3), (2, 4), (3, 1), (3, 4)}
• Reflexive: No (missing (1, 1), (2, 2), (3, 3), (4, 4)).
• Symmetric: No (e.g., (1, 3) is present but (3, 1) is also present, but not all pairs are symmetric).
• Antisymmetric: No (e.g., (1, 3) and (3, 1) both exist).
• Transitive: No (e.g., (1, 3) and (3, 4) exist but (1, 4) is not explicitly required for transitivity).
4. Determine whether the relation R on the set of all real numbers is reflexive, symmetric, antisym-
metric, and/or transitive,
(a) (x, y) → R if and only if x + y = 0.
Solution:
Let (a, a) → R =↑ a + a = 0 =↑ a = 0.
=↑ Not true for all a → R.
=↑ R is not reflexive.
Let (a, b) → R =↑ a + b = 0 =↑ b + a = 0.
=↑ (b, a) → R.
=↑ R is symmetric.
Let (a, b) → R and (b, c) → R =↑ a + b = 0 and b + c = 0.
=↑ a = ↓b and c = ↓b.
=↑ a + c = ↓2b ↔= 0 unless b = 0.
=↑ R is not transitive.
(b) (x, y) → R if and only if x = ±y.
Solution:
Let (a, a) → R =↑ a = 2a =↑ a = 0.
=↑ Not true for all a → R.
=↑ R is not reflexive.
Let (a, b) → R =↑ a = 2b ↔= b = 2a unless a = b = 0.
=↑ (b, a) → R only if a = b = 0.
=↑ R is not symmetric.
Let (a, b) → R and (b, c) → R =↑ a = 2b and b = 2c =↑ a = 4c.
=↑ (a, c) → R only if a = 2c (i.e., 4c = 2c =↑ c = 0).
=↑ Counterexample: (4, 2) → R and (2, 1) → R, but (4, 1) →
/ R.
=↑ R is not transitive.
Let (a, a) → R =↑ a2 = 0 =↑ a = 0.
=↑ Not true for all a → R.
=↑ R is not reflexive.
Let (a, b) → R =↑ ab = 0 =↑ ba = 0.
=↑ (b, a) → R.
=↑ R is symmetric.
Let (a, b) → R and (b, c) → R =↑ ab = 0 and bc = 0.
=↑ If b ↔= 0, then a = 0 and c = 0 =↑ (0, 0) → R.
=↑ If b = 0, then (a, c) → R only if ac = 0.
=↑ Counterexample: (1, 0) → R and (0, 1) → R, but (1, 1) →
/ R.
=↑ R is not transitive.
5. Determine whether the relation R on the set of all integers is reflexive, symmetric, antisymmetric,
and/or transitive, where (x, y) → R if and only if:
(a) x ↔= y. (b) x ↗ y (mod 7). (c) x and y are both negative or
both nonnegative.
6. Show that the relation R = ↘ on a nonempty set S is symmetric and transitive, but not reflexive.
7. Which relations in items 3 and 4 are irreflexive?
Remark. A relation R on the set A is irreflexive if for every a → A, (a, a) →
/ R. That is, R is
irreflexive if no element in A is related to itself.
Remark. Let R be a relation from a set A to a set B. The inverse relation from B to A, denoted
by R→1 , is the set of ordered pairs {(b, a) | (a, b) → R}. The complementary relation R is the set of
ordered pairs {(a, b) | (a, b) →
/ R}.
10. Let R1 = {(1, 2), (2, 3), (3, 4)} and R2 = {(1, 1), (1, 2), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3), (3, 4)} be
relations from {1, 2, 3} to {1, 2, 3, 4}. Find:
11. Let R be the relation R = {(1, 2), (1, 3), (2, 3), (2, 4), (3, 1)}, and let S be the relation
S = {(2, 1), (3, 1), (3, 2), (4, 2)}. Find S ⇒ R.
Solution: We know that:
Find
a) R1 ≃ R3 c) R2 ⇐ R4 e) R1 ↓ R2
b) R1 ≃ R5 d) R3 ⇐ R5 f) R2 ↓ R1
13. Let R1 and R2 be the “divides” and “is a multiple of” relations on the set of all positive integers,
respectively. That is,
Find:
14. Let R be the relation on the set {1, 2, 3, 4, 5} containing the ordered pairs
(1, 1), (1, 2), (1, 3), (2, 3), (2, 4), (3, 1), (3, 4), (3, 5), (4, 2), (4, 5), (5, 1), (5, 2), (5, 4).
Find: