Skip to main content

Exercises 14.3 Exercises

1.

Let \(X=\{a,b,c,d,e,f\}\) and \(R\) be the relation on \(X\) defined by

\begin{align*} R = \Big\{ \amp (a,a), (a,b), (a,e), (b,a), (b,b), (b,e), (c,c),\\ \amp (c,f), (d,d), (e,a), (e,b), (e,e), (f,c), (f,f) \Big\} \end{align*}

Is \(R\) an equivalence relation? If so, draw a digraph and give the equivalence classes. If not, give an example showing why.

2.

Let \(X=\{1,2,3,4,5,6\}\) and let \(R\) be the relation on \(X\) defined by

\begin{align*} R = \Big\{ \amp (1,1), (1,3), (1,5), (1,6), (2,2), (2,4), (3,1),\\ \amp (3,3), (3,5), (3,6), (4,2), (4,4), (5,1), (5,3),\\ \amp (5,5), (5,6), (6,1), (6,3), (6,5), (6,6)\Big\}. \end{align*}

Is \(R\) 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\}\) and \(S\) be the relation on \(X\) defined by

\begin{align*} S = \Big\{ \amp (a,a), (a,b), (a,c), (a,d), (a,e), (a,f), (b,b), (b,d),\\ \amp (b,e), (b,f), (c,c), (c,d), (c,e), (c,f), (d,d), (d,e), (d,f), (e,e), (f,f) \Big\}. \end{align*}

Is \(S\) an equivalence relation? If so, draw a digraph and give the equivalence classes. If not, give an example showing why.

4.

Let \(X=\{a,b,c,d,e,f\}\) and \(T\) be the relation on \(X\) defined by

\begin{align*} T = \Big\{ \amp (a,b), (a,c), (a,d), (c,b), (c,d), (d,b), (e,a),\\ \amp (e,b), (e,c), (e,d), (e,f), (f,a), (f,b), (f,c), (f,d) \}. \end{align*}

Is \(T\) an equivalence relation? If so, draw a digraph and give the equivalence classes. If not, give an example showing why.

5.

Let \(X\) be any finite set and define the relation \(R\) on \(\mathscr{P}(X)\) by

\begin{equation*} R = \{ (E,F) \; | \; |E| = |F|, E, F \in \mathscr{P}(X) \}. \end{equation*}

If \(X = \{a,b,c\}\text{,}\) give the equivalence classes of the relation. Name each equivalence class with the correct notation, and list the elements of each.

6.

Define the floor \(\lfloor x \rfloor\) of a real number \(x\) to be “\(x\) rounded down”, in other words, the greatest integer less than or equal to \(x\text{:}\)

\begin{equation*} \lfloor x \rfloor = \text{max}\{m\; | \; m \in \mathbb{Z}, \; m \le x \} \end{equation*}

For instance, \(\lfloor -2 \rfloor = -2\text{,}\) \(\lfloor 1.74 \rfloor= 1 \text{,}\) and \(\lfloor \pi \rfloor = 3\text{.}\)

Define the relation \(S\) on the set \(\mathbb{R}\) of all real numbers:

\begin{equation*} S = \{(x,y) \; | \; \lfloor x \rfloor = \lfloor y \rfloor \}. \end{equation*}

For instance, \((\pi, 3.7) \in S\text{,}\) because the floor of both is \(3\text{.}\)

Describe the equivalence classes of \(\mathbb{R}\) under \(S\text{.}\) You will not be able to list them out, but you should be able to name a few and tell that there is one equivalence class for each...

7.

The notation \([n]\) is used as shorthand for the set \(\{1, 2, \ldots, n\}\text{.}\) Now we are using \([x]\) to refer to the set of all elements equivalent to \(x\) in a given equivalence relation. Briefly discuss the relationship between the two notations.

Hint.

Consider the equivalence relation on a family of sets described by \(|X|=|Y|\text{.}\) Given a set \(A\text{,}\) what is \([A]\text{?}\) Is there a relationship between \([A]\) and \([n]\text{?}\)

8.

Let \(\mathscr{S}^2\) be the space of all well-formed formulas consisting of at most two different letters. In other words, \(\mathscr{S}^2\) is the set consisting of all statements correctly formed from \(p\text{,}\) \(q\text{,}\) and some logical connectives. Examples include \(p\text{,}\) \(p \wedge \neg q\text{,}\) and \((\neg p \vee \neg q) \to (p \wedge q)\text{.}\) Define the relation \(\equiv\) on \(\mathscr{S}^2\) by saying \(\varphi \equiv \psi\) whenever \(\varphi \leftrightarrow \psi\) is a tautology. (In other words, \(\equiv\) on \(\mathscr{S}^2\) is the familiar logical equivalence.)

  1. Prove there are \(16\) equivalence classes. (This requires a little bit of combinatorics.)

  2. List the \(16\) equivalence classes. In other words, choose a representative for each of the classes of equivalent statement. For example, you'd choose between \(p \to q\) and \(\neg p \vee q\) as a representative for their equivalence class. If you chose \(p \to q\text{,}\) then \([p \to q]\) would be the set of all statements equivalent to \(p \to q\text{.}\)

For the following problems, simplify the expression (which means, write the smallest non-negative member of the appropriate equivalence class).

9.

Simplify \((-50) \; (\text{mod } 23)\text{.}\)

10.

Simplify \((-17) \; (\text{mod } 3)\text{.}\)

11.

Simplify \(-21\;(\text{mod }4)\text{.}\)

12.

Simplify \((302^5-97\times 108) \; (\text{mod } 5)\text{.}\)

13.

Simplify \((7^{14} - 28 \times 20) \; (\text{mod } 6)\text{.}\)

14.

Simplify \((105^2 - 41 \times 20) \;(\text{mod }9)\text{.}\)

15.

Simplify \((19^{73} + 38 \times 68) \;(\text{mod }3)\text{.}\)

16.

Let \(X\) be the set \(\{0,1,2,3,4,5,6,7,8,9,10\}\text{.}\) Write down the equivalence classes of this set under the relation \(\equiv\, (\text{mod } 3)\text{.}\) Name each and list the elements using the correct notation.

17.

Simplify \(2^{27}\, (\text{mod } 5)\) by hand in the following way. (This method is used to simplify large numbers of the form \(b^c \, (\text{mod } n)\text{,}\) which is used in certain encryption protocols.)

  1. Express \(2^{27}\) as a product of factors of the form \(2^{2^n}\) by writing \(27\) as a sum of powers of 2 (basically, in binary).

  2. Use the arithmetic properties of the modulus function to simplify \(2^{2^n}\, (\text{mod } 5)\) for each of the powers of 2 in the product you found in the preceding part. (Notice that each power of 2 is a square of the preceding part. So to simplify \(2^{16}\, (\text{mod } 5)\text{,}\) you could simplify simplify \(2^{8}\, (\text{mod } 5)\text{,}\) square that, and then take its remainder modulo 5.)

  3. Multiply the remainders you found in the preceding part, taking one last remainder mod \(5\) if necessary.

Solution.

\(27 = 16 + 8 + 2 + 1\text{,}\) so \(2^{27} = 2^{16}2^82^22^1\text{.}\) Therefore,

\begin{align*} 2^{27}\, (\text{mod } 5) \amp = 2^{16}2^82^22^1 \, (\text{mod } 5)\\ \amp = [2^{16}\, (\text{mod } 5)][2^8\, (\text{mod } 5)][2^2\, (\text{mod } 5)] [2^1\, (\text{mod } 5)], (\text{mod } 5) \end{align*}

Calculate the powers of \(2\) mod \(5\text{.}\) Eventually a pattern emerges:

  • \(\displaystyle 2\, (\text{mod } 5) = 2\)

  • \(\displaystyle 2^2\, (\text{mod } 5) = 4\)

  • \(\displaystyle 2^4\, (\text{mod } 5) = 4^2\, (\text{mod } 5) = 16\, (\text{mod } 5) = 1\)

  • \(\displaystyle 2^8\, (\text{mod } 5) = 1^2\, (\text{mod } 5) = 1\)

  • \(\displaystyle 2^{16}\, (\text{mod } 5) = 1^2\, (\text{mod } 5) = 1\)

So,

\begin{align*} 2^{27}\, (\text{mod } 5) \amp = [2^{16}\, (\text{mod } 5)][2^8\, (\text{mod } 5)] [2^2\, (\text{mod } 5)][2^1\, (\text{mod } 5)]\, (\text{mod } 5)\\ \amp = (1 \times 1 \times 4 \times 2)\, (\text{mod } 5)\\ \amp = 8\, (\text{mod } 5)\\ \amp = 3 \end{align*}

Hence, \(2^{27}\) is equivalent to \(3\) mod \(5\text{.}\)