Discrete Math Quiz: Equivalence Relations And Partitions
14 questions · exam conditions
0:00
Equivalence Relations And PartitionsQuestion 1 of 14

Let WW be the relation on {1,2,3,4,5,6,7,8,9}\{1,2,3,4,5,6,7,8,9\} where aWbaWb if and only if aa and bb have the same remainder when divided by 3, OR both aa and bb are greater than 6. Which of the following best describes the partition induced by WW?

WW is not an equivalence relation because it fails transitivity when elements satisfy different conditions
The partition has 3 classes: {1,4,7}\{1,4,7\}, {2,5,8}\{2,5,8\}, and {3,6,9}\{3,6,9\} based solely on remainders mod 3
The partition has 2 classes: {1,2,3,4,5,6}\{1,2,3,4,5,6\} and {7,8,9}\{7,8,9\} based on the threshold condition
The partition has 2 classes: {1,2,3,4,5,6}\{1,2,3,4,5,6\} (remainder condition) and {7,8,9}\{7,8,9\} (threshold condition only)
← Back to quizzes

Discrete Math Quiz

Discrete Math Quiz: Equivalence Relations And Partitions

Practice Equivalence Relations And Partitions in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Equivalence Relations And Partitions, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Let WW be the relation on {1,2,3,4,5,6,7,8,9}\{1,2,3,4,5,6,7,8,9\} where aWbaWb if and only if aa and bb have the same remainder when divided by 3, OR both aa and bb are greater than 6. Which of the following best describes the partition induced by WW?

  1. WW is not an equivalence relation because it fails transitivity when elements satisfy different conditions (correct answer)
  2. The partition has 3 classes: {1,4,7}\{1,4,7\}, {2,5,8}\{2,5,8\}, and {3,6,9}\{3,6,9\} based solely on remainders mod 3
  3. The partition has 2 classes: {1,2,3,4,5,6}\{1,2,3,4,5,6\} and {7,8,9}\{7,8,9\} based on the threshold condition
  4. The partition has 2 classes: {1,2,3,4,5,6}\{1,2,3,4,5,6\} (remainder condition) and {7,8,9}\{7,8,9\} (threshold condition only)
Explanation: Consider 1W71W7 (both have remainder 1 mod 3), 7W87W8 (both > 6), but 181 \not W 8 since 1 and 8 have different remainders mod 3 and 1 is not > 6. This violates transitivity. The relation combines two different conditions with OR, creating a situation where transitivity fails. Choices B and C incorrectly assume the relation is an equivalence relation and attempt to describe its partition. Choice D makes the same error while misunderstanding how the conditions interact.

Question 2

Consider the relation ρ\rho on the set Q\mathbb{Q} of rational numbers defined by aρba\rho b if and only if aba - b is an integer. Let [x][x] denote the equivalence class of xx under ρ\rho. Which statement about the structure of these equivalence classes is correct?

  1. Each equivalence class [x][x] contains exactly one rational number in the interval [0,1)[0,1)
  2. Every equivalence class has the same cardinality as Z\mathbb{Z} and is countably infinite
  3. The set of all equivalence classes has the same cardinality as R\mathbb{R} and is uncountable
  4. Each equivalence class [x][x] contains exactly one rational number in the interval [0,1)[0,1) and is countably infinite (correct answer)
Explanation: Two rationals aa and bb are equivalent iff abZa - b \in \mathbb{Z}, i.e., they have the same fractional part. Each equivalence class [x][x] consists of all rationals of the form {x}+n\{x\} + n where {x}\{x\} is the fractional part of xx and nZn \in \mathbb{Z}. This means each class contains exactly one representative in [0,1)[0,1) and is countably infinite (in bijection with Z\mathbb{Z}). Choice A misses that classes are infinite. Choice B misses the unique representative property. Choice C incorrectly describes the cardinality of the quotient set (there are only countably many rationals in [0,1)[0,1)).

Question 3

A computer science student defines relation VV on the set of all finite binary strings where sVtsVt if and only if string ss can be obtained from string tt by any sequence of the following operations: (1) inserting '01' anywhere in the string, (2) deleting '01' from anywhere in the string. Which statement correctly characterizes the equivalence classes of VV?

  1. Each equivalence class contains all strings with the same number of '1' bits
  2. Each equivalence class contains all strings with the same length modulo 2
  3. Each equivalence class contains all strings that reduce to the same substring when all '01' patterns are removed (correct answer)
  4. Each equivalence class contains all strings with the same number of '01' substrings
Explanation: Since we can insert or delete '01' freely, two strings are equivalent iff they have the same 'reduced form' after removing all possible '01' substrings. For example, '1101' reduces to '11' (removing one '01'), and any string equivalent to '1101' must also reduce to '11'. Choice A is wrong because '11' and '101' have the same number of 1s but different reduced forms ('11' vs '1'). Choice B is wrong because length changes arbitrarily with '01' operations. Choice D is wrong because the number of '01' substrings changes during the operations.

Question 4

Let P={A1,A2,A3,A4}\mathcal{P} = \{A_1, A_2, A_3, A_4\} be a partition of a set XX with A1=3|A_1| = 3, A2=5|A_2| = 5, A3=2|A_3| = 2, and A4=4|A_4| = 4. If we define a new relation TT on XX by merging A1A_1 and A3A_3 into a single equivalence class while keeping A2A_2 and A4A_4 separate, how many ordered pairs are in the symmetric difference of the original equivalence relation and TT?

  1. 12 ordered pairs, representing the new connections between former classes A1A_1 and A3A_3 (correct answer)
  2. 24 ordered pairs, accounting for both directions of the new equivalences created
  3. 36 ordered pairs, including all bidirectional relationships in the merged class
  4. 48 ordered pairs, representing the total change in the equivalence structure
Explanation: The original equivalence relation has pairs within each AiA_i. Relation TT merges A1A_1 and A3A_3, so it has all pairs from the original relation plus new pairs (a,b)(a,b) where aA1,bA3a \in A_1, b \in A_3 or aA3,bA1a \in A_3, b \in A_1. The symmetric difference contains only these new pairs: A1×A3+A3×A1=3×2+2×3=12|A_1| \times |A_3| + |A_3| \times |A_1| = 3 \times 2 + 2 \times 3 = 12. Choice B incorrectly doubles this count. Choice C miscalculates by including existing internal pairs. Choice D overestimates the total structural change.

Question 5

Consider the equivalence relation \equiv on Z\mathbb{Z} defined by aba \equiv b if and only if a2b2a^2 - b^2 is divisible by 8. Which of the following correctly describes the equivalence classes of this relation?

  1. Four equivalence classes: [0],[1],[2],[3][0], [1], [2], [3] where [k]={nZ:nk(mod4)}[k] = \{n \in \mathbb{Z} : n \equiv k \pmod{4}\}
  2. Four equivalence classes where 040 \equiv 4, 13571 \equiv 3 \equiv 5 \equiv 7, 262 \equiv 6, with distinct classes {[0],[1],[2]}\{[0], [1], [2]\} based on squares modulo 8 (correct answer)
  3. Two equivalence classes: even integers and odd integers
  4. Eight equivalence classes corresponding to residues modulo 8
Explanation: aba \equiv b iff 8(a2b2)8 | (a^2 - b^2). Computing squares modulo 8: 020,121,224,321,420,521,624,721(mod8)0^2 \equiv 0, 1^2 \equiv 1, 2^2 \equiv 4, 3^2 \equiv 1, 4^2 \equiv 0, 5^2 \equiv 1, 6^2 \equiv 4, 7^2 \equiv 1 \pmod{8}. Elements with the same square modulo 8 are equivalent. This gives equivalence classes: {0,4}\{0, 4\} (squares 0\equiv 0), {1,3,5,7}\{1, 3, 5, 7\} (squares 1\equiv 1), {2,6}\{2, 6\} (squares 4\equiv 4). There are 3 distinct equivalence classes, not 4. Choice A incorrectly uses modulo 4. Choice C oversimplifies to parity. Choice D incorrectly suggests 8 classes.

Question 6

Let S={1,2,3,4,5,6,7,8,9}S = \{1, 2, 3, 4, 5, 6, 7, 8, 9\} and suppose P={A1,A2,A3}\mathcal{P} = \{A_1, A_2, A_3\} is a partition of SS where each AiA_i has exactly 3 elements. If we know that 1471 \sim 4 \sim 7, 252 \sim 5, and 393 \sim 9 under the equivalence relation corresponding to P\mathcal{P}, what additional relationship must be true?

  1. Either 282 \sim 8 or 363 \sim 6 or 686 \sim 8, but not multiple relationships simultaneously
  2. Exactly two of the following: 282 \sim 8, 363 \sim 6, 686 \sim 8
  3. All three relationships 282 \sim 8, 363 \sim 6, and 686 \sim 8 must hold
  4. Either 282 \sim 8 and 363 \sim 6, or 262 \sim 6 and 383 \sim 8, with 8 and 6 in different blocks (correct answer)
Explanation: We have A1={1,4,7}A_1 = \{1, 4, 7\} (complete). The remaining elements {2,3,5,6,8,9}\{2, 3, 5, 6, 8, 9\} must be split into two blocks of size 3 each. We know 252 \sim 5 and 393 \sim 9. Each of these pairs needs one more element to complete their respective blocks. The remaining elements are 6 and 8. So either: (i) {2,5,6}\{2, 5, 6\} and {3,8,9}\{3, 8, 9\}, giving us 262 \sim 6 and 383 \sim 8, or (ii) {2,5,8}\{2, 5, 8\} and {3,6,9}\{3, 6, 9\}, giving us 282 \sim 8 and 363 \sim 6. In both cases, 6 and 8 are in different blocks. Choices A, B, and C incorrectly suggest that 6 and 8 could be in the same block or that multiple simultaneous relationships are impossible.

Question 7

Consider the set PP of all polynomials with integer coefficients. Define relation γ\gamma on PP by p(x)γq(x)p(x) \gamma q(x) if and only if p(n)q(n)(mod5)p(n) \equiv q(n) \pmod{5} for all integers nn. Which polynomial is in the same equivalence class as f(x)=x4+2x2+3f(x) = x^4 + 2x^2 + 3?

  1. g(x)=x4+7x2+8g(x) = x^4 + 7x^2 + 8 because coefficients are congruent modulo 5
  2. h(x)=x20+2x10+3h(x) = x^{20} + 2x^{10} + 3 because of Fermat's Little Theorem reducing exponents (correct answer)
  3. k(x)=x8+2x4+3k(x) = x^8 + 2x^4 + 3 because higher powers cycle modulo 5 by periodicity
  4. m(x)=6x4+12x2+13m(x) = 6x^4 + 12x^2 + 13 because all coefficients differ by multiples of 5
Explanation: By Fermat's Little Theorem, for any integer nn and prime p=5p = 5, we have n5n(mod5)n^5 \equiv n \pmod{5}. For any integer nn, this gives us n20=(n5)4n4(mod5)n^{20} = (n^5)^4 \equiv n^4 \pmod{5} and n10=(n5)2n2(mod5)n^{10} = (n^5)^2 \equiv n^2 \pmod{5}. Therefore, h(n)=n20+2n10+3n4+2n2+3=f(n)(mod5)h(n) = n^{20} + 2n^{10} + 3 \equiv n^4 + 2n^2 + 3 = f(n) \pmod{5} for all integers nn. Choice A fails because having congruent coefficients mod 5 is not sufficient—we need the polynomial values to be congruent for all integer inputs. Choices C and D can be verified to fail by checking specific values.

Question 8

Define relation TT on R2\mathbb{R}^2 by (a,b)T(c,d)(a,b) T (c,d) if and only if a+d=b+ca + d = b + c. If TT is an equivalence relation, which of the following statements about the equivalence class containing (2,5)(2, 5) is true?

  1. The equivalence class is {(x,y)R2:xy=3}\{(x, y) \in \mathbb{R}^2 : x - y = -3\}, which represents a line with slope 1 (correct answer)
  2. The equivalence class is {(x,y)R2:x+y=7}\{(x, y) \in \mathbb{R}^2 : x + y = 7\}, which represents a line with slope -1
  3. The equivalence class is {(x,y)R2:yx=3}\{(x, y) \in \mathbb{R}^2 : y - x = 3\}, which represents a line with slope 1
  4. The equivalence class is {(x,y)R2:xy=3}\{(x, y) \in \mathbb{R}^2 : |x - y| = 3\}, which represents two parallel lines
Explanation: For (x,y)(x,y) to be equivalent to (2,5)(2,5), we need 2+y=5+x2 + y = 5 + x, which simplifies to xy=25=3x - y = 2 - 5 = -3. This gives the line y=x+3y = x + 3, which has slope 1. Choice A correctly identifies this condition and slope. Choice B incorrectly uses x+y=7x + y = 7 (slope -1) which would come from 2+y=5x2 + y = 5 - x. Choice C has the right slope but wrong equation (yx=3y - x = 3 means xy=3x - y = -3, which is correct, but the way it's written suggests y=x+3y = x + 3). Choice D incorrectly uses absolute value, giving two lines instead of one.

Question 9

Let P1={{1,3},{2,4,6},{5}}P_1 = \{\{1, 3\}, \{2, 4, 6\}, \{5\}\} and P2={{1},{2,6},{3,5},{4}}P_2 = \{\{1\}, \{2, 6\}, \{3, 5\}, \{4\}\} be two partitions of the set {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}. The partition that corresponds to the equivalence relation R1R2R_1 \cap R_2 (where RiR_i is the equivalence relation corresponding to PiP_i) is:

  1. {{1},{2},{3},{4},{5},{6}}\{\{1\}, \{2\}, \{3\}, \{4\}, \{5\}, \{6\}\}
  2. {{1,3},{2,4,6},{5}}\{\{1, 3\}, \{2, 4, 6\}, \{5\}\}
  3. {{1},{2,6},{3},{4},{5}}\{\{1\}, \{2, 6\}, \{3\}, \{4\}, \{5\}\} (correct answer)
  4. {{1},{3,5},{2,4,6}}\{\{1\}, \{3, 5\}, \{2, 4, 6\}\}
Explanation: For R1R2R_1 \cap R_2, elements aa and bb are related iff they are in the same block in BOTH P1P_1 AND P2P_2. Checking each pair: (1,3) are together in P1P_1 but separate in P2P_2, so not related in intersection. (2,4) and (2,6) are together in P1P_1, but only (2,6) are together in P2P_2. (4,6) are together in P1P_1 but separate in P2P_2. (3,5) are separate in P1P_1. Only (2,6) remain together in both partitions. All other elements are isolated. Choice A would be correct only if no pairs were together in both partitions. Choices B and D incorrectly preserve relationships that don't exist in both partitions.

Question 10

Define relation RR on Z×Z\mathbb{Z} \times \mathbb{Z} by (a,b)R(c,d)(a,b) R (c,d) if and only if ad=bcad = bc. This relation partitions Z×Z\mathbb{Z} \times \mathbb{Z} into equivalence classes. Which statement about the equivalence class containing (6,9)(6, 9) is true?

  1. The equivalence class contains exactly 4 elements from the set {(2,3),(4,6),(8,12),(10,15)}\{(2,3), (4,6), (8,12), (10,15)\}
  2. The equivalence class contains exactly 3 elements from the set {(2,3),(4,6),(8,12),(10,15)}\{(2,3), (4,6), (8,12), (10,15)\}
  3. The equivalence class is infinite and represents all ordered pairs equivalent to the fraction 69=23\frac{6}{9} = \frac{2}{3} (correct answer)
  4. The equivalence class is finite and contains all pairs (a,b)(a,b) where gcd(a,b)=3\gcd(a,b) = 3
Explanation: When you encounter equivalence relations defined on ordered pairs, think about what mathematical structure they're creating. This relation (a,b)R(c,d)(a,b) R (c,d) if ad=bcad = bc is actually capturing when two fractions ab\frac{a}{b} and cd\frac{c}{d} are equal (assuming non-zero denominators). To find the equivalence class containing (6,9)(6,9), you need all pairs (a,b)(a,b) such that (6,9)R(a,b)(6,9) R (a,b), meaning 6b=9a6b = 9a, or equivalently ab=69=23\frac{a}{b} = \frac{6}{9} = \frac{2}{3}. This gives you infinitely many pairs: (2,3)(2,3), (4,6)(4,6), (6,9)(6,9), (8,12)(8,12), (10,15)(10,15), (2,3)(-2,-3), (20,30)(20,30), and so on. Any pair where the second coordinate is 32\frac{3}{2} times the first coordinate belongs to this class. Option A claims exactly 4 elements from the given set belong to the class, but checking: (2,3)(2,3), (4,6)(4,6), (8,12)(8,12), and (10,15)(10,15) all satisfy ab=23\frac{a}{b} = \frac{2}{3}, so all 4 are included, making this count correct but missing that the class is infinite. Option B incorrectly counts only 3 of the 4 qualifying pairs. Option D incorrectly focuses on gcd(a,b)=3\gcd(a,b) = 3. While (6,9)(6,9) has gcd(6,9)=3\gcd(6,9) = 3, pairs like (2,3)(2,3) with gcd(2,3)=1\gcd(2,3) = 1 are also in the same equivalence class. Option C correctly identifies that the equivalence class is infinite and represents all pairs equivalent to the reduced fraction 23\frac{2}{3}. Study tip: Equivalence relations on ordered pairs often relate to fraction equality. Always check if the relation preserves some ratio or quotient.

Question 11

Let S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\} and define relation RR on SS by aRbaRb if and only if a+b1(mod3)a + b \equiv 1 \pmod{3}. Which of the following statements about RR is true?

  1. RR is an equivalence relation with equivalence classes {1,4}\{1, 4\}, {2,5}\{2, 5\}, and {3,6}\{3, 6\}
  2. RR is not an equivalence relation because it fails to be reflexive on all elements of SS (correct answer)
  3. RR is not an equivalence relation because it fails to be symmetric for some pairs in SS
  4. RR is not an equivalence relation because it fails to be transitive for some triples in SS
Explanation: For RR to be reflexive, we need aRaaRa for all aSa \in S, which means a+a1(mod3)a + a \equiv 1 \pmod{3} or 2a1(mod3)2a \equiv 1 \pmod{3}. Testing: 2(1)=2≢1(mod3)2(1) = 2 \not\equiv 1 \pmod{3}, 2(2)=41(mod3)2(2) = 4 \equiv 1 \pmod{3}, 2(3)=60≢1(mod3)2(3) = 6 \equiv 0 \not\equiv 1 \pmod{3}. Since 1R11R1 and 3R33R3 are false, RR is not reflexive. Choice A gives equivalence classes for a different relation. Choice C is wrong because RR is symmetric: if a+b1(mod3)a + b \equiv 1 \pmod{3}, then b+a1(mod3)b + a \equiv 1 \pmod{3}. Choice D is incorrect as transitivity issues are secondary to the reflexivity failure.

Question 12

Consider the set X={a,b,c,d,e,f}X = \{a, b, c, d, e, f\} with partition P={{a,c},{b,e,f},{d}}P = \{\{a, c\}, \{b, e, f\}, \{d\}\}. If we define relation RR on XX such that xRyxRy if and only if xx and yy are in the same block of PP, and then define a new relation SS on XX by xSyxSy if and only if xRyxRy or x=dx = d or y=dy = d, which statement about SS is correct?

  1. SS is an equivalence relation with three equivalence classes
  2. SS is an equivalence relation with two equivalence classes: {a,c,d}\{a, c, d\} and {b,e,f}\{b, e, f\}
  3. SS is not an equivalence relation because it lacks symmetry
  4. SS is not an equivalence relation because it lacks transitivity (correct answer)
Explanation: SS is reflexive (each element relates to itself either through RR or the dd condition) and symmetric (if xSyxSy, then ySxySx by the same reasoning). However, SS fails transitivity: aSdaSd (since y=dy = d), dSbdSb (since x=dx = d), but aba \not S b because aa and bb are in different blocks of PP and neither is dd. Choice A is wrong about the number of classes. Choice B incorrectly assumes SS is an equivalence relation and miscalculates the classes. Choice C is incorrect since SS is symmetric.

Question 13

Consider the relation ρ\rho on the set of all polynomials with real coefficients defined by p(x)ρq(x)p(x) \rho q(x) if and only if p(0)=q(0)p(0) = q(0) and p(1)=q(1)p(1) = q(1). Which statement about ρ\rho is correct?

  1. ρ\rho is an equivalence relation, and polynomials x2+2x+3x^2 + 2x + 3 and x2+4x+3-x^2 + 4x + 3 are in the same equivalence class (correct answer)
  2. ρ\rho is an equivalence relation, but polynomials x2+2x+3x^2 + 2x + 3 and x2+4x+3-x^2 + 4x + 3 are in different equivalence classes
  3. ρ\rho is not an equivalence relation because it fails transitivity for some polynomial triples
  4. ρ\rho is not an equivalence relation because it fails reflexivity for some polynomials
Explanation: ρ\rho is reflexive (p(0)=p(0)p(0) = p(0) and p(1)=p(1)p(1) = p(1)), symmetric (if p(0)=q(0)p(0) = q(0) and p(1)=q(1)p(1) = q(1), then q(0)=p(0)q(0) = p(0) and q(1)=p(1)q(1) = p(1)), and transitive (if pρqp \rho q and qρrq \rho r, then p(0)=r(0)p(0) = r(0) and p(1)=r(1)p(1) = r(1)). For p(x)=x2+2x+3p(x) = x^2 + 2x + 3: p(0)=3p(0) = 3, p(1)=6p(1) = 6. For q(x)=x2+4x+3q(x) = -x^2 + 4x + 3: q(0)=3q(0) = 3, q(1)=1+4+3=6q(1) = -1 + 4 + 3 = 6. Since both conditions match, pρqp \rho q. Choice B incorrectly claims they're in different classes. Choices C and D incorrectly claim ρ\rho is not an equivalence relation.

Question 14

Let RR be a relation on {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\} defined by aRbaRb if and only if a2b2(mod4)a^2 \equiv b^2 \pmod{4}. Which of the following statements about the partition induced by RR is correct?

  1. The partition has exactly 2 equivalence classes: {1,3,5}\{1, 3, 5\} and {2,4,6}\{2, 4, 6\} (correct answer)
  2. The partition has exactly 3 equivalence classes: {1,5}\{1, 5\}, {2,6}\{2, 6\}, and {3,4}\{3, 4\}
  3. The partition has exactly 4 equivalence classes with sizes 2, 2, 1, and 1
  4. The partition has exactly 6 equivalence classes, each containing exactly one element
Explanation: First, we compute a2mod4a^2 \bmod 4 for each element: 121(mod4)1^2 \equiv 1 \pmod{4}, 220(mod4)2^2 \equiv 0 \pmod{4}, 321(mod4)3^2 \equiv 1 \pmod{4}, 420(mod4)4^2 \equiv 0 \pmod{4}, 521(mod4)5^2 \equiv 1 \pmod{4}, 620(mod4)6^2 \equiv 0 \pmod{4}. Elements are equivalent if their squares have the same remainder mod 4. This gives us two classes: {1,3,5}\{1, 3, 5\} (remainder 1) and {2,4,6}\{2, 4, 6\} (remainder 0). Choice B incorrectly separates elements with the same remainder. Choice C gives the wrong number of classes. Choice D fails to recognize that this relation creates non-trivial equivalences.