Elementary discrete mathematics

Problems

Return to the book

These problems correspond to the chapters of the book. Many of them are assigned homework for the class MATH 174 at Coastal Carolina University. After reading each chapter, try the problems.

If a problem is difficult to solve because you must answer in the abstract, do a few examples first to try to get a handle on the problem.

1. Sets

  1. Write the following sets in roster notation. If there are more than ten elements in the set, you may use ellipses (…) once the pattern is clear and you have written down four elements.
    a) Prime numbers less than (but not equal to) 10
    b) The letters in the alphabet
    c) The set of positive odd integers
    d) Teams in the NBA Southeast Division

  2. Write the following sets in set-builder notation.
    a) {0,1,2,3,4,5,6,7,8,9}\{0,1,2,3,4,5,6,7,8,9\}
    b) {2,3,5,7,11,13,17,19}\{2,3,5,7,11,13,17,19\}
    c) {,{a},{b},{a,b}}\{\varnothing, \{a\}, \{b\}, \{a,b\}\}

  3. Calculate the power set of X={1,2,3}X=\{1,2,3\}.

  4. Calculate the power set of X={1,2,3,4}X=\{1,2,3,4\}.

  5. Given A={a,b,c}A=\{a,b,c\} and B={c,d,e}B=\{c,d,e\}, compute the following. If the answer is a set, answer in list/roster notation.
    a) ABA \cup B
    b) ABA \cap B
    c) ABA-B
    d) BAB-A
    e) B×AB \times A
    f) P(A)\mathcal{P}(A)
    g) A|A|
    h) AB|A \cup B|
    i) P(B)|\mathcal{P}(B)|

  6. Let X={1,3,5}X=\{1,3,5\}, Y={2,4,6}Y=\{2,4,6\}, and Z={2,3,5}Z=\{2,3,5\}. consider the universal set to be Ω={1,2,3,4,5,6}\Omega=\{1,2,3,4,5,6\}. Compute the following. If the answer is a set, answer in list/roster notation.
    a) XYX \cup Y
    b) XZX \cap Z
    c) YXY \cap X
    d) XZ|X \cup Z|
    e) Z\overline{Z}
    f) X×ZX \times Z
    g) X(YZ)X \cup (Y \cap Z)
    h) P(Z)\mathcal{P}(Z)
    i) Y×Z|Y\times Z|

  7. Compute each of the following given that the universal set is Ω={0,1,2,3,4,5,6,7,8,9}\Omega=\{0,1,2,3,4,5,6,7,8,9\}.
    a) {1,2,5}{2,5,8,9}\{1,2,5\} \cup \{2,5,8,9\}
    b) {2,3,7}\overline{\{2,3,7\}}
    c) {xΩ    x is odd}{0,3,4,9}\{x \in \Omega \; | \; x \text{ is odd}\} \cap \{0,3,4,9\}
    d) {0,1}×Ω|\{0,1\} \times \Omega|
    e) P(P({0,1}))\mathcal{P}(\mathcal{P}(\{0,1\}))

  8. Let the universal set be that of people reading this book. Let XX be the set of people studying mathematics, and YY be the set of people studying computer science. To which of the following sets do you belong: XX, YY, XYX \cup Y, XYX \cap Y, X\overline{X}, and/or Y\overline{Y}?

  9. Tell whether each of the following statements are true or false.
    a) 3Z3 \in \mathbf{Z}
    b) 1∉ZN-1 \not\in \mathbf{Z} - \mathbf{N}
    c) 0ZN0 \in \mathbf{Z}-\mathbf{N}
    d) ZN\mathbf{Z} \subseteq \mathbf{N}
    e) NZ=Z\mathbf{N} \cup \mathbf{Z} = \mathbf{Z}
    f) NZ=Z\mathbf{N} \cap \mathbf{Z} = \mathbf{Z}

  10. Tell whether each statement is true or false if A={a,b}.A=\{a,b\}.
    a) aP(A)a \in \mathcal{P}(A)
    b) {a}P(A)\{a\} \in \mathcal{P}(A)
    c) {{a}}P(A)\{\{a\}\} \in \mathcal{P}(A)
    d) {{a}}P(A)\{\{a\}\} \subseteq \mathcal{P}(A)

  11. Suppose that XX, YY, and ZZ are finite sets. Give a formula for XYZ|X \cup Y \cup Z| (the cardinality of the set of all elements in at least one of XX, YY, or ZZ) reminiscent of the formula for XY|X \cup Y|.

  12. Often, [n][n] is used to denote the set {1,2,,n}\{1,2,\ldots, n\}, the set of positive integers at most nn.
    a) What is n1[n]\displaystyle \bigcup_{n \ge 1} [n]? (The union is taken over all positive integers nn.)
    b) What is n1[n]\displaystyle \bigcap_{n \ge 1} [n]? (The union is taken over all positive integers nn.)

2. Propositional logic

  1. Consider the sentence “Bob is wearing flip flops or it is cold out.”
    a) Choosing your own letters, symbolize this statement. (Hint: In the northern United States there is an unspoken but universally acknowledged competition to be the last man in shorts and flip-flops.)
    b) Write a truth table for this statement.

  2. Let pp stand for “I attended class” and qq stand for “I did the homework.”
    a) Symbolize “I attended class but I did not do the homework.” (Hint: In English, the word “but” suggests that two statements, maybe surprisingly, are simultaneously true.)
    b) Write a truth table for this statement.

  3. Let pp stand for “I attended class,” qq stand for “I did the homework,” and let rr stand for “I failed the exam.” Consider the statement “If I attended class but did not do the homework, then I failed the exam.” Should it be symbolized as (p¬q)r(p \wedge \neg q) \to r or p(¬qr)p \wedge (\neg q \to r)? Write a truth table for each and decide which best captures the meaning of the English statement.

  4. Tell whether the statement “Alicia is doing homework or she is playing video games” is an inclusive disjunction \vee or an exclusive disjunction \oplus.

  5. Write a truth table for s¬(tu¬v)s \leftrightarrow \neg(t \wedge u \wedge \neg v).

  6. Is [(pq)q]p[(p \to q) \wedge q]\to p a rule of inference?

  7. Suppose that if it rains, then I bring my umbrella. Can you conclude whether it is raining (and explain why) if
    a) I did bring my umbrella?
    b) I did not bring my umbrella?

  8. Which of the following are equivalent?
    a) pqp \to q
    b) its converse, qpq \to p
    c) its contrapositive, ¬q¬p\neg q \to \neg p
    d) its inverse, ¬p¬q\neg p \to \neg q

  9. Show that (pq)(pq)(p \wedge q) \to (p \vee q) is a tautology
    a) with a truth table.
    b) algebraically. (To do this, apply valid equivalences until you arrive at φ¬φ\varphi \vee \neg \varphi, which is equivalent to TT by \vee-cancellation, for some statement φ\varphi.)

  10. Show that (pq)(¬p¬q)(p \leftrightarrow q) \equiv (\neg p \leftrightarrow \neg q)
    a) with a truth table.
    b) algebraically.

  11. Show that [(ps)(qs)(rs)][(pqr)s][(p \to s) \wedge (q \to s) \wedge (r \to s)] \to [(p \vee q \vee r) \to s] is a rule of inference
    a) with a truth table.
    b) algebraically.
    (This generalizes to the technique proof by cases, which proves (p1p2pn)q(p_1 \vee p_2 \vee \cdots \vee p_n) \to q by showing that piqp_i \to q is true for all i=1,2,,ni = 1, 2, \ldots, n.)

3. Predicate logic

For Problems 3.1-3.4, let C(x)C(x) stand for "xx is a cloobledoo,’’ G(x)G(x) stand for "xx is green,’’ H(x,y)H(x,y) stand for "xx hunts yy,’’ and Q(x)Q(x) stand for "xx is a quarpake.’’ (You are not supposed to know what a cloobledoo or what a quarpake – pronounced “kwar-puh-kee” – are, but you are encouraged to doodle what you think each looks like.)

  1. Symbolize each of the following sentences.
    a) There is something that is green but not a cloobledoo.
    b) Every green quarpake is a cloobledoo.
    c) Every cloobledoo is a quarpake, but not all quarpakes are cloobledoos.

  2. Consider the statement x[C(x)G(x)]\forall x [C(x) \to G(x)].
    a) Translate this statement into words.
    b) Give an example of a situation in which this statement is false.
    c) Symbolize the negation of this statement where no negation (¬\neg) appears to the left of a quantifier (\forall or \exists).
    d) Translate the negation of the statement into words.

  3. Consider the statement xy[(Q(x)(C(y)H(x,y))]\forall x \exists y [(Q(x) \to (C(y) \wedge H(x,y))].
    a) Translate this statement into words.
    b) Give an example of a situation in which this statement is false.
    c) Symbolize the negation of this statement where no negation appears to the left of a quantifier.
    d) Translate the negation of the statement into words.

  4. Consider the statement xy[Q(x)(H(x,y)    G(y))]\exists x \forall y [Q(x) \wedge (H(x,y) \leftrightarrow G(y))].
    a) Translate this statement into words.
    b) Give an example of a situation in which this statement is false.
    c) Symbolize the negation of this statement where no negation appears to the left of a quantifier.
    d) Translate the negation of the statement into words.

For problems 3.5-3.8, let C(x)C(x) be "xx is continuous,’’ D(x)D(x) be "xx is differentiable,’’ E(x,y)E(x,y) be "xx and yy are equal.’’ These predicates are defined on the space of all functions to and from the real numbers and ff is the name of a known function.

  1. Symbolize "Every differentiable function is continuous.’’

  2. Translate xy[E(x,y)(C(x)¬C(y))]\exists xy [E(x,y) \to (C(x) \wedge \neg C(y))] into English.

  3. Symbolize the negation of xyz(E(y,z)C(x))\exists x \forall y \exists z (E(y,z) \wedge C(x)) such that no negation appears to the left of a quantifier.

  4. Translate (xy[(E(x,y)C(x))C(y)]y[E(f,y)C(y)])C(f)\Big( \forall xy [(E(x,y) \wedge C(x)) \to C(y)] \wedge \exists y [E(f,y) \wedge C(y)]\Big) \to C(f) into English.

  5. Remember when we proved that the empty set was a subset of any set and you were told to just go with it for the time being? Now we will fully justify ourselves.
    a) Prove that x[P(x)Q(x)]\forall x[P(x) \to Q(x)] and ¬x[P(x)¬Q(x)]\neg \exists x[P(x) \wedge \neg Q(x)] are equivalent.
    b) Explain how this proves that the empty set is a subset of any other set. In particular, tell what the predicates PP and QQ are in this context.

4. Proofs

  1. Let nn be an integer. Prove that if nn is even, then n2+2n+3n^2+2n+3 is odd.

  2. Prove that if 2n2+7n2n^2+7n is even and nn is an integer, then nn is even.

  3. Let nn be an integer. Prove that nn is odd if and only if 3n273n^2-7 is even.

  4. Prove that n2nn^2-n is even for any integer nn. (Hint: There are two ways you could approach this proof. Here’s a hint for each: I. The integer nn must be even or odd. Then do a proof in each case. This is an example of proof by cases, which you established was valid in the last problem set. II. You could do something to n2nn^2-n that makes this fact obvious.)

  5. Prove that the sum of two integers is odd if and only if one is even and the other is odd. (Hint: The first line of one direction of the proof is “Let mm and nn be integers…”)

  6. Let (a,b,c)(a,b,c) be a Pythagorean triple, i.e. three positive integers satisfying the Pythagorean theorem a2+b2=c2a^2+b^2=c^2. Prove both aa and bb cannot be odd.

  7. Prove that if 3 divides nn, then 3 divides n2+2n+6n^2+2n+6.

  8. Prove that if 4 divides nn, then 8 divides 2n2+n32n^2 + n^3.

  9. Prove that if n2+3n^2+3 is divisible by 3 then nn is divisible by 3. (Hint: if nn is not divisible by 33, then nn has the form 3k+13k+1 or 3k+23k+2 for some integer kk. Do a proof for each.)

  10. Prove that aaa|a for all nonzero integers aa.

  11. Prove that if there exist nonzero integers aa, bb, and cc such that aba|b and bcb|c then aca|c.

In the remaining problems, remember the following definitions:

  1. Prove the theorem of equality by mutual inclusion: Let XX and YY be sets. Then, X=YX=Y if and only if XYX \subseteq Y and YXY \subseteq X.

  2. Prove DeMorgan’s law for unions: XY=XY\overline{X \cup Y} = \overline{X} \cap \overline{Y}.

  3. Prove DeMorgan’s law for intersections: XY=XY\overline{X \cap Y} = \overline{X} \cup \overline{Y}.

5. Recursion and integer representation

  1. Give an example of recursion not found in the chapter.

  2. Write 2,3912,391 in
    a) binary.
    b) octal.
    c) hexadecimal.

  3. Write (11010101)2(11010101)_2
    a) decimal.
    b) octal.
    c) hexadecimal.

  4. Write (AF3)16(AF3)_{16} in
    a) decimal.
    b) binary.
    c) octal.

  5. Compute the following numbers in the given bases.
    a) 2,0432,043 in binary
    b) (11010110)2(11010110)_2 in decimal
    c) 2,0432,043 in hexadecimal

  6. Use binary numbers to prove that 1+2+22+23++2n=2n+11.1 + 2 + 2^2 + 2^3 + \cdots + 2^n = 2^{n+1}-1.

  7. A number written in ternary is written in base-3 with digits 0, 1, and 2. Write the number 115 in ternary.

  8. Write the number 115 in base-9.

6. Sequences and sums

  1. Let (an)(a_n) be a sequence defined by an=2n1a_n = 2^n - 1. Calculate a5a_5.

  2. Write down the first six terms of the sequence (xn)(x_n) given by xn=2n3x_n=2n-3 where n0n \ge 0.

  3. Let (yn)(y_n) be the sequence given by the relation yn=3yn1+2y_n = 3y_{n-1} + 2 where y0=0y_0=0. Calculate y5y_5
    a) iteratively.
    b) recursively.

  4. Let (bn)(b_n) be a sequence defined by bn={4bn2bn1n23n=11n=0 b_n = \begin{cases} 4b_{n-2} - b_{n-1} & n \ge 2 \\ 3 & n=1 \\ -1 & n=0 \end{cases}
    Compute b4b_4
    a) iteratively.
    b) recursively.

  5. Consider the sequence (xi)(x_i) whose terms are given by the following recurrence relation: xi={ixi12xi2i21i=11i=0 x_i = \begin{cases} ix_{i-1} - 2x_{i-2} & i \ge 2 \\ 1 & i = 1 \\ 1 & i = 0 \end{cases}
    a) Calculate x4x_4 iteratively.
    b) Calculate x4x_4 recursively.

  6. Let (zn)(z_n) be the sequence given by the relation zn=zn1zn2z_n=z_{n-1}z_{n-2} where z0=2z_0=2 and z1=3z_1=3. Calculate z5z_5
    a) iteratively.
    b) recursively.

  7. Calculate n=25n2\displaystyle \sum_{n=2}^5 n^2.

  8. Calculate i=17(2i1)\displaystyle \sum_{i=1}^7 (2i-1).

  9. Calculate i=14i!\displaystyle \sum_{i=1}^4 i!.

  10. Calculate j=03jj+1\displaystyle \sum_{j=0}^3 \dfrac{j}{j+1}.

  11. Calculate m=24n=m1m+1mn\displaystyle \sum_{m=2}^4 \sum_{n=m-1}^{m+1} mn.

  12. Calculate j=24k=58(kj)\displaystyle \sum_{j=2}^4 \sum_{k=5}^8 (k-j).

  13. Calculate n=02k=13kn\displaystyle \sum_{n=0}^2 \sum_{k=1}^3 k^n.

  14. Let (xn)(x_n) be a sequence where n=1100xn=50\displaystyle\sum_{n=1}^{100} x_n = 50, and x100=12x_{100}=12. Calculate n=1993xn\displaystyle \sum_{n=1}^{99} 3x_{n}.

  15. Suppose that m=5904cm=1,307\displaystyle \sum_{m=5}^{904} c_m = 1,307, c4=42c_4=42, and c904=10c_{904}=10. Compute m=49033cm.\displaystyle \sum_{m=4}^{903} 3c_m.

  16. Given that n=0100xn=471\displaystyle \sum_{n=0}^{100} x_n = 471, n=099yn=502\displaystyle \sum_{n=0}^{99} y_n = 502, x100=30x_{100}=30, and y100=12y_{100}=12, calculate
    a) n=0100yn\displaystyle \sum_{n=0}^{100} y_n.
    b) n=099(3xnyn)\displaystyle \sum_{n=0}^{99} (3x_n - y_n).

7. Asymptotics

In some of the following problems, you must arrange functions by growth rate. Note sometimes two functions are big-OO of one another. In that case, those two functions may go in any order.

  1. Arrange the following functions in ascending order of growth rate: n2,logn,n!,nlogn,n3,1,n.n^2, \log n, n!, n \log n, n^3, 1, n.

  2. Arrange the following functions in ascending order of growth rate: 2n+12n+1, n2+nn^2+n, 2nlogn2^n \log n, 2n+100n2^n+100n, n2lognn^2\log n, 503503.

  3. Arrange the following functions in ascending order of growth rate: 4000logn4000\log n, 2n2+13n82n^2+13n-8, 1,0361,036, 3nlogn3n \log n, 2nn22^n-n^2, 2n!n2n!-n, n24nn^2-4n.

  4. Give the simplest function bnb_n of lowest order such that 4n3+3n2logn=O(bn)4n^3+3n^2 \log n=O(b_n).

  5. Give the simplest function bnb_n of lowest order such that (8n3+20n)(2n+4logn)=O(bn)(8n^3 + 20n)(2^n + 4\log n)=O(b_n).

  6. Let an=n3+n6+8n5logna_n = n^3 + n^6 + 8n^5\log n. Give the simplest function bnb_n of lowest order where an=O(bn)a_n=O(b_n).

  7. Suppose that an=(8n+n2)(5n+logn+nlogn)(3n8n5+n!)a_n= (8n+n^2)(5n+\log n+n \log n)(3n-8n^5+n!). Give the simplest function bnb_n of lowest order where an=O(bn)a_n=O(b_n).

  8. Suppose that an=(2+n3)(2n+5n)a_n = (2+n^3)(2^n + 5n). Choose the function bnb_n that grows the most like ana_n. (In other words, ana_n and bnb_n should be big-O of each other.)
    a) bn=5n+2n+7b_n = 5n + 2^n + 7
    b) bn=10n+nlogn+1b_n = 10n + n\log n + 1
    c) bn=256n32nlognb_n = 256n^3 \cdot 2^n - \log n
    d) bn=n!+8n1b_n = n! + 8n - 1

  9. It turns out that n2+3n+1n^2+3n+1 is big-OO of n2n^2. This means that there exist integers kk and CC where for all nkn \ge k, n2+3n+1Cn2n^2+3n+1 \le Cn^2. Find values for kk and CC that work. You may use this Desmos applet to choose a value of CC so that n2+3n+1Cn2n^2+3n+1 \le Cn^2.

8. Proof by induction

  1. Prove by induction that m=1n(2m1)=n2\sum_{m=1}^n (2m-1) = n^2for any n1.n \ge 1.

  2. Prove by induction that if n1n \ge 1, then i=1ni2=n(n+1)(2n+1)6.\sum_{i=1}^n i^2 = \dfrac{n(n+1)(2n+1)}{6}.

  3. Prove by induction that for r1r\neq 1, if n0n \ge 0, then
    i=0nri=rn+11r1. \sum_{i=0}^n r^i = \dfrac{r^{n+1}-1}{r-1}.

  4. Prove 66 divides 7n17^n-1 for all n1n \ge 1.

  5. Prove 44 divides 9n+119^n + 11 for all n1n \ge 1.

  6. In one proof, prove that 33 and 55 both divide 16n+1416^n + 14 for all n1n \ge 1. (Hint: If 33 and 55 both divide a number, then so does…)

  7. Prove by induction that if n6n \ge 6, then n2+5n+12n2n^2+5n+1 \le 2n^2.

  8. Prove by induction that n2+7n+33n2n^2+7n+3 \le 3n^2 for n4n \ge 4.

  9. Prove by induction that if n35n \ge 35, then n2+100n+1004n21n^2+100n+100 \le 4n^2-1.

  10. Prove by induction that 2n+12n2n+1 \le 2^n for all n4n \ge 4.

  11. Prove by induction that n22nn^2 \le 2^n for all n4n \ge 4. (Hint: Use the preceding problem.)

  12. Prove by induction that n3+3n+12n3n^3+3n+1 \le 2n^3 for all n2n \ge 2. (Hint: You will learn soon that (k+1)3=k3+3k2+3k+1(k+1)^3 = k^3+3k^2+3k+1.)

  13. Prove by induction that a set with nn elements has 2n2^n subsets for all n0n \ge 0.

  14. Prove that 3n2+8n+1=O(n2)3n^2+8n+1=O(n^2) from the definition of big-OO. (Hint: You must find your own values of the threshold and the constant multiple.)

9. Introduction to combinatorics

  1. Alex is choosing a class to take next semester. They can choose from 99 math classes or 77 computer science classes, of which 33 are cross-listed (listed as both math and CS courses). How many classes can they choose from?

  2. Enumerate all possible ways there are to choose two elements from the set {a,b,c,d,e}\{a,b,c,d,e\} if:
    a) you can choose the same element twice and the order of the elements chosen matters?
    b) you can choose the same element twice and the order of the elements chosen does not matter?
    c) you cannot choose the same element twice and the order of the elements chosen matters?
    d) you cannot choose the same element twice and the order of the elements chosen does not matter?

  3. A math teacher has access to a textbook that includes 6060 questions. Of these 6060 questions all are at least easy or important, 4242 are easy, and 2323 are important. How many questions are both easy and important?

  4. [rewritten SP21] Your math professor has 17 books with yellow covers and 5 books with green covers. How many ways can they choose two books for a course, where one has a yellow cover and one has a green cover? (Most math books bear a single color.)

  5. Two distinguishable six-sided dice are rolled (e.g., one is red and one is blue) and the sum of both rolls is tallied.
    a) How many possible outcomes are there? (Hint: List them in a grid.)
    b) How many ways are there for the sum of the two rolls to be at least (including) 77?
    c) How many ways are there to get a prime sum?
    d) How many ways are there to get a sum that is prime or at least 77?
    e) Each die is rolled separately, one at a time. How many ways can the first roll be odd and the second roll be prime?

  6. In a 64-team single-elimination tournament, how many games are played? (“Single-elimination” means that a team is out of the tournament upon losing once. The winner is the only team that never loses.) Once you have solved the problem using the tools from this chapter, see if you can think of a more clever approach. This problem was stolen with permission from Jay Cummings’ book Real Analysis: A Long-Form Mathematics Textbook, where I saw it first.

  7. Prove that a set with nn elements has 2n2^n subsets.

10. Ordered samples

  1. There are ten volunteers to form a team of four people where everyone on the team has a different role. How many such teams are possible?

  2. A case-sensitive alphanumeric password is a password whose characters may be the capital letters A through Z, the lowercase letters a through z, and the digits 0 through 9. How many case-sensitive alphanumeric passwords with nn characters are there?

  3. A 10-character case-sensitive alphanumeric password is to have no repeated characters. How many such passwords are there?

  4. A 10-character case-sensitive alphanumeric password is to be made with at least one repeated character. How many such passwords are there? (Hint: Last two questions.)

  5. A 10-character case-sensitive alphanumeric password is to be made so that it is a palindrome; that is, the last half of the password is just the first half in reverse. How many of these passwords are there?

  6. Recall that the set X×XX \times X is the set of all ordered pairs (x,y)(x,y) where both xx and yy are elements of XX. (a) If XX has nn elements then how many elements of X×XX \times X are there? (b) How many subsets does X×XX \times X have?

  7. The \textbf{diagonal} is the subset of X×XX \times X consisting of all pairs of the form (x,x)(x,x)—in other words, those pairs whose first and second elements are the same.
    (a) How many elements are on the diagonal of X×XX \times X if X=n|X|=n?
    (b) In that case, how many ordered pairs are “off the diagonal”?

  8. How many ways can four couples sit in a row such that everyone sits next to their partner?

  9. How many ways can nine different people be seated in a circle?

11. Unordered samples

  1. (a) How many ways are there to flip five coins and get three heads?
    (b) How many binary strings with five digits have exactly three 1’s?
    (c) How many subsets of the set {a,b,c,d,e}\{a,b,c,d,e\} have three elements?

  2. How many ways are there to flip seven coins and get at least five heads?

  3. A seven-game series between the Toronto Raptors and the Golden State Warriors ends as soon as one team wins four games. How many ways can the series go? (In other words, you are counting strings of the form “TTTGGGT” or “TGGGG” where T or G appears exactly four times.)

  4. A research team is to be made in the following way. There are two professors on the team, one of whom is the principal investigator. There are five students on the team who all have the same job. If eight professors and ten students volunteer, how many such teams are possible?

  5. How many ways can fifteen people be divided into four teams if all that matters is how many people are on each team?

  6. How many non-negative integer solutions are there to the equation w+x+y+z=58w+x+y+z=58?

  7. Goofus and Gallant are going to the ice cream parlor. The parlor has 3131 flavors. Goofus and Gallant will each get three scoops on a cone.
    (a) Goofus, the absolute rube, doesn’t care what order his scoops are in. How many ways can he make his cone?
    (b) Gallant, a man of taste, cares what order his scoops are in. How many ways can Gallant make his cone?

  8. Goofus has $10 to bet that a particular team will win the NBA finals. He can bet on the Bucks, the Raptors, the Warriors, or the Nuggets. Goofus can place his bets in one-dollar increments (he may bet $0 or $1 on a team, but not $0.50). How many ways can Goofus allocate his money? (Gallant does not gamble.)

  9. How many ways can twenty wedding guests be seated at five tables if each table has unlimited capacity, and all that matters is how many people are at each table?

  10. Let Ω={x,y,z}\Omega=\{x,y,z\}.
    (a) Enumerate all the multisets from Ω\Omega of cardinality r=3r=3.
    (b) How many \textit{distinguishable} terms are in the polynomial (x+y+z)3(x+y+z)^3?

  11. Write and simplify the binomial (x+y)10(x+y)^{10} in expanded form.

  12. Write and simplify the binomial (3mn)5(3m-n)^5 in expanded form.

  13. Use the binomial theorem to prove that if n1n \ge 1, r=0n(1)r(nr)=0. \sum_{r=0}^n (-1)^r\binom{n}{r} = 0.

  14. Fix n1n \ge 1. Let EE be the sum of all the C(n,r)C(n,r) where rr is even, and let OO be the same sum where rr is odd. Which is larger: EE or OO? (Hint: Last question.)

  15. Use algebra to prove the binomial coefficient recurrence relation. That is, prove it just using the factorial definition of the binomial coefficient. Do not appeal to what the coefficients are counting.

  16. Use a combinatorial proof to prove that r=0n(nr)=2n. \sum_{r=0}^n \binom{n}{r} = 2^n. In other words, what sort of object is each side of the equation counting?

  17. Generating functions allow us to use tools from algebra, calculus, and elsewhere to learn about sequences. Differentiating both sides of the binomial theorem with respect to yy yields the identity n(x+y)n1=r=0nr(nr)xnryr1. n(x+y)^{n-1} = \sum_{r=0}^n r\binom{n}{r}x^{n-r}y^{r-1}.
    (a) If you have had calculus, verify this yourself.
    (b) Calculate the value of the sum r=0nr(nr). \sum_{r=0}^n r\binom{n}{r}.

  18. A monic polynomial is a polynomial whose leading term is 1, e.g. p(z)=z32z+7p(z)=z^3-2z+7. Monic polynomials are uniquely determined by their roots, i.e. values z=cz=c where p(c)=0p(c)=0, and the multiplicity of each root, i.e. the number of times p(z)p(z) is divisible by (zc)(z-c). The degree of a polynomial is the sum of the multiplicities of each root. Anyway, count the number of monic polynomials of degree 5 whose roots are one of the first ten natural numbers, i.e. elements of {0,1,2,3,4,5,6,7,8,9}\{0,1,2,3,4,5,6,7,8,9\}. (Hint: Where have you seen the word “multiplicity” before very recently?)

12. Multinomial coefficients

  1. How many different teams can be made if we must make 88 teams from 3030 people where the first four teams each have 44 people, the fifth has 33 people, the sixth has 22 people, and the seventh has 33 people?

  2. Five students are to be allocated into three distinguishable teams.
    (a) How many distributions are there? In other words how many different possible sizes can the teams have? (Include empty teams.) e.g. “Team 1 and 2 each have two members and Team 3 has one member” is one of the distributions being counted; perhaps 221221 is a good way to represent this distribution. Enumerate all possible distributions and then check your answer with the appropriate formula.
    (b) Suppose a distribution is chosen: two students will be on the first and second teams each, while a single student will be on the third team. How many different combinations of teams are there? e.g. “Team 1: Alicia and Carlos, Team 2: Davina and Bob, Team 3: Erik” is one of the combinations of teams being counted. Perhaps ACDBEAC|DB|E is a good way to represent these teams. Enumerate all possible combinations of teams and check your answer with the appropriate formula.

  3. A lazy math teacher is writing an exam.
    (a) The lazy math teacher has a class of 31 students and wants to assign some of them A’s, some B’s, some C’s, some D’s, and some F’s. If it is not important to the teacher how many of each grade is assigned, how many ways can they choose how many of each to give?
    (b) The lazy math teacher has a class of 31 students and wants to assign 3 A’s, 6 B’s, 10 C’s, 6 D’s, and the rest F’s. It is not important to the teacher which student gets which grade. How many ways can this assignment be done?

  4. How many distinguishable arrangements are there of the letters in ANTIDISESTABLISHMENTARIANISM?

  5. What is the coefficient of the term w3x4yzw^3x^4yz in the polynomial (w+x+y+z)9(w+x+y+z)^9?

  6. Expand (x+y+z)2(x+y+z)^2 without the distributive property (i.e., without “FOILing”).

  7. Calculate r1+r2+r3=n(nr1,r2,r3). \sum_{r_1+r_2+r_3=n} \binom{n}{r_1,r_2,r_3}. Give an explanation for your answer.

  8. The binomial coefficients could be represented visually using a triangle, incorporating their recurrence. How can the trinomial coefficients be visually represented? Find a way to draw this object from n=0n=0 down to n=4n=4. (Hint: Slices, or colored pencils.)

13. Probability

  1. Alice has courtside tickets to see the Charlotte Hornets. She has a Muggsy Bogues bobblehead on her desk and has Kemba Walker’s jersey. (Those are, or were, Hornets players.) Which of these two events is more likely: that Alice works in real estate, or that Alice works in real estate and is a Hornets fan?

  2. Of a particular basketball player’s shots, 60%60\% are worth 3 points. In general they make 40%40\% of their shots. Of the player’s 3-point shots, 30%30\% make it in the basket.
    (a) What is the probability that a shot is worth 2 points? (Assume all shots are worth 2 or 3 points.)
    (b) What is the probability that a shot is worth 3 points and makes it?
    (c) What is the probability that a shot is worth 3 points or makes it?
    (d) Of the shots that make it, how many are 3-point shots?

  3. A twenty-sided die is rolled. (The sides are labeled 1-20.)
    (a) What is the probability that the result is at least 6?
    (b) What is the probaility that the result is prime given that it is at least 6?
    (c) What is the probability that the result is at least 6 and prime? (Use both enumeration and the formula.)
    (d) What is the probability that the result is at least 6 or prime? (Use both enumeration and the formula.)

  4. What is the probability that a randomly-chosen binary string of length 10 has exactly 3 1’s?

  5. A six-character alphanumeric password is made.
    (a) What is the probability that the password contains all letters?
    (b) What is the probability that the password has no repeated characters?
    (c) What is the probability that the password has all letters given that it has no repeated characters?
    (d) What is the probability that the password has repeated characters?

  6. Let Ω\Omega be a finite sample space containing events EE and FF. Prove the following properties of probability using the definition.
    (a) 0P(E)10 \le P(E) \le 1 for all events EΩE \subseteq \Omega.
    (b) P(E)=0P(E) = 0 if and only if E=E = \varnothing.
    (c) P(E)=1P(E) = 1 if and only if E=ΩE = \Omega.
    (d) If EFE \subseteq F, then P(E)P(F)P(E) \le P(F).

  7. A particular illness has an incidence rate of 0.3%, meaning that the probability anyone in the population has it is only 3 out of 1000. Suppose that in specimens containing the illness, a test gives a positive 80% of the time. Furthermore the same test has a 10% false positive rate (positive if the specimen does not contain the illness).
    (a) Let AA be the event that an individual is sick with the illness and let BB be the event they test positive. Explain why P(B)=P(BA)+P(BA)P(B) = P(B \cap A) + P(B \cap \overline{A}). (This is true regardless of what AA and BB are, by the way.)
    (b) Calculate P(AB)P(A|B), the probability that an individual is sick given they test positive.
    (c) Calculate P(AB)/P(A)P(A|B)/P(A). This ratio represents the factor by which a belief the individual is sick, quantified by a probability, should increase given the evidence of a positive test. Bayes’ theorem (which you used unknowingly in part (b)) quantifies the way belief can change with evidence. For more, check out this article.

14. Boolean matrices

  1. Given these matrices, answer the following questions or compute the following matrices (if they exist). A=(0110),B=(110010),A = \left( \begin{array}{cc} 0 & 1 \\ 1 & 0 \end{array} \right), \qquad B = \left( \begin{array}{cc} 1 & 1 \\ 0 & 0 \\ 1 & 0 \end{array} \right),
    C=(1011),andD=(110010101).C = \left( \begin{array}{cc} 1 & 0 \\ 1 & 1 \end{array} \right), \qquad \text{and} \qquad D = \left( \begin{array}{ccc} 1 & 1 & 0 \\ 0 & 1 & 0 \\ 1 & 0 & 1 \end{array} \right). a) Calculate ACA \vee C.
    b) Calculate ACA \wedge C.
    c) Calculate ABA \wedge B.
    d) Calculate ABA \odot B.
    e) Calculate BAB \odot A.
    f) Calculate DBD \odot B.
    g) Calculate D[2]D^{[2]} (which is the same as DDD \odot D).

  2. Calculate the following matrices. If a matrix does not exist, say so.
    a) (101011)(001101)\left( \begin{array}{rrr} 1 & 0 & 1 \\ 0 & 1 & 1 \end{array} \right) \vee \left( \begin{array}{rrr} 0 & 0 & 1 \\ 1 & 0 & 1 \end{array} \right)
    b) (10011100)(00110110)\left( \begin{array}{cc} 1 & 0 \\ 0 & 1 \\ 1 & 1 \\ 0 & 0 \end{array} \right) \wedge \left( \begin{array}{cc} 0 & 0 \\ 1 & 1 \\ 0 & 1 \\ 1 & 0 \end{array} \right)
    c) (011101)(100100111000)\left( \begin{array}{ccc} 0 & 1 & 1 \\ 1 & 0 & 1 \end{array} \right) \odot \left( \begin{array}{cccc} 1 & 0 & 0 & 1 \\ 0 & 0 & 1 & 1 \\ 1 & 0 & 0 & 0 \end{array} \right)
    d) (011110100011)T\left( \begin{array}{rrrr} 0 & 1 & 1 & 1 \\ 1 & 0 & 1 & 0 \\ 0 & 0 & 1 & 1 \end{array} \right)^T

  3. Consider the set described at the beginning of the chapter, of all propositional statements together with their disjunctions, conjunctions, and negations. Be specific about how this set forms a Boolean algebra. What are the join, meet, and complement operations? Which object would play the role of 11, and which object would play the role of 00?

  4. Likewise, consider a family of sets that contains the unions, intersections, and complements of those sets. Describe how it forms a Boolean algebra: Identify the join, meet, and complement operations, which object would play the role of 11, and which object would play the role of 00.

15. Relations

  1. Write each relation as a set of ordered pairs.
    a) R={(x,y)    y=x2}R = \{(x,y) \; | \; y=x^2 \} on the set of integers between & including 10-10 and 1010
    b) S={(m,n)    m,nZ and m+n=10}S = \{ (m,n) \;|\; m, n \in \mathbf{Z} \text{ and } m+n=10 \} on the set {1,2,,10}\{1,2,\ldots,10\}
    c) T={(E,F)    EFX}T = \{(E,F)\;|\;E \subseteq F \subseteq X\} on the power set of {a,b}\{a,b\}
    d) The relation on {1,2,3,4,5}\{1,2,3,4,5\} where xx is related to yy if x=yx = y
    e) The relation on {1,2,3,4,5}\{1,2,3,4,5\} where xx is related to yy if x<yx < y
    f) The relation where XX is related to YY if X=Y|X|=|Y| on the power set of {a,b}\{a,b\}

  2. Given each relation write down the properties that the relation has. If the relation does not have a particular property, give an example showing why.
    a) R={(a,a),(a,c),(b,b),(c,b),(c,c)}R = \{(a,a), (a,c), (b,b), (c,b), (c,c)\}
    b) S={(m,n)    m,nZ and m+n=10}S = \{ (m,n) \;|\; m, n \in \mathbf{Z} \text{ and } m+n=10 \}
    c) T={(E,F)    EFX}T = \{(E,F)\;|\;E \subseteq F \subseteq X\}
    d) The relation on any set where xx is related to yy if x=yx=y
    e) The relation on any set of real numbers where xx is related to yy if x<yx<y
    f) The relation on any collection of sets where XX is related to YY if X=Y|X|=|Y|
    g) The relation on R\mathbf{R} where xx is related to yy if y=x2y=x^2

  3. Let X={a,b,c,d}X=\{a,b,c,d\} and the relation RR on XX be defined by R={(a,b),(a,d),(b,d),(c,c)}.R = \{(a,b),(a,d),(b,d),(c,c)\}.
    a) Write down a matrix for RR where the rows and columns are arranged alphabetically.
    b) Draw a digraph for RR.

  4. Let Y={a,b,c,d,e}Y=\{a,b,c,d,e\} and the relation SS on YY be defined by
    S={(a,b),(b,d),(c,d),(d,c),(d,e),(e,a)}. S = \{(a,b),(b,d),(c,d),(d,c),(d,e),(e,a)\}.
    a) Write down a matrix for SS where the rows and columns are arranged alphabetically.
    b) Draw a digraph for SS.

  5. Let RR and SS be represented by the matrices MRM_R and MSM_S respectively: MR=(1010000011000100)MS=(1011001011011100) M_R = \left( \begin{array}{cccc} 1 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 0 & 1 & 0 & 0 \end{array} \right) \qquad M_S = \left( \begin{array}{cccc} 1 & 0 & 1 & 1 \\ 0 & 0 & 1 & 0 \\ 1 & 1 & 0 & 1 \\ 1 & 1 & 0 & 0 \end{array}\right)
    a) Is RSR \subseteq S?
    b) Is SRS \subseteq R?
    c) Write down the matrix for RSR \cup S.
    d) Write down the matrix for RSR \cap S.

  6. Can a relation be both reflexive and antireflexive? If so, give an example; if not, give an explanation.

  7. Can a relation be both symmetric and antisymmetric? If so, give an example; if not, give an explanation.

  8. (This problem assumes that you have already read Chapters 9-12.) Let XX be a set with nn elements. Count the number of:
    a) reflexive relations on XX.
    b) antireflexive relations on XX.
    c) symmetric relations on XX.
    d) antisymmetric relations on XX.

  9. Verbally describe the matrix for a relation that is:
    a) diagonal.
    b) symmetric.
    c) antireflexive.
    d) antisymmetric.

16. Closure and composition

  1. Let X={a,b,c,d}X=\{a,b,c,d\} and the relation RR on XX be defined by R={(a,b),(a,d),(b,d),(c,c)}.R = \{(a,b),(a,d),(b,d),(c,c)\}.
    a) Calculate the reflexive closure of RR.
    b) Calculate the symmetric closure of RR.
    c) Calculate the transitive closure of RR.

  2. Let Y={a,b,c,d,e}Y=\{a,b,c,d,e\} and the relation SS on YY be defined by S={(a,b),(b,d),(c,d),(d,c),(d,e),(e,a)}. S = \{(a,b),(b,d),(c,d),(d,c),(d,e),(e,a)\}.
    a) Calculate the reflexive closure of SS.
    b) Calculate the symmetric closure of SS.
    c) Calculate the transitive closure of SS.

  3. Consider the relation R={(a,c),(b,a),(b,b),(c,f),(d,e),(e,d)} R = \{(a,c),(b,a),(b,b),(c,f),(d,e),(e,d)\} on the set X={a,b,c,d,e,f}X = \{a,b,c,d,e,f\}.
    a) Calculate the reflexive closure of RR.
    b) Calculate the symmetric closure of RR.
    c) Calculate the transitive closure of RR.

  4. Consider the relation RR on the set {x1,x2,x3,x4,x5}\{x_1, x_2, x_3, x_4, x_5\} given by R={(x1,x4),(x2,x4),(x3,x2),(x3,x3),(x4,x2),(x4,x5),(x5,x5)}. R = \{(x_1,x_4), (x_2,x_4), (x_3,x_2), (x_3,x_3), (x_4,x_2), (x_4,x_5), (x_5,x_5)\}.
    a) What pairs must you add to RR to construct its reflexive closure?
    b) What pairs must you add to RR to construct its symmetric closure?
    c) What pairs must you add to RR to construct its transitive closure?

  5. What is the reflexive closure of the relation described by x<yx < y on R\mathbf{R}?

  6. What is the symmetric closure of the relation described by x<yx < y on R\mathbf{R}?

  7. Let RR and SS be relations on X={x1,x2,x3}X = \{x_1, x_2, x_3\} represented by the matrices MR=[101001110]MS=[000110101]. M_R = \left[ \begin{array}{ccc} 1 & 0 & 1 \\ 0 & 0 & 1 \\ 1 & 1 & 0 \end{array} \right] \qquad M_S = \left[ \begin{array}{ccc} 0 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & 0 & 1 \end{array}\right].
    a) Write down RSRS as a set of ordered pairs.
    b) Write down SRSR as a set of ordered pairs.

  8. Let S={(a,b),(b,a),(b,d),(b,e),(b,f),(c,c),(d,e),(f,c),(f,f)} S = \{(a,b),(b,a),(b,d),(b,e),(b,f), (c,c),(d,e),(f,c),(f,f)\} be a relation on the set {a,b,c,d,e,f}\{a,b,c,d,e,f\}. Write the relation S2S^2 as a set of ordered pairs.

  9. Let X={x1,x2,x3,x4}X=\{x_1,x_2,x_3,x_4\}, Y={y1,y2,y3}Y=\{y_1,y_2,y_3\}, and Z={z1,z2}Z=\{z_1,z_2\}. Let RR be the relation from XX to ZZ with R={(x1,z1),(x2,z2),(x3,z1),(x3,z2)}R=\{(x_1,z_1),(x_2,z_2),(x_3,z_1),(x_3,z_2)\}. Let SS be the relation from YY to XX where S={(y1,x4),(y1,x1),(y2,x3),(y3,x2)}S = \{(y_1,x_4),(y_1,x_1),(y_2,x_3),(y_3,x_2)\}.
    a) Write down the matrices MRM_R and MSM_S. Order the rows and columns numerically.
    b) Write down the composition SRSR as a set of ordered pairs.

  10. Why is there no such thing as an antireflexive closure?

  11. Why is there no such thing as an antisymmetric closure, and why is this idea actually less useful than the idea of an antireflexive closure?

17. Equivalence relations

  1. Let X={a,b,c,d,e,f}X=\{a,b,c,d,e,f\} and RR be the relation on XX defined by R={(a,a),(a,b),(a,e),R = \{ (a,a), (a,b), (a,e), (b,a),(b,b),(b,e),(b,a), (b,b), (b,e), (c,c),(c,f),(d,d),(c,c), (c,f), (d,d), (e,a),(e,b),(e,e),(e,a), (e,b), (e,e), (f,c),(f,f)}(f,c), (f,f) \}. Is RR an equivalence relation? If so, draw a digraph and give the equivalence classes. If not, give an example showing why.

  2. Let X={a,b,c,d,e,f}X=\{a,b,c,d,e,f\} and SS be the relation on XX defined by S={(a,a),(a,b),(a,c),S = \{ (a,a), (a,b), (a,c), (a,d),(a,e),(a,f),(a,d), (a,e), (a,f), (b,b),(b,d),(b,e),(b,b), (b,d), (b,e), (b,f),(c,c),(c,d),(b,f), (c,c), (c,d), (c,e),(c,f),(d,d),(c,e), (c,f), (d,d), (d,e),(d,f),(e,e),(f,f)}.(d,e), (d,f), (e,e), (f,f) \}. Is SS an equivalence relation? If so, draw a digraph and give the equivalence classes. If not, give an example showing why.

  3. Let X={a,b,c,d,e,f}X=\{a,b,c,d,e,f\} and TT be the relation on XX defined by T={(a,b),(a,c),(a,d),T = \{ (a,b), (a,c), (a,d), (c,b),(c,d),(d,b),(c,b), (c,d), (d,b), (e,a),(e,b),(e,c),(e,a), (e,b), (e,c), (e,d),(e,f),(f,a),(e,d), (e,f), (f,a), (f,b),(f,c),(f,d)}.(f,b), (f,c), (f,d) \}. Is TT an equivalence relation? If so, draw a digraph and give the equivalence classes. If not, give an example showing why.

  4. Let XX be any finite set and define the relation RR on P(X)\mathcal{P}(X) by
    R={(E,F)    E=F,E,FP(X)}. R = \{ (E,F) \; | \; |E| = |F|, E, F \in \mathcal{P}(X) \}.
    a) Prove that RR is an equivalence relation.
    b) If X={a,b,c}X = \{a,b,c\}, give the equivalence classes of the relation.

  5. Throughout this book we have used the notation [n][n] as shorthand for the set {1,2,,n}\{1, 2, \ldots, n\}. Now we are using [x][x] to refer to the set of all elements equivalent to xx in a given equivalence relation. Briefly discuss the connection between the two notations, and why it is “okay” to use the same notation for these two things. (What is [X][X] in the equivalence relation on a collection of sets described in the previous question?)

  6. Let S2\mathcal{S}^2 be the space of all well-formed formulas consisting of at most two different letters. In other words, S2\mathcal{S}^2 is the set consisting of all statements correctly formed from pp, qq, and some logical connectives. Examples include pp, p¬qp \wedge \neg q, and (¬p¬q)(pq)(\neg p \vee \neg q) \to (p \wedge q). Define the relation \equiv on S2\mathcal{S}^2 by saying φψ\varphi \equiv \psi whenever φψ\varphi \leftrightarrow \psi is a tautology. (In other words, \equiv on S2\mathcal{S}^2 is the familiar logical equivalence.)
    a) Prove that \equiv is an equivalence relation.
    b) Prove there are 16 equivalence classes. (This requires you to have read Chapters 9-13.)
    c) List the 16 equivalence classes.

  7. Fix a nonzero integer nn. Prove that the relation on the integers defined by ab  (mod n)a \equiv b \; (\text{mod } n) is an equivalence relation. (Hint: For transitivity, you will need to assume that if aa divides two numbers, it divides their sum as well. Though, this is worth proving on its own.)

  8. Simplify each of the following (write the smallest non-negative member of the appropriate equivalence class).
    a) 28  (mod 9)28 \; (\text{mod } 9)
    b) (50)  (mod 23)(-50) \; (\text{mod } 23)
    c) (17)  (mod 3)(-17) \; (\text{mod } 3)
    d) (18×321)  (mod 4)(18 \times 321) \; (\text{mod } 4)
    e) (72300)  (mod 4)(7^2 - 300) \; (\text{mod } 4)
    f) (302597×108)  (mod 5)(302^5-97\times 108) \; (\text{mod } 5)
    g) (71428×20)  (mod 6)(7^{14} - 28 \times 20) \; (\text{mod } 6)

  9. Let XX be the set {0,1,2,3,4,5,6,7,8,9,10}\{0,1,2,3,4,5,6,7,8,9,10\}. Write down the equivalence relations of this set under the relation (mod 3)\equiv\, (\text{mod } 3).

  10. Simplify 227(mod 5)2^{27}\, (\text{mod } 5) by hand in the following way.
    a) Express 2272^{27} as a product of factors of the form 22n2^{2^n} by writing 2727 as a sum of powers of 2 (basically, in binary).
    b) Use the arithmetic properties of the modulus function to simplify 22n(mod 5)2^{2^n}\, (\text{mod } 5) for each of the powers of 2 in the product you found in the preceding part. (Hint: Notice that each power of 2 is a square of the preceding part. So to simplify 216(mod 5)2^{16}\, (\text{mod } 5), you could simplify simplify 28(mod 5)2^{8}\, (\text{mod } 5), square that, and then take its remainder modulo 5.)
    c) Multiply the remainders you found in the preceding part, taking one last remainder mod 55 if necessary. (This method is used to simplify large numbers of the form bc(mod n)b^c \, (\text{mod } n), which is used in certain encryption protocols.)

18. Partial orders

  1. Let X={a,b,c,d,e,f}X=\{a,b,c,d,e,f\} and RR be the relation on XX defined by R={(a,a),(a,b),(a,e),R = \{ (a,a), (a,b), (a,e), (b,a),(b,b),(b,e),(b,a), (b,b), (b,e), (c,c),(c,f),(d,d),(c,c), (c,f), (d,d), (e,a),(e,b),(e,e),(e,a), (e,b), (e,e), (f,c),(f,f)}(f,c), (f,f) \}. Is RR a partial order? If so, draw its Hasse diagram. If not, give an example showing why.

  2. Let X={a,b,c,d,e,f}X=\{a,b,c,d,e,f\} and SS be the relation on XX defined by S={(a,a),(a,b),(a,c),S = \{ (a,a), (a,b), (a,c), (a,d),(a,e),(a,f),(a,d), (a,e), (a,f), (b,b),(b,d),(b,e),(b,b), (b,d), (b,e), (b,f),(c,c),(c,d),(b,f), (c,c), (c,d), (c,e),(c,f),(d,d),(c,e), (c,f), (d,d), (d,e),(d,f),(e,e),(f,f)}(d,e), (d,f), (e,e), (f,f) \}. Is SS a partial order? If so, draw its Hasse diagram. If not, give an example showing why.

  3. Let X={a,b,c,d,e,f}X=\{a,b,c,d,e,f\} and TT be the relation on XX defined by T={(a,b),(a,c),(a,d),T = \{ (a,b), (a,c), (a,d), (c,b),(c,d),(d,b),(c,b), (c,d), (d,b), (e,a),(e,b),(e,c),(e,a), (e,b), (e,c), (e,d),(e,f),(f,a),(e,d), (e,f), (f,a), (f,b),(f,c),(f,d)}(f,b), (f,c), (f,d) \}. Is TT a partial order? If so, draw its Hasse diagram. If not, give an example showing why.

  4. Let XX be any set and define the relation SS on P(X)\mathcal{P}(X) where S={(E,F)    EFX}. S = \{(E,F) \; | \; E \subseteq F \subseteq X\}.
    a) Prove that SS is a partial order.
    b) Is SS a linear order? If not, tell why.
    c) Give the maximal and minimal elements of SS.
    d) If X={a,b,c,d}X=\{a,b,c,d\}, draw the Hasse diagram for SS.

  5. Let B2\mathcal{B}_2 be the set of all 2×22\times 2 Boolean matrices, and let TT be the relation on B2\mathcal{B}_2 where T={(A,B)    AB,A,BB2}. T = \{(A,B)\;|\; A \le B, A, B \in \mathcal{B}_2 \}.
    a) Prove TT is a partial order on B2\mathcal{B}_2 (hence justifying the use of the symbol \le for Boolean matrices).
    b) Is TT a linear order? If not, tell why.
    c) Give the maximal and minimal elements of TT.
    d) Draw the Hasse diagram for TT.

  6. It sure seems like this should be a partial order: take a family of sets, and declare EE to be related to FF if EF|E| \le |F|. Why isn’t it? Provide a specific example using two sets.

  7. Let A\mathcal{A} be a Boolean algebra; again, that is a set equipped with elements 00 and 11 and operations \vee, \wedge, and ¬\neg, following the appropriate distributive laws (see Chapter 14) where a0=0a \wedge 0 = 0 and a1=1a \vee 1 = 1 for all aAa \in \mathcal{A}. Define a partial order \le on A\mathcal{A} by saying aba \le b if and only if ab=ba \vee b = b.
    a) Prove that \le is indeed a partial order.
    b) Prove that, in fact, A\mathcal{A} forms a lattice under \le.
    c) Pick two of the preceding problems you could have skipped by doing this question first. (It is good practice to work out both concrete examples of things and then general situation.)

  8. The Hasse diagram for the partial order RR is shown.

    The Hasse diagram for a partial order where a is related to b and c, b is related to e and d, c is related to d, and e and d are related to f.

    Figure. The Hasse diagram for a partial order where a is related to b and c, b is related to e and d, c is related to d, and e and d are related to f.

    a) Give the lower bounds of the set {a,b,c}\{a,b,c\}.
    b) Give the greatest lower bound of the set {a,b,c}\{a,b,c\}.
    c) Give the upper bounds of the set {a,b,c}\{a,b,c\}.
    d) Give the least upper bound of the set {a,b,c}\{a,b,c\}.
    e) Does the partially ordered set shown form a lattice?
    f) What are the maximal elements of the partial order?
    g) Is there a maximum?
    h) What are the minimal elements of the partial order?
    i) Is there a minimum?

  9. The Hasse diagram for the partial order SS is shown.

    The Hasse diagram for a partial order where a is related to b, b is related to c and d, d is related to e, c is related to f and g, and f and g are both related to h.

    Figure. The Hasse diagram for a partial order where a is related to b, b is related to c and d, d is related to e, c is related to f and g, and f and g are both related to h.

    a) Give the lower bounds of the set {b,c,d}\{b,c,d\}.
    b) Give the greatest lower bound of the set {b,c,d}\{b,c,d\}.
    c) Give the upper bounds of the set {b,c,d}\{b,c,d\}.
    d) Give the least upper bound of the set {b,c,d}\{b,c,d\}.
    e) Does the partially ordered set shown form a lattice?
    f) What are the maximal elements of the partial order?
    g) Is there a maximum?
    h) What are the minimal elements of the partial order?
    i) Is there a minimum?

  10. The Hasse diagram for the partial order TT is shown.

    The Hasse diagram for a partial order where x is related to w, w is related to y and z, u is related to z, and both y and z are related to v.

    Figure. The Hasse diagram for a partial order where x is related to w, w is related to y and z, u is related to z, and both y and z are related to v.


    a) Is TT linear?
    b) What are the minimal elements in TT? Is there a minimum? If so, what is it?
    c) What are the maximal elements in TT? Is there a maximum? If so, what is it?
    d) Let AA be the set {v,y,z}\{v,y,z\}. What are the lower bounds of AA, if any? What is glb(A)\text{glb}(A), if it exists?
    e) What are the upper bounds of AA, if any? What is lub(A)\text{lub}(A), if it exists?
    f) Let BB be the set {u,w,z}\{u,w,z\}. What are the lower bounds of BB, if any? What is glb(B)\text{glb}(B), if it exists?
    g) What are the upper bounds of BB, if any? What is lub(B)\text{lub}(B), if it exists?
    h) Write the set of ordered pairs in TT.
    i) What is the largest lattice contained in TT? (i.e., Choose a subset of the underlying set such that the order restricted to that subset creates a lattice. In this case, this operation should give a unique result.)
    j) What is the smallest lattice containing TT? (i.e. Add arrows to the relation such that the result is a lattice. In this case, this operation should give a unique result.)