Homework 2
Homework 2
Instructions. Solve any 10 questions. Typeset or write neatly and show your work to receive full credit.
1. List the ordered pairs in the relation R from A = {0, 1, 2, 3, 4} to B = {0, 1, 2, 3}, where (a, b) ∈ R if
and only if:
(a) a = b
(b) a + b = 4
(c) a > b
(d) a|b
(e) gcd(a, b) = 1
(f) lcm(a, b) = 2
2. For each of these relations on the set {1, 2, 3, 4}, decide whether it is reflexive, whether it is symmetric,
whether it is antisymmetric, and whether it is transitive.
(a) {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
(b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
(c) {(2, 4), (4, 2)}
(d) {(1, 2), (2, 3), (3, 4)}
(e) {(1, 1), (2, 2), (3, 3), (4, 4)}
(f) {(1, 3), (1, 4), (2, 3), (2, 4), (3, 1), (3, 4)}
3. Determine whether the three relations shown below in the three directed graphs is an equivalence
relation.
Write the elements of each relation as a set and a binary matrix. If each is not an equivalence class,
specify and draw the reflexive Rr+ , symmetric Rs+ and transitive Rt+ closure.
(a) What is the congruence class [4]m when i) m = 2? ii) m = 3? iii) m = 6? iv) m = 8?
(b) What is the congruence class [n]5 (that is, the equivalence class of n with respect to congruence
modulo 5) when i) n = 2? ii) n = 3? iii) n = 6? iv) n = −3?
page 1 of 3
Discrete Mathematics October 26, 2021
(c) Use the Chinese Remainder Theorem to compute 4651 (mod 55) by hand.
9. 1500 soldiers arrive in training camp. A few soldiers desert the camp. The drill sergeants divide the
remaining soldiers into groups of five and discover that there is one left over. When they divide them
into groups of seven, there are three left over. When they divide them into groups of eleven, there are
again three left over. Determine the number of deserters.
10. Consider the following questions on closed binary operations:
(a) Let f : Z+ × Z+ → Z+ be the closed binary operation defined by f (a, b) = gcd(a, b). (a) is f
commutative? (b) Is f associative? (c) Does f have an identity element?
(b) For distinct primes p, q, let A = {pm q n |0 ≤ m ≤ 31 , 0 ≤ n ≤ 37}. (a) What is |A|? (b) If
f : A × A → A is the closed binary operation defined by f (a, b) = gcd(a, b), does f have an
identity element?
11. Apply the Binomial theorem to work out the following:
(a) Expand (a + b)5
(b) Expand (x + 2)6
(c) Expand (2x + 3)4
√ √
(d) Expand ( 2 + 1)5 + ( 2 − 1)5 and simplify.
12. In how many ways can one travel in the xy plane from (0,0) to (3,3) using the moves R : (x, y) →
(x + 1, y) and U : (x, y) → (x, y + 1), if the path taken may touch but never fall below the line y = x?
In how many ways from (0, 0) to (4, 4)? Generalize the results from (0, 0) to (a, b). What can one say
about the first and last moves of the paths?
page 2 of 3
Discrete Mathematics October 26, 2021
13. Let p be prime and let f (x) be a polynomial over Zp (the set of integers mod p) of degree n. Prove
that f (x) has at most n roots.
16. Prove that Pascal’s triangle has a more surprising hexagon property:
n−1 n n+1 n−1 n+1 n
gcd , , = gcd , ,
k−1 k+1 k k k+1 k−1
p
17. Let p be prime. Show that k (mod p) = 0 for 0 < k < p. What does this imply about the binomial
coefficients p−1
k ?
Show that the above definitiion is consistent with the ordinary definition by showing that the limit of
the above is 1/m! when z = m is a positive integer. Use the above to prove the factorial duplication
formula:
1 1
x! x − ! = (2x)! − !/22x
2 2
19. Prove that the polynomials of degree k with coefficients in Zp form a group under addition modulo p.
20. A cyclic shift of a p-tuple x is a p-tuple obtained by adding a constant (modulo p) to the indices of the
elements of x; shifting x by p + i positions produces the same p-tuple as shifting x by i positions. For
a ∈ N, let R be the relation on [a]p (the set of p-tuples with entries in {1, · · · , a}) defined by putting
(x, y) ∈ R if the p-tuple y can be obtained from x by a cyclic shift.
page 3 of 3