Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
14 views

Homework 2

Homework class 2

Uploaded by

bhatiya85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Homework 2

Homework class 2

Uploaded by

bhatiya85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Discrete Mathematics: Combinatorics and Graph Theory

Homework 2: Due 11/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.

Figure 1: Three relations R1 (left) R2 (center) and R3 (right) represented as digraphs.

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.

4. Establish the congruence classes for the following:

(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?

5. Find all solutions to the following linear congruences:

page 1 of 3
Discrete Mathematics October 26, 2021

(a) 5x ≡ 12 (mod 23)


(b) 210x ≡ 40 (mod 212)
(c) 33x ≡ 7 (mod 143)
(d) 124x ≡ 132 (mod 900)
6. Let R be the relation on the set of all colorings of the 2×2 checkerboard where each of the four squares
is colored either red or blue so that (C1 , C2 ), where C1 and C2 are 2 × 2 checkerboards with each of
their four squares colored blue or red, belongs to R if and only if C2 can be obtained from C1 either
by rotating the checkerboard or by rotating it and then reflecting it.
(a) Show that R is an equivalence relation.
(b) What are the equivalence classes of R?
7. Prove that if a0 ≡ a (mod n) and b0 ≡ b (mod n) then (a0 (mod n)) · (b0 (mod n)) ≡ (a · b) (mod n).
8. Solve the following system of congruences:
(a) Use the Chinese Remainder Theorem to find an x such that:
x ≡ 2 (mod 5)
x ≡ 3 (mod 7)
x ≡ 10 (mod 11)

(b) Find all solutions x, if they exist, to the system of equivalences:


2x ≡ 6 (mod 14)
3x ≡ 9 (mod 15)
5x ≡ 20 (mod 60)

(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.

14. For every positive integer n, show that:


           
n n n n n n
+ + + ··· = + + + ···
0 2 4 1 3 5

15. Prove the hexagon property:


       
n−1 n n+1 n−1 n+1 n
=
k−1 k+1 k k k+1 k−1

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 ?

18. We can define the reciprocal of a factorial as follows:


 
1 n + z −z
= lim n
z! n→∞ n

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.

(a) Prove that R is an equivalence relation on [a]p .


(b) Prove that p divides ap − a when p is prime. Hint: Partition a set of size ap − a into subsets of
size p.

page 3 of 3

You might also like