Class 12 Maths, Worked in Full Past papersGet updates
Chapter 1 · Relations and Functions

Exercise 1.1 · Q9: Multiples of 4, and equality, on {0, …, 12}

Exercise 1.1Equivalence relations · Exercise 1.1
The question

Show that each of the relation RR in the set A={x∈Z:0≤x≤12}A = \{x \in \Z : 0 \le x \le 12\}⁠, given by

(i) R={(a,b):∣a−b∣ is a multiple of 4}R = \{(a, b) : |a - b| \text{ is a multiple of } 4\}
(ii) R={(a,b):a=b}R = \{(a, b) : a = b\}

is an equivalence relation. Find the set of all elements related to 1 in each case.

Exam answer

(i) ∣a−b∣|a - b| is a multiple of 4 exactly when a−b=4ka - b = 4k for some k∈Zk \in \Z⁠.

Reflexive: let a∈Aa \in A⁠. Then a−a=0=4⋅0a - a = 0 = 4 \cdot 0⁠, so (a,a)∈R(a, a) \in R⁠. Thus RR is reflexive.

Symmetric: let (a,b)∈R(a, b) \in R⁠, so a−b=4ka - b = 4k⁠. Then b−a=4(−k)b - a = 4(-k)⁠, so (b,a)∈R(b, a) \in R⁠. Thus RR is symmetric.

Transitive: let (a,b),(b,c)∈R(a, b), (b, c) \in R⁠, so a−b=4ka - b = 4k and b−c=4mb - c = 4m⁠. Then a−c=(a−b)+(b−c)a - c = (a - b) + (b - c) =4(k+m)= 4(k + m)⁠, so (a,c)∈R(a, c) \in R⁠. Thus RR is transitive.

Hence RR is an equivalence relation.

For b∈Ab \in A⁠, 0≤b≤120 \le b \le 12⁠, so ∣1−b∣≤11|1 - b| \le 11⁠. Then ∣1−b∣=0,4|1 - b| = 0, 4 or 88⁠, giving b=1,5,9b = 1, 5, 9 (as b≥0b \ge 0⁠).

The set of elements related to 1 is {1,5,9}\{1, 5, 9\}⁠.

(ii) Reflexive: for a∈Aa \in A⁠, a=aa = a⁠, so (a,a)∈R(a, a) \in R⁠. Thus RR is reflexive.

Symmetric: (a,b)∈R⇒a=b(a, b) \in R \Rightarrow a = b ⇒b=a⇒(b,a)∈R\Rightarrow b = a \Rightarrow (b, a) \in R⁠. Thus RR is symmetric.

Transitive: (a,b),(b,c)∈R(a, b), (b, c) \in R ⇒a=b, b=c\Rightarrow a = b,\ b = c ⇒a=c⇒(a,c)∈R\Rightarrow a = c \Rightarrow (a, c) \in R⁠. Thus RR is transitive.

Hence RR is an equivalence relation. Here (1,b)∈R  ⟺  b=1(1, b) \in R \iff b = 1⁠.

The set of elements related to 1 is {1}\{1\}⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Part (i) is the "divides the difference" pattern of Example 5 with 4 in place of 2: "∣a−b∣|a-b| is a multiple of 4" means a−b=4ka - b = 4k for an integer kk, and the three properties follow from 0=4⋅00 = 4\cdot 0⁠, −(4k)=4(−k)-(4k) = 4(-k) and 4k+4m=4(k+m)4k + 4m = 4(k+m)⁠. The elements related to 1 are those that differ from 1 by 0,4,8,…0, 4, 8, \dots and still lie in AA⁠: that is {1,5,9}\{1,5,9\}⁠. Part (ii), equality, is the smallest possible equivalence relation: each element is related only to itself, so the answer is {1}\{1\}⁠.

Given, to show and find, and the plan
Given
A={0,1,2,…,12}A = \{0, 1, 2, \dots, 12\} (13 integers) and two relations on it: (i) ∣a−b∣|a-b| is a multiple of 4; (ii) a=ba = b⁠.
To show
Each relation is reflexive, symmetric and transitive.
To find
In each case, the set {b∈A:(1,b)∈R}\{b\in A : (1,b)\in R\} of all elements related to 1.
Plan
Part (i): (1) remove the absolute value; (2)–(4) prove the three properties; (5) find every b∈Ab\in A with ∣1−b∣|1 - b| a multiple of 4. Part (ii): (1) prove the three properties of equality; (2) read off the elements equal to 1.

Basics you need

1Multiples of 4

An integer nn is a multiple of 4 when n=4kn = 4k for some integer kk⁠: …,−8,−4,0,4,8,…\dots,-8,-4,0,4,8,\dots⁠. 0 is a multiple of 4 (0=4⋅00 = 4\cdot0⁠), and nn is a multiple of 4 exactly when −n-n is. Basics: integers and remainders

2Reading the set AA

{x∈Z:0≤x≤12}\{x\in\Z : 0 \le x \le 12\} is the set of integers from 0 to 12 inclusive: {0,1,2,…,12}\{0,1,2,\dots,12\}⁠, 13 elements. Any answer must lie inside this set. Basics: sets

3The three properties and equivalence

Reflexive: (a,a)∈R(a,a)\in R for all aa⁠. Symmetric: (a,b)∈R⇒(b,a)∈R(a,b)\in R\Rightarrow(b,a)\in R⁠. Transitive: (a,b),(b,c)∈R⇒(a,c)∈R(a,b),(b,c)\in R\Rightarrow(a,c)\in R⁠. Basics: reflexive, symmetric, transitive

4"The set of all elements related to 1"

This is {b∈A:(1,b)∈R}\{b \in A : (1,b)\in R\}⁠, the equivalence class [1][1]⁠. For an equivalence relation, the elements of a class are all related to each other. Basics: equivalence classes

Part (i): ∣a−b∣|a-b| is a multiple of 4

  1. Remove the absolute value

    ∣a−b∣|a-b| is either a−ba - b or −(a−b)-(a-b)⁠, and a number is a multiple of 4 exactly when its negative is (Basic 1). So

    (a,b)∈R  ⟺  ∣a−b∣ is a multiple of 4  ⟺  a−b=4k for some integer k.\begin{aligned} (a,b)\in R &\iff |a-b| \text{ is a multiple of 4}\\ &\iff a - b = 4k \text{ for some integer } k. \end{aligned}
    The transitive step will add two differences, and signed differences add exactly while absolute values do not. For example 12−4=812 - 4 = 8 and 4−8=−44 - 8 = -4 add to 4=12−84 = 12 - 8⁠, but ∣8∣+∣−4∣=12≠∣12−8∣|8| + |-4| = 12 \ne |12-8|⁠. So we work with a−b=4ka - b = 4k⁠, where kk may be negative.
    If a−b=−4ja - b = -4j⁠, write it as 4(−j)4(-j)⁠: −j-j is still an integer, so it is still of the form 4k4k⁠.
  2. Reflexive

    For any a∈Aa\in A⁠, a−a=0=4⋅0a - a = 0 = 4\cdot 0⁠. So (a,a)∈R(a,a)\in R for every aa⁠, and RR is reflexive.

    Every element differs from itself by 0, and 0 is a multiple of 4 (with k=0k = 0⁠).
    0 is a multiple of every integer: 0=4⋅00 = 4\cdot 0⁠.
  3. Symmetric

    Suppose (a,b)∈R(a,b)\in R⁠, so a−b=4ka - b = 4k for an integer kk⁠. Then

    b−a=−(a−b)=−(4k)=4(−k),b - a = -(a-b) = -(4k) = 4(-k),

    and −k-k is an integer. So (b,a)∈R(b,a)\in R⁠, and RR is symmetric.

    Reversing a subtraction only changes its sign, and the negative of a multiple of 4 is again a multiple of 4. We started from (a,b)∈R(a,b)\in R and derived (b,a)∈R(b,a)\in R⁠.
    Integers are closed under negation: k∈Z⇒−k∈Zk\in\Z \Rightarrow -k\in\Z⁠.
  4. Transitive

    Suppose (a,b)∈R(a,b)\in R and (b,c)∈R(b,c)\in R⁠: a−b=4ka - b = 4k and b−c=4mb - c = 4m for integers k,mk, m⁠. Adding,

    a−c=(a−b)+(b−c)=4k+4m=4(k+m).a - c = (a-b) + (b-c) = 4k + 4m = 4(k+m).

    k+mk + m is an integer, so (a,c)∈R(a,c)\in R⁠, and RR is transitive. Hence RR is an equivalence relation.

    Adding the two equations cancels the middle element bb⁠, leaving exactly the difference we need. We use two letters kk and mm because the two differences need not be equal: in the chain 9,5,19, 5, 1 they are 44 and 44⁠, but in the chain 12,4,812, 4, 8 they are 88 and −4-4⁠.
    4k+4m=4(k+m)4k + 4m = 4(k+m)⁠, and the sum of two integers is an integer.
  5. Find every element related to 1

    We need all b∈Ab\in A with ∣1−b∣|1 - b| a multiple of 4. Since 0≤b≤120 \le b \le 12⁠, the difference ∣1−b∣|1-b| lies between 0 and 11, so the only possible multiples are 0, 4 and 8:

    bb0123456789101112
    ∣1−b∣|1-b|101234567891011

    Only b=1b = 1 (difference 0), b=5b = 5 (difference 4) and b=9b = 9 (difference 8) qualify. Equivalently, b−1=4kb - 1 = 4k gives b=1+4kb = 1 + 4k⁠: k=0,1,2k = 0, 1, 2 give 1,5,91, 5, 9⁠, while k=3k = 3 gives 13>1213 > 12 and k=−1k = -1 gives −3<0-3 < 0⁠, both outside AA⁠. So

    {b∈A:(1,b)∈R}={1,5,9}.\{b\in A : (1,b)\in R\} = \{1, 5, 9\}.
    {0, 4, 8, 12} 0 4 8 12 +4 +4 +4 {1, 5, 9} 1 5 9 +4 +4 {2, 6, 10} 2 6 10 +4 +4 {3, 7, 11} 3 7 11 +4 +4 gold row: class of 1 1, 5, 9 differ by 0, 4, 8 next: 13 and −3, but neither is in A four classes, no overlaps, together all 13 elements of A
    The 13 elements of AA sorted by RR⁠: each row is one equivalence class, and neighbours in a row differ by 4. The gold row is the class of 1, {1,5,9}\{1,5,9\}⁠. The four classes {0,4,8,12}\{0,4,8,12\}⁠, {1,5,9}\{1,5,9\}⁠, {2,6,10}\{2,6,10\}⁠, {3,7,11}\{3,7,11\} do not overlap and together contain all of AA⁠.
    "The set of all elements related to 1" means every bb in AA with (1,b)∈R(1,b)\in R⁠, so we must test every bb⁠, or argue that no other bb can work. The table does the first; the formula b=1+4kb = 1 + 4k does the second and shows why the list stops: the next candidates, 13 and −3-3⁠, are not in AA⁠. The class of 1 is the set of elements that leave remainder 1 when divided by 4.
    For an equivalence relation, the elements related to 1 form the class [1][1]⁠, and any two of them are related to each other: ∣5−9∣=4|5 - 9| = 4⁠, ∣1−9∣=8|1 - 9| = 8⁠. Basics: equivalence classes

Part (ii): a=ba = b

  1. Equality is reflexive, symmetric and transitive

    Reflexive: for every a∈Aa\in A⁠, a=aa = a⁠, so (a,a)∈R(a,a)\in R⁠.
    Symmetric: if (a,b)∈R(a,b)\in R then a=ba = b⁠, so b=ab = a and (b,a)∈R(b,a)\in R⁠.
    Transitive: if (a,b)∈R(a,b)\in R and (b,c)∈R(b,c)\in R then a=ba = b and b=cb = c⁠, so a=ca = c and (a,c)∈R(a,c)\in R⁠.

    So RR is an equivalence relation.

    These are the three basic properties of equality itself: every number equals itself, an equation can be read backwards, and two numbers equal to the same number are equal. This relation is R={(0,0),(1,1),…,(12,12)}R = \{(0,0),(1,1),\dots,(12,12)\}⁠, the identity relation on AA⁠, with exactly 13 pairs.
    Reflexive, symmetric, transitive: Definition 3; equivalence relation: Definition 4 (Section 1.2).
  2. Find every element related to 1

    (1,b)∈R(1,b)\in R means 1=b1 = b⁠. The only such bb is 1 itself, so

    {b∈A:(1,b)∈R}={1}.\{b\in A : (1,b)\in R\} = \{1\}.
    Under equality, each element is related to nothing but itself. So every equivalence class has one element: [0]={0}[0] = \{0\}⁠, [1]={1}[1] = \{1\}⁠, and so on, 13 classes in all. Compare with part (i), where 1 was also related to 5 and 9.
    Equality is the smallest equivalence relation on any set: every equivalence relation must contain all the pairs (a,a)(a,a)⁠, and equality contains nothing else.
Result

(i) R={(a,b):∣a−b∣ is a multiple of 4}R = \{(a,b) : |a-b| \text{ is a multiple of } 4\} is an equivalence relation on A={0,1,…,12}A = \{0,1,\dots,12\}⁠, and the set of elements related to 1 is {1,5,9}\{1, 5, 9\}. (ii) R={(a,b):a=b}R = \{(a,b) : a = b\} is an equivalence relation on AA⁠, and the set of elements related to 1 is {1}\{1\}. (Textbook answer: (i) {1,5,9}\{1, 5, 9\}⁠, (ii) {1}\{1\}⁠.)

Play this problem

Class Catcher, in the chapter’s Games tab. Level 4 is part (i) of this question: four baskets for |a − b| a multiple of 4. Play Class Catcher ↗

Check it with numbers

Part (i) on one chain: ∣9−5∣=4|9-5| = 4 and ∣5−1∣=4|5-1| = 4⁠, so (9,5)(9,5) and (5,1)(5,1) are in RR⁠; transitivity predicts (9,1)∈R(9,1)\in R⁠, and indeed ∣9−1∣=8=4⋅2|9 - 1| = 8 = 4\cdot 2⁠. ✓ Count the pairs of part (i): the four classes have sizes 4, 3, 3, 3, so RR has 42+32+32+32=16+27=434^2 + 3^2 + 3^2 + 3^2 = 16 + 27 = 43 ordered pairs out of 132=16913^2 = 169⁠. A computer check of all 13 values of bb and all 133=219713^3 = 2197 triples confirms the answers and the three properties for both relations.

Common mistakes
  1. Including 13 in the answer. ∣1−13∣=12|1 - 13| = 12 is a multiple of 4, but 13 is not in AA⁠, whose largest element is 12.
  2. Forgetting 1 itself. ∣1−1∣=0|1 - 1| = 0 is a multiple of 4, so 1 belongs to the set of elements related to 1.
  3. Forgetting 0 in AA⁠. AA starts at 0. Here it does not change the answer (∣1−0∣=1|1 - 0| = 1⁠), but it matters for the class {0,4,8,12}\{0,4,8,12\}⁠.
  4. Adding absolute values in the transitive proof. Work with a−b=4ka - b = 4k⁠, kk any integer, as in Step 1.
What to take away
  1. "nn divides a−ba - b" (or "∣a−b∣|a-b| is a multiple of nn") is always an equivalence relation on a set of integers. Its classes are the remainder groups 0,1,…,n−10, 1, \dots, n-1 on division by nn⁠.
  2. When finding "all elements related to xx", list the candidates x+nkx + nk and keep only those inside the given set.
  3. Equality is an equivalence relation with one-element classes; it sits inside every equivalence relation on the same set.

Every fact used, and where it comes from

FactUsed inSource
nn multiple of 4   ⟺  \iff −n-n multiple of 4; ∣n∣∈{n,−n}|n|\in\{n,-n\}Part (i) Step 1Definition of multiple; absolute value
Reflexive, symmetric, transitivePart (i) Steps 2–4; Part (ii) Step 1Definition 3, Section 1.2 (Lesson: types of relations)
Equivalence relationBoth partsDefinition 4, Section 1.2
0=4⋅00 = 4\cdot0⁠; −(4k)=4(−k)-(4k) = 4(-k)⁠; 4k+4m=4(k+m)4k+4m = 4(k+m)Part (i) Steps 2–4Integer arithmetic, closure of Z\Z
Same pattern with 2 in place of 4IdeaExample 5 (Lesson: equivalence relations)
The table of ∣1−b∣|1-b|⁠, the classes, the count 43Part (i) Step 5; CheckBrute-force check in the site's verification script
Answers {1,5,9}\{1,5,9\} and {1}\{1\}ResultAgrees with the textbook answer key
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →