GATE / CS ARCHIVE

SUBJECT COLLECTION

Discrete Mathematics · Sets, Relations & Functions

79 questions, newest first

GATE CSE has asked 79 questions on Sets, Relations & Functions (Discrete Mathematics) from 1992 to 2026, in 36 of the 46 papers; the most recent is in GATE CSE 2026 Set 2. In the last five years it carried 0.6 marks per 100-mark paper on average, against 1.4 since 2003. Since 2014 the questions have been 11 MCQ, 7 NAT and 4 MSQ. 8 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
Show
1 mark · MSQ
Report issue

Square-product equivalence relation

Sets, Relations & Functions

Question 26, GATE 2026: On {1,…,10}, define xRy when xy is an integer square. Select all valid properties: A reflexive; B symmetric; C transitive; D antisymmetric.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Givens and goal

On {1,…,10}, define xRy when xy is an integer square. Select all valid properties: A reflexive; B symmetric; C transitive; D antisymmetric.

Approach

Characterize each integer by the parity of its prime exponents.

Step-by-step solution

1. For every x, x·x=x² is a square; hence xRx and the relation is reflexive. If xy is a square, yx is the same product, proving symmetry.
2. For a prime p, let ep(x) be its exponent in x. The product xy is a square precisely when ep(x)+ep(y) is even for every p, equivalently when the two exponent parities agree for every p.
3. If xRy and yRz, the parity vector of x equals that of y and that of y equals that of z. Consequently x and z have equal parity vectors, so xz is square. This proves transitivity without assuming that a quotient of squares is automatically an integer square.
4. Antisymmetry would require x=y whenever both xRy and yRx. But 1 and 4 are distinct elements and 1×4=4 is square in both directions.
5. Thus A,B,C hold and D does not. The equivalence classes are {1,4,9}, {2,8}, {3}, {5}, {6}, {7}, {10}, providing a direct finite check.

Original paper, page 20 · Answer key

1 mark · MCQ
Report issue

Testing what surjective composition implies

Sets, Relations & Functions

Question 17, GATE 2025: Let g:A→B and f:B→C. Both f and f∘g are surjective. Which property must g have? A surjective; B injective; C bijective; D neither injectivity nor surjectivity is required.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Approach: Determine whether hitting every point of C requires hitting every point of B. Different points of B can share the same image under f, so it need not.
Construct a counterexample: A={1,2}, B={u,v}, C={w}. Define g(1)=g(2)=u and f(u)=f(v)=w. The function f is onto C because w has a preimage. The composition sends both elements of A to w, so it is also onto C.
However g is not injective, because its two inputs share the output u, and is not onto B, because v is missed. This single example refutes the necessary-property claims in A, B and C and establishes D.
Conceptually, g only needs to hit enough points of B to cover all f-fibres over C. The conclusion would differ if extra assumptions, such as injectivity of f, were supplied; none is supplied here.

Original paper, page 17 · Answer key

1 mark · NAT
Report issue

Bijections constrain finite-set sizes

Sets, Relations & Functions

Question 32, GATE 2024: Nonempty finite sets A and B admit bijections A→B and A×A→A∪B. How many different values of |A| are possible?
Tap to enlarge
Answer & solution

Official answer: 2

Approach: Turn the bijections into cardinality equations, use the range of the intersection size, and then prove that every remaining candidate is achievable.
1. The first bijection gives |A|=|B|=n for an integer n≥1. Put t=|A∩B|, so 0≤t≤n.
2. The second bijection gives |A×A|=|A∪B|. Therefore n²=2n−t.
3. Since t≥0, n²≤2n. Dividing by positive n yields n≤2. Thus only n=1 and n=2 can work.
4. For n=1, choose A=B={a}. Then n²=1=|A∪B| and both bijections exist. For n=2, choose disjoint sets A={a,b} and B={c,d}; both A×A and A∪B have four elements, so a bijection exists between them.
Answer: 2 possible values. The question asks for the number of possible cardinalities, not the number of choices of the sets themselves.

Original paper, page 20 · Answer key

2 marks · MSQ
Report issue

Sets, Relations & Functions

Question 49, GATE 2023: For surjection f:A→B on nonempty sets, define x~y iff f(x)=f(y), and let E be its equivalence classes. Define F:E→B by F([x])=f(x). Select true claims: A not well-defined; B surjective; C injective; D bijective.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C, D

F is well-defined because all representatives of one class have the same f-value. It is onto because every b∈B has an f-preimage x and hence class[x]. If F([x])=F([y]), then f(x)=f(y), so x~y and[x]=[y], proving injectivity. Therefore F is bijective as well. Answer B, C, D.

Teaching detail. The equivalence classes are exactly the nonempty fibers f−1({b}). Replacing x with another representative of its class cannot change f(x), which proves the mapping is legitimate before discussing injectivity. Surjectivity of the original f ensures that no element of B lacks a fiber. Distinct classes cannot map to the same b, because that would make their representatives equivalent and hence put them in the same class. The construction collapses the only source of noninjectivity of f, turning the induced mapping into a bijection.

Original paper, page 52 · Answer key

2 marks · MSQ
Report issue

Sets, Relations & Functions

Question 43, GATE 2021: A relation R is circular when aRb and bRc imply cRa. Select the sufficient conditions for a relation S to be an equivalence relation: A reflexive and symmetric; B circular and symmetric; C reflexive and circular; D transitive and circular.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C

If S is reflexive and circular, aSb together with bSb implies bSa, establishing symmetry. If aSb and bSc, circularity gives cSa, and symmetry then gives aSc; hence S is transitive as well, proving C. Reflexive and symmetric need not imply transitive: take all loops on {1, 2, 3}, pairs (1, 2),(2, 1),(2, 3),(3, 2), but omit (1, 3). This refutes A. The empty relation on a nonempty set is circular, symmetric and transitive but not reflexive, refuting B and D.

An equivalence relation must satisfy three independent obligations: reflexivity, symmetry, transitivity. Under C, reflexivity supplies bSb to combine with aSb and derive bSa by circularity. Once symmetry is established, aSb and bSc give cSa by circularity and then aSc by symmetry. The empty relation on any nonempty set satisfies every implication whose premise requires an existing pair, so it is circular, symmetric and transitive vacuously, yet it fails all reflexive loops. This explains both B and D counterexamples.

Original paper, page 35 · Answer key

1 mark · MSQ
Report issue

Sets, Relations & Functions

Question 11, GATE 2021: For n≥2, S1 is all n×n matrices over {a,b,c}; S2 is all functions {0,1,…,n²−1}→{0,1,2}. Select: A no bijection S1→S2; B a surjection exists; C a bijection exists; D no injection exists.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B; C

There are 3n² matrices because each of n² entries has 3 choices. There are also 3n² functions from an n²-element domain to a 3-element codomain. A direct bijection reads matrix entries in a fixed order and maps a, b, c to 0, 1, 2. A bijection is also a surjection and an injection, so B, C.

Explicitly index matrix position (i,j), for zero-based i,j, by i*n+j. Map its symbol a,b,c to the function value 0,1,2. The inverse reconstructs each entry from that value, proving both injectivity and surjectivity without relying only on equal counts. A and D negate properties that this construction supplies.

Original paper, page 61 · Answer key

1 mark · NAT
Report issue

Sets, Relations & Functions

Question 17, GATE 2020: Choose uniformly from all binary relations on {1,2,3}. What is the probability the relation is reflexive, to three decimal places?
Tap to enlarge
Answer & solution

Official answer: 0.125

Worked explanation

A binary relation is any subset of A×A. With |A|=3 there are nine ordered pairs, not three unordered pairs. Every pair can be included or omitted independently, yielding 512 subsets. Reflexivity requires (1,1),(2,2),(3,3) to be present; the other six bits remain free, yielding 64 favorable relations. The ratio is 64/512=0.125. Equivalently the three required diagonal bits each have probability 1/2, so their conjunction has probability (1/2)³. Symmetry and transitivity are not required.

Derivation and answer

There are 2⁹ binary relations on a three-element set. Reflexivity fixes the three diagonal pairs as present, leaving six arbitrary choices and 2⁶ relations. Under uniform random selection the probability is 2⁶/2⁹=1/8=0.125.

Original paper, page 8 · Answer key

1 mark · MCQ
Report issue

Counting a subset with a marked member

Sets, Relations & Functions

Question 5, GATE 2019: Let U = {1,…,n} and A contain pairs (x,X) with X a subset of U and x a member of X. Statement I claims |A| = n·2^(n−1). Statement II claims |A| = sum from k=1 to n of k·C(n,k). Decide whether only I, only II, both, or neither is true; these are choices A, B, C, D respectively.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Method: count the same objects in two different orders.

1. First choose the marked member x. There are n choices. Its membership in X is then compulsory, but each of the other n − 1 elements may independently be included or excluded.
2. Consequently there are 2n−1 subsets X for each chosen x, and n·2n−1 pairs overall. Statement I is true.
3. Alternatively, fix the subset size k. There are C(n,k) ways to choose X, and then k choices for its marked member x. This contributes k·C(n,k) pairs.
4. Sum over k = 1,…,n. The empty subset contributes no pair because it has no member to mark. This gives the expression in II, so II is also true.

Result: C, both statements. This is a double-counting proof of the identity sum k·C(n,k) = n·2n−1; it also explains why merely counting all 2n subsets would miss the possible choices of x.

Original paper, page 4 · Answer key

1 mark · MCQ
Report issue

Equivalence relations on an arbitrary group

Sets, Relations & Functions

Question 10, GATE 2019: In an arbitrary group G, relation R1 is a R1 b iff a = g^−1bg for some g∈G. Relation R2 is a R2 b iff a = b^−1. Which are necessarily equivalence relations? Choices: A both; B R1 only; C R2 only; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Method: verify reflexivity, symmetry, and transitivity for conjugacy, then seek a counterexample for the inverse relation.

1. R1 is reflexive: taking g to be the identity e gives a = e−1ae.
2. R1 is symmetric: if a = g−1bg, rearrange to b = gag−1. This has the required form h−1ah with h = g−1.
3. R1 is transitive: if a = g−1bg and b = h−1ch, substitute to obtain a = g−1h−1chg = (hg)−1c(hg). Thus a R1 c.
4. R2 need not even be reflexive. In the cyclic group of order three, let u be a nonidentity generator. Then u−1 = u² ≠ u, so u is not related to itself by R2. One failure of reflexivity is enough to disprove that R2 is necessarily an equivalence relation.

Result: B, R1 only. R2 can be an equivalence relation in special groups where every element equals its inverse, but “arbitrary group” requires the claim to hold for every group.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Countable sets of numbers and functions

Sets, Relations & Functions

Question 27, GATE 2018: Let P be the rationals; Q the functions {0,1}→N; R the functions N→{0,1}; S the finite subsets of N. Which are countable? A Q,S; B P,S; C P,R; D P,Q,S.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Method

A function on two inputs is completely specified by the pair (f(0),f(1)), so Q is in bijection with N² and can be enumerated diagonally. A finite subset can be written as an increasing finite tuple; for each length these tuples are countable, and there are countably many lengths. In contrast a function in R specifies an infinite binary sequence. Cantor diagonalization constructs a sequence differing from the nth listed sequence at position n, defeating any proposed enumeration.

Solution

Rationals are countable. Functions from{0, 1} to N correspond to ordered pairs of naturals, a countable set. Finite subsets of N are a countable union over subset size of countable collections. Functions N→{0, 1} correspond to arbitrary subsets of N and are uncountable by Cantor’s theorem. Thus P, Q, S, D.

Original paper, page 11 · Answer key

2 marks · NAT
Report issue

Sets, Relations & Functions

Question 28, GATE 2016: A function f from positive integers to positive integers satisfies f(n)=f(n/2) for even n and f(n)=f(n+5) for odd n. If R is its set of attained values, what is the maximum possible size of R?
Tap to enlarge
Answer & solution

Official answer: 2.0 : 2.0

Our answer: 2

For even n halve n. For odd n>5, applying the odd rule and then halving sends n to(n+5)/2<n. Thus every value eventually reaches 1..5. The numbers 1, 2, 3, 4 are connected by the cycle 1→6→3→8→4→2→1, while 5→10→5 forms another component. Divisibility by 5 is invariant under both rule equalities, so these components never merge. A function constant 1 on nonmultiples of 5 and constant 2 on multiples satisfies both rules and realizes two values. Therefore the maximum range size is 2.

The equations force f to be constant on connected components generated by the permitted transformations. Descent shows there are at most two components, while the divisibility-by 5 invariant proves that they cannot merge. For an odd n,5 divides n+5 exactly when it divides n; for an even n, halving preserves divisibility by 5 because 2 is invertible modulo 5. Assigning two different positive values to these two classes supplies an explicit function attaining the upper bound, so this is a maximum rather than just an estimate.

Original paper, page 12 · Answer key

2 marks · MCQ
Report issue

Sets, Relations & Functions

Question 26, GATE 2016: On N×N define (a,b)R(c,d) iff a≤c or b≤d. P: reflexive; Q: transitive. A both; B P only; C Q only; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Reflexivity holds because a≤a. For nontransitivity choose x=(2, 2), y=(3, 1), z=(1, 1). xRy holds via 2≤3, yRz via 1≤1, but xRz fails both 2≤1 comparisons. Thus P true, Q false, B.

Transitivity requires one implication to hold for every triple; a single failed triple suffices to refute it. The OR permits one pair to be justified by its first coordinate and the next by its second coordinate. Those mixed justifications cannot be chained into either required inequality for the endpoints, unlike coordinatewise AND order.

Original paper, page 32 · Answer key

1 mark · MCQ
Report issue

Sets, Relations & Functions

Question 20, GATE 2015: A={5,{6},{7}} and P(A)=2^A. Evaluate I ∅∈P(A); II ∅⊆P(A); III {5,{6}}∈P(A); IV {5,{6}}⊆P(A). A I and III; B II and III; C I,II,III; D I,II,IV.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Membership in P(A) means being a subset of A. Thus I holds because the empty set is a subset of A, and III holds because both 5 and {6} are elements of A. II uses the independent fact that the empty set is a subset of every set. IV would require each of its elements, including the number 5, to be an element of P(A); this is false in the intended elementary set model. Do not interchange ∈ and ⊆.

Solution: The empty set is a subset of every set and belongs to every power set. The set{5,{6}} is a subset of A, so belongs to P(A). But it is not a subset of P(A), since its element 5 is not a subset of A. Therefore I, II, III, C.

Original paper, page 9 · Answer key

1 mark · NAT
Report issue

Sets, Relations & Functions

Question 12, GATE 2015: Find the cardinality of the power set of{0, 1, 2, …, 10}.
Tap to enlarge
Answer & solution

Official answer: 2048

The set has 11 elements, each independently included or omitted in a subset. Its power set therefore has 211=2048 members.

The set includes both endpoints 0 and 10, so its size is 11, not 10. A subset is determined by 11 independent yes/no inclusion decisions. There are 2 choices for each element, so multiplication gives 211=2048. This counts the empty subset and the full subset as well as all intermediate sizes; equivalently, sum the binomial coefficients C(11, k).

Original paper, page 31 · Answer key

1 mark · MCQ
Report issue

Sets, Relations & Functions

Question 13, GATE 2015: On positive integers, aRb iff a≠b and a, b share a divisor other than 1. Which properties? A symmetric/reflexive/not transitive; B reflexive/not symmetric/not transitive; C transitive/not reflexive/not symmetric; D symmetric/not reflexive/not transitive.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Common-divisor sharing and distinctness are symmetric. No aRa is allowed, so the relation is not reflexive. For example 2R6 and 6R3 hold, but 2R3 fails. Thus symmetric, nonreflexive, nontransitive, D.

If a, b share a nonunit divisor, then b, a share the same divisor, and distinctness is also symmetric. Reflexivity fails for every a because the definition expressly excludes a=b. For transitivity, use 2, 6, 3:2 and 6 share 2, and 6 and 3 share 3, but 2 and 3 are coprime. A single triple disproves transitivity. Thus D lists exactly the verified properties.

Original paper, page 31 · Answer key

2 marks · NAT
Report issue

Sets, Relations & Functions

Question 58, GATE 2015: How many onto functions exist from a four-element set to a three-element set?
Tap to enlarge
Answer & solution

Official answer: 36

There are 34 total functions. Exclude functions omitting at least one codomain value by inclusion-exclusion: 34−C(3, 1)24+C(3, 2)14=81−48+3=36. Equivalently choose the repeated pair of domain elements in 6 ways, its image in 3 ways and assign the other two images in 2 ways.

There are 3⁴=81 functions in total. For each of the three codomain elements, 2⁴=16 functions omit it. Subtract 3·16, then restore the three intersections where only one codomain element is used. The result is 81−48+3=36. Equivalently, an onto function must have fiber sizes 2, 1, 1: choose the repeated pair in C(4, 2)=6 ways, its image in 3 ways and assign the remaining two images in 2 ways. Both counts give 36.

Original paper, page 48 · Answer key

2 marks · NAT
Report issue

Sets, Relations & Functions

Question 59, GATE 2015: Choose uniformly from all functions from a two-element set to a twenty-element set. Find the probability that the function is one-to-one.
Tap to enlarge
Answer & solution

Official answer: 0.95

The first domain element has 20 possible images and the second must choose one of the remaining 19 for injectivity. Among 20² equally likely functions, 20*19 are injective, giving 19/20=0.95.

The first domain element may map to any of 20 values. Of the 20 choices for the second, exactly 19 differ from the first. Uniform independent choices among all 20² functions therefore give 20·19/20²=19/20=0.95. The number 20·19 is a count of injective functions, not the requested probability. The uniformity over all functions is essential to this simple ratio.

Original paper, page 49 · Answer key

1 mark · MCQ
Report issue

Sets, Relations & Functions

Question 12, GATE 2015: Let S={1,2,3,4,5,6}, U be its power set, |T| denote cardinality, T′ denote complement relative to S, and T\R denote set difference. Which statement is true? (A) For every X∈U, |X|=|X′|. (B) There exist X,Y∈U with |X|=|Y|=5 and X∩Y=∅. (C) For every X,Y∈U, |X|=2, |Y|=3 and X\Y=∅. (D) For every X,Y∈U, X\Y=Y′\X′.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. For A, take X=∅: its size is 0 while its complement has size 6. For B, inclusion-exclusion gives |X∩Y|≥5+5−6=4, so disjointness is impossible. For C, its universal cardinality claims already fail at X=∅; even restricting to sizes 2 and 3 does not force containment, e.g. X={1,2}, Y={3,4,5}.

2. For any element t, t∈X\Y iff t∈X and t∉Y iff t∈Y′ and t∉X′, hence X\Y=Y′\X′. Thus D. Equal complement sizes need not hold, two 5-subsets of a 6-set cannot be disjoint, and arbitrary 2/3-subsets need not satisfy the proposed containment.

Original paper, page 57 · Answer key

2 marks · MCQ
Report issue

Sets, Relations & Functions

Question 60, GATE 2015: R is a relation on ordered pairs of positive integers, with ((p,q),(r,s))∈R iff p−s=q−r. Which description is correct? (A) reflexive and symmetric; (B) reflexive but not symmetric; (C) not reflexive but symmetric; (D) neither reflexive nor symmetric.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. The condition p−s=q−r is equivalent to p+r=q+s, unchanged by swapping the two ordered pairs; the relation is symmetric.

2. Reflexivity at(p, q) would require 2p=2q, which fails for example at(1, 2). Thus it is not reflexive but is symmetric, C.

Original paper, page 77 · Answer key

2 marks · NAT
Report issue

Sets, Relations & Functions

Question 50, GATE 2014: Let S be the set of functions f:{0,1}⁴→{0,1}. Let N be the number of functions from S to {0,1}. Find log₂(log₂ N).
Tap to enlarge
Answer & solution

Official answer: 16

1. Method and setup. For a function from an m-element domain to {0,1}, each input independently chooses one of two outputs, so there are 2ᵐ functions. Apply this rule twice: first to the sixteen four-bit inputs, then to the resulting set of Boolean functions. Keep the two exponentiation levels distinct before taking logarithms.

2. Work through the result and its assumptions. The domain{0, 1}^4 has 16 elements, so S contains 216 Boolean functions. The number of functions from S to{0, 1} is N=22^16. Therefore log2(log2 N)=16.

Original paper, page 20 · Answer key

1 mark · MCQ
Report issue

Sets, Relations & Functions

Question 2, GATE 2014: For finite sets X,Y and a function f:X→Y, which statement always holds? A For A,B⊆X, |f(A∪B)|=|f(A)|+|f(B)|. B For A,B⊆X, f(A∩B)=f(A)∩f(B). C For A,B⊆X, |f(A∩B)|=min{|f(A)|,|f(B)|}. D For S,T⊆Y, f⁻¹(S∩T)=f⁻¹(S)∩f⁻¹(T). Here inverse notation denotes preimage.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step 1: Test D elementwise: x belongs to f⁻¹(S∩T) exactly when f(x) belongs to both S and T. This is equivalent to x belonging to both preimages, proving D. Step 2: A fails for equal nonempty A and B because their common image is counted twice. Step 3: For B and C, choose disjoint singleton sets A={a}, B={b} with f(a)=f(b). Their intersection has empty image, but both individual images are the same singleton. No injectivity assumption was given, so those identities need not hold.

Original paper, page 53 · Answer key

2 marks · MCQ
Report issue

Sets, Relations & Functions

Question 49, GATE 2014: Let f:{0,1,…,2014}→{0,1,…,2014} satisfy f(f(i))=i for every i. P: every such f fixes every i. Q: every such f fixes at least one i. R: every such f is onto. Which holds? A P,Q,R; B Q,R only; C P,Q only; D R only.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step 1: For any target i, the element f(i) maps to i, so f is onto. It is also injective because applying f to f(a)=f(b) gives a=b. Thus R holds. Step 2: The identity f²=id means each orbit is either a fixed point or a two-element swap. Since the domain has 2015 elements, swaps alone cannot partition it; at least one fixed point exists, proving Q. Step 3: P fails: swap 0 and 1 while fixing 2,…,2014. This still satisfies f(f(i))=i without fixing every element. Therefore Q and R only, B.

Original paper, page 65 · Answer key

2 marks · MCQ
Report issue

Surjections to a two-element codomain

Sets, Relations & Functions

Question 37, GATE 2012: How many onto (surjective) functions exist from an n-element set, n≥2, to a two-element set?
(A) 2^n (B) 2^n−1 (C) 2^n−2 (D) 2(2^n−2).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Each of n domain elements has two choices, giving 2n functions. A function is not onto precisely when all n elements map to one fixed codomain element. There are two such constant functions. Subtract them to obtain 2n−2 surjections, C.

Check: For n=2 the four functions are the two constants and the two bijections, leaving two onto functions. The formula 2²−2=2 passes this small-case check and explains why subtracting just one constant function is insufficient.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Counting reflexive relations

Sets, Relations & Functions

Question 3, GATE 2010: How many reflexive relations exist on a set with five elements?
Options: (A) 2^10; (B) 2^15; (C) 2^20; (D) 2^25.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

A relation on five elements is a subset of 25 ordered pairs. Reflexivity forces the five diagonal pairs to be present. Each of the other 20 pairs can independently be present or absent, giving 2²⁰ relations, C.

Label the elements 1,…,5 and draw a 5×5 Boolean relation matrix. All diagonal entries must be 1; the 20 off-diagonal entries are free binary choices. The answer is not 225 because that counts all relations, including nonreflexive ones. Reflexivity does not impose symmetry, so (i,j) and (j,i) remain independent choices.

Original paper, page 2

1 mark · MCQ
Report issue

Symmetry and antisymmetry of a relation

Sets, Relations & Functions

Question 4, GATE 2009: On {x, y, z}, R={(x, y), (x, z), (z, x), (z, y)}. Classify R: A symmetric but not antisymmetric; B antisymmetric but not symmetric; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

The pair(x, y) is present but(y, x) is absent, so the relation is not symmetric. Both(x, z) and(z, x) are present with x≠z, so it is not antisymmetric either. Therefore D.

Symmetry would require (y, x) whenever (x, y) belongs, but (y, x) is missing. Antisymmetry would forbid distinct elements relating both ways; here (x, z) and (z, x) are both present with x≠z. Hence each property fails by a concrete witness, giving D. Antisymmetry does not mean the logical negation of symmetry; it is a separate condition.

Original paper, page 2

1 mark · MCQ
Report issue

Set expression covers the universe

Sets, Relations & Functions

Question 2, GATE 2008: For subsets P,Q,R of universe U, simplify (P∩Q∩R)∪(Pᶜ∩Q∩R)∪Qᶜ∪Rᶜ.

(A) Qᶜ∪Rᶜ
(B) P∪Qᶜ∪Rᶜ
(C) Pᶜ∪Qᶜ∪Rᶜ
(D) U
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Distribute the common intersection: (P∩Q∩R)∪(Pᶜ∩Q∩R)=(P∪Pᶜ)∩Q∩R=Q∩R.
2. De Morgan gives Qᶜ∪Rᶜ=(Q∩R)ᶜ.
3. A set union its complement is U, giving D. The result is independent of P.

Original paper, page 2

1 mark · MCQ
Report issue

Largest and smallest equivalence relations

Sets, Relations & Functions

Question 2, GATE 2007: A set S has n elements. How many ordered pairs belong to the largest and smallest equivalence relations on S, respectively?
Options:
(A) n and n
(B) n² and n
(C) n² and 0
(D) n and 1
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Approach. An equivalence relation must be reflexive, symmetric and transitive. Test the two extremes: all possible pairs, and only the n self-pairs.

2. Derivation and interpretation. The universal relation S×S is an equivalence relation with n² pairs. Reflexivity requires every diagonal pair (s,s), and those n pairs alone form the identity equivalence relation. Hence the largest and smallest counts are n² and n, B.

Original paper, page 2

1 mark · MCQ
Report issue

Functions into a power set

Sets, Relations & Functions

Question 2, GATE 2006: Sets X,Y,Z have cardinalities x,y,z. Let W=X×Y and E be the power set of W. How many functions Z→E exist? The reproduced options use uppercase Z where the cardinality z is intended.
Options:
(A) z^(2^(xy))
(B) z·2^(xy)
(C) z^(2^(x+y))
(D) 2^(xyz)
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. The Cartesian product has xy elements, so its power set has 2xy elements. For each of the z domain elements, independently choose one image.

2. This gives(2xy)z=2xyz, option D, with the usual empty-domain convention.

3. Teaching check: For one argument in Z there are 2xy possible output subsets, including the empty subset. Choosing images for different arguments does not impose injectivity or surjectivity. This is the general counting rule |codomain|^|domain|, not |domain|^|codomain|.

Original paper, page 1

1 mark · MCQ
Report issue

Strict relation on integer pairs

Sets, Relations & Functions

Question 4, GATE 2006: On ordered pairs of integers define (x,y)R(u,v) iff x<u and y>v. Classify R, with partial order understood in the usual reflexive sense.
Options:
(A) Neither a partial order nor an equivalence relation
(B) A partial order but not a total order
(C) A total order
(D) An equivalence relation
Tap to enlarge
Your answer
Answer & solution

Answer: A under the reflexive partial-order convention (no official key was published)

1. For every pair(x,y), x<x is false, so the relation is not reflexive. It is therefore neither an equivalence relation nor a reflexive partial order, A.

2. It is transitive and irreflexive, hence a strict partial order in terminology that explicitly distinguishes strict orders; it is not total because pairs with equal first coordinate are incomparable.

3. Teaching check: To test reflexivity, substitute the very same pair on both sides. The required inequalities become x<x and y>y, both false. Although transitivity holds by chaining strict inequalities, transitivity alone does not meet the definition of a reflexive partial order.

Original paper, page 1

2 marks · MCQ
Report issue

Equality of set differences

Sets, Relations & Functions

Question 22, GATE 2006: For finite sets E,F,G, put X=(E∩F)−(F∩G) and Y=(E−(E∩G))−(E−F). Which relation holds? Strict containment is intended in A and B.
Options:
(A) X⊂Y
(B) X⊃Y
(C) X=Y
(D) Both X−Y and Y−X are nonempty
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. X=(E∩F)∖(F∩G)=E∩F∩Gᶜ. Also E∖(E∩G)=E∩Gᶜ; subtracting E∖F then retains exactly its elements in F.

2. Thus Y=E∩F∩Gᶜ=X, C. The strict-containment alternatives do not apply.

3. Teaching check: An element belongs to X precisely when it is in E and F but not G. For Y, first discard from E everything in G, then discard everything outside F. Both constructions retain the same three simultaneous membership conditions.

Original paper, page 3

2 marks · MCQ
Report issue

Counting set incidences twice

Sets, Relations & Functions

Question 25, GATE 2006: Let S={1,…,m}, m>3. Let X₁,…,Xₙ be subsets of S, each containing exactly three elements. Define f(i)=|{j:i∈Xⱼ}|. Evaluate Σᵢ₌₁ᵐ f(i).
Options:
(A) 3m
(B) 3n
(C) 2m+1
(D) 2n+1
Question 25, GATE 2006: Let S={1,…,m}, m>3. Let X₁,…,Xₙ be subsets of S, each containing exactly three elements. Define f(i)=|{j:i∈Xⱼ}|. Evaluate Σᵢ₌₁ᵐ f(i).
Options:
(A) 3m
(B) 3n
(C) 2m+1
(D) 2n+1
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Sum f(i) over all elements i. Each of the n three-element subsets contributes exactly 3 incidences, so the total is 3n, B.

2. This remains true if some of the listed subsets coincide.

3. Teaching check: Count the same incidence pairs (i,j) with i∈Xⱼ in two ways. Counting by elements gives Σf(i); counting by subsets gives three incidences per Xⱼ. The parameter m controls the universe, but the total depends on n, the number of triples.

Original paper, page 3

2 marks · MCQ
Report issue

Set represented by Boolean exclusive-or

Sets, Relations & Functions

Question 50, GATE 2006: Represent X,Y⊆{0,…,n−1} with Boolean membership arrays x,y. For each i set z[i]=(x[i]∧¬y[i])∨(¬x[i]∧y[i]). Which set does z represent?
Options:
(A) X∪Y
(B) X∩Y
(C) (X−Y)∩(Y−X)
(D) (X−Y)∪(Y−X)
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. The assignment is z[i]=(x[i] AND NOT y[i]) OR (NOT x[i] AND y[i]). It is true exactly when i belongs to one of X and Y but not both.

2. Hence Z=(X−Y)∪(Y−X), option D.

3. Teaching check: The two terms are disjoint: one means membership in X only, the other membership in Y only. If both input bits are zero or both are one, z is zero. This is Boolean exclusive-or and set symmetric difference, not ordinary union.

Original paper, page 7

1 mark · MCQ
Report issue

Nested set differences

Sets, Relations & Functions

Question 8, GATE 2005: For nonempty sets A, B, C, let X=(A−B)−C and Y=(A−C)−(B−C). Choose A X=Y; B X is a proper subset of Y; C Y is a proper subset of X; D none.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

X=(A∖B)∖C=A∩Bᶜ∩Cᶜ. In Y=(A∖C)∖(B∖C), an element already outside C is removed exactly when it belongs to B. Hence Y=A∩Bᶜ∩Cᶜ=X, A.

Membership in X means being in A but neither B nor C. For Y, first exclude C from A. On those remaining elements, membership in B−C is exactly membership in B because C has already been excluded. Removing B−C therefore removes precisely the B-members, leaving the same A∩Bᶜ∩Cᶜ as X. Hence A, even though the original sets need not be disjoint.

Original paper, page 1

2 marks · MCQ
Report issue

Intersection of equivalence relations

Sets, Relations & Functions

Question 42, GATE 2005: R, S are equivalence relations on nonempty A. Which is guaranteed? A both union/intersection equivalent; B union; C intersection; D neither.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

R∩S is reflexive and symmetric because both relations are; if x(R∩S)y and y(R∩S)z, both transitivity rules give x(R∩S)z. Union need not be transitive: partitions {1, 2}|{3} and {1}|{2, 3} yield 1 related to 2 and 2 to 3 in the union but not 1 to 3. Thus only intersection is guaranteed, C.

Intersection preserves each defining property because a related pair must belong to both relations. Reflexivity and symmetry pass through immediately; chaining two intersection pairs permits transitivity in both R and S, hence in their intersection. Union can chain one edge from R and another from S without containing the resulting third edge. The three-element partition counterexample above shows why B/A are not guaranteed.

Original paper, page 5

2 marks · MCQ
Report issue

Surjectivity of a composition

Sets, Relations & Functions

Question 43, GATE 2005: Functions f:B→C, g:A→B have onto composite f∘g. Choose A both must be onto; B f must but g need not; C g must but f need not; D neither must.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Since f(g(A))=C and g(A)⊆B, f(B)=C, so f is onto. But g need not cover all of B: take A={a}, B={b1, b2}, C={c}, g(a)=b1 and f(b1)=f(b2)=c. Hence B.

For every c in C, surjectivity of the composite provides an a with f(g(a))=c. Since g(a) is some element of B, this proves f is onto C. It does not require reaching all elements of B; unused B-elements may map to already-covered outputs. The one-element A and two-element B counterexample above proves g need not be onto, selecting B.

Original paper, page 5

1 mark · MCQ
Report issue

Reflexive transitive closure of successor

Sets, Relations & Functions

Question 24, GATE 2004: On the nonnegative integers, S={(x,y):y=x+1}. Find its reflexive transitive closure. GFG prints the domain {0,1,2,…}; GateForum omits the ellipsis and prints {0,1,2}, for which the same order condition applies restricted to that finite domain.
Options:
(A) {(x,y):y>x}
(B) {(x,y):y≥x}
(C) {(x,y):y<x}
(D) {(x,y):y≤x}
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. A path of k successor steps takes x to x+k, for any integer k≥0. Zero steps supply reflexivity.

2. Thus the closure is{(x,y):y≥x, x,y nonnegative integers}, B.

3. Teaching check: Reflexive closure adds (x,x); transitivity adds (x,x+2),(x,x+3), and all later successors. No operation can create a pair with y<x because every original step increases the value.

Original paper, page 3

2 marks · MCQ
Report issue

Image of a preimage

Sets, Relations & Functions

Question 37, GATE 2003: An injective map f:A→B induces g:2^A→2^B by g(C)={f(x):x∈C} and h:2^B→2^A by h(D)={x∈A:f(x)∈D}. Which holds for every D⊆B? A. g(h(D))⊆D; B. g(h(D))⊇D; C. g(h(D))∩D=∅; D. g(h(D))∩(B−D)≠∅.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. An element b is in g(h(D)) exactly when b=f(a) for some a∈A whose image lies in D. This requires both b∈f(A) and b∈D, yielding D∩f(A). A value in D outside the image is never recovered, so injectivity does not justify the reverse containment.

2. h(D)=f-1(D), so g(h(D))=f(f-1(D))=D∩f(A), which is always a subset of D. Thus A. Equality need not hold because f is injective but not assumed onto B. This inclusion actually holds even without injectivity.

Original paper, page 5

2 marks · MCQ
Report issue

Properties of the empty binary relation

Sets, Relations & Functions

Question 2.17, GATE 2002: Let S be the empty binary relation on A={1,2,3}. Which description applies?
(A) Neither reflexive nor symmetric; (B) Symmetric and reflexive; (C) Transitive and reflexive; (D) Transitive and symmetric.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step 1: Apply the quantified definitions.

Step 2: Symmetry says every(a,b) in S has(b,a) in S; there is no(a,b) to violate it. Transitivity says any(a,b),(b,c) in S imply(a,c); again no antecedent occurs. Reflexivity instead positively requires(1,1),(2,2),(3,3), all missing. Thus vacuous truth applies to the first two properties but not the third.

Conclusion: Symmetry and transitivity are implications whose antecedents require relation pairs. With no pairs both properties hold vacuously. Reflexivity fails on the nonempty set{1,2,3} because no diagonal pairs occur. Thus D.

Original paper, page 5

Descriptive
Report issue

Count binary relations on a finite set

Sets, Relations & Functions

Question 3(a), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Express Nᵣ in terms of n.
Question 3(a), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Express Nᵣ in terms of n.
Tap to enlarge
Shared context

A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.

Answer & solution

Answer: N_r = 2^(n²) (no official key was published)

1. Identify what is being counted. A binary relation on a set A is any subset R of A × A; there are no requirements such as reflexivity or symmetry in this question.

2. Count the possible ordered pairs. The first coordinate has n choices and the second also has n choices. The product rule therefore gives |A × A| = n². Reversed pairs are distinct when their coordinates differ.

3. Make an independent yes/no decision for every pair. Each of the n² pairs can be included in R or omitted. Multiplying the two choices for all pairs gives Nr = 2 × ⋯ × 2 = 2n².

4. Check the boundary case n = 1. If A = {a}, the two relations are ∅ and {(a,a)}. This agrees with 21² = 2. For n = 2 there are four possible pairs and therefore 16 relations.

Original paper, page 6

Descriptive
Report issue

Count self-maps of a finite set

Sets, Relations & Functions

Question 3(b), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Express N𝒻 in terms of n.
Question 3(b), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Express N𝒻 in terms of n.
Tap to enlarge
Shared context

A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.

Answer & solution

Answer: N_f = n^n (no official key was published)

1. Apply the definition of a total function. For every element x of the n-element set A, a function f:A → A must select exactly one image f(x). An element may not be left without an image, unlike an arbitrary relation.

2. Count the image choices. There are n possible values of f(x), because the codomain is also A. The images of different domain elements need not be distinct: the question counts all functions, not only injective functions.

3. Apply the product rule over the n domain elements. Independent choices give Nf = n × n × ⋯ × n = nn, with n factors.

4. Check a small example. For A = {a,b}, the ordered pair (f(a),f(b)) can be (a,a), (a,b), (b,a), or (b,b), giving 4 = 2² functions. Using n! would incorrectly discard the two constant functions.

Original paper, page 6

Descriptive
Report issue

Compare relation and function counts

Sets, Relations & Functions

Question 3(c), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Which is larger, Nᵣ or N𝒻, for every possible n?
Question 3(c), GATE 2002: A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Which is larger, Nᵣ or N𝒻, for every possible n?
Tap to enlarge
Shared context

A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.

Answer & solution

Answer: N_r > N_f for every integer n > 0 (no official key was published)

1. Recall both counts in this leaf. For an n-element nonempty set, the number of relations is Nr = 2n², and the number of total functions A → A is Nf = nn. We must compare them for every positive integer n, not just for large n.

2. Embed the functions into the relations. Map f to its graph {(x,f(x)):x ∈ A}. Different functions differ at some input and therefore have different graphs. This is an injection into the set of binary relations, proving Nf ≤ Nr.

3. Show the inequality is strict. The empty relation is a binary relation, but it cannot be the graph of a total function on a nonempty domain. Thus there is at least one relation outside the image of that injection.

4. Conclude Nr > Nf for every n > 0, including n = 1, where the counts are 2 and 1. Algebraically, the same comparison follows from 2n > n and raising both positive sides to the power n.

Original paper, page 6

Descriptive
Report issue

Complete a relation to an equivalence relation

Sets, Relations & Functions

Question 4(a), GATE 2002: On A={1,2,3}, let S={(1,2),(2,1)}. Is S irreflexive? Add as few ordered pairs as possible to make it an equivalence relation, and give the resulting relation.
Question 4(a), GATE 2002: On A={1,2,3}, let S={(1,2),(2,1)}. Is S irreflexive? Add as few ordered pairs as possible to make it an equivalence relation, and give the resulting relation.
Tap to enlarge
Shared context

Part (a) concerns S = {(1,2),(2,1)} on A = {1,2,3}. Part (b) separately concerns the power set of {a,b}, ordered by inclusion.

Answer & solution

Answer: Irreflexive; add (1,1), (2,2), (3,3), for 3 added pairs (no official key was published)

1. Test the original relation, not the completed relation. Here A = {1,2,3} and S = {(1,2),(2,1)}. Irreflexivity means (x,x) ∉ S for every x ∈ A. None of (1,1), (2,2), (3,3) is present, so the original S is irreflexive.

2. Obtain a lower bound on the additions. Any equivalence relation must be reflexive on all of A. Therefore all three missing diagonal pairs must be added; fewer than three additions cannot work.

3. Add exactly those necessary pairs. The candidate is S′ = {(1,1),(1,2),(2,1),(2,2),(3,3)}.

4. Verify every equivalence property. Reflexivity holds because all three diagonal pairs are present. Symmetry holds because the only non-diagonal pairs, (1,2) and (2,1), occur together. Transitivity holds because the pairs on {1,2} include every ordered pair within that class, while 3 relates only to itself. A chain of related elements therefore never crosses between the classes {1,2} and {3}.

5. Three additions are both necessary and sufficient. The minimum is 3, with completed relation S′ as above. The completed relation is reflexive; irreflexivity described the starting relation only.

Original paper, page 6

1 mark · MCQ
Report issue

Recognizing equivalence relations

Sets, Relations & Functions

Question 1.2, GATE 2001: Which relations are equivalence relations? R1 on integers: a+b is even; R2 on integers: a+b is odd; R3 on nonzero rationals: ab>0; R4 on natural numbers: |a−b|≤2. Options select R1/R2, R1/R3, R1/R4, or all four.
Question 1.2, GATE 2001: Which relations are equivalence relations? R1 on integers: a+b is even; R2 on integers: a+b is odd; R3 on nonzero rationals: ab>0; R4 on natural numbers: |a−b|≤2. Options select R1/R2, R1/R3, R1/R4, or all four.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: R1 means the integers have the same parity. Equality of parity is reflexive, symmetric and transitive, giving two equivalence classes. R3 means two nonzero rationals have the same sign, another equivalence relation.

Step 2: R2 is not reflexive because a+a is always even, never odd. R4 is not transitive: |1−3|≤2 and |3−5|≤2, but |1−5|>2.

Conclusion: Exactly R1 and R3 qualify, so B. Testing only symmetry would miss the failures in R2 and R4.

Original paper, page 1

2 marks · MCQ
Report issue

Existence statements about infinite sets and irrationals

Sets, Relations & Functions

Question 2.2, GATE 2001: Assess two existence claims: infinite sets A,B,C can have finite A∩(B∪C); irrational numbers x,y can have rational x+y. Choices distinguish only the first, only the second, both, or neither.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: Let A be the nonnegative even integers and B=C the positive odd integers. All three sets are infinite, while A∩(B∪C)=∅ is finite. Thus S1 is possible. The problem does not require B and C to differ.

Step 2: Choose x=√2 and y=−√2. Both are irrational and their sum is the rational number 0. Thus S2 also holds.

Therefore both existence statements are true, C. Infinite input sets need not have an infinite intersection, and irrational numbers can cancel.

Original paper, page 4

2 marks · MCQ
Report issue

Images of unions and intersections

Sets, Relations & Functions

Question 2.3, GATE 2001: For any function f:A→B and subsets E,F⊆A, assess f(E∪F)=f(E)∪f(F) and f(E∩F)=f(E)∩f(F). Choices distinguish only the first, only the second, both, or neither.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: A value lies in f(E∪F) exactly when it is f(x) for some x in E or F. This is exactly membership in f(E)∪f(F), proving S1 for every function.

Step 2: Intersection gives only f(E∩F)⊆f(E)∩f(F) in general. Take E={a},F={b},a≠b, and a constant function with f(a)=f(b)=0. The left side is empty, but the right side is{0}.

Thus S2 need not hold and only S1 is universally correct, A. Injectivity would make the intersection equality valid.

Original paper, page 4

Descriptive
Report issue

Power set of an intersection

Sets, Relations & Functions

Question 3(a), GATE 2001: Prove P(A∩B)=P(A)∩P(B).

Task: Prove the stated power-set identity.
Question 3(a), GATE 2001: Prove P(A∩B)=P(A)∩P(B).

Task: Prove the stated power-set identity.
Tap to enlarge
Shared context

Prove P(A∩B)=P(A)∩P(B).

Answer & solution

Answer: P(A∩B)=P(A)∩P(B). (no official key was published)

1. Prove equality by membership of an arbitrary set S, rather than by membership of an arbitrary element of A. Power sets contain sets.

2. If S∈P(A∩B), then S⊆A∩B. Every element of S consequently belongs to both A and B, so S⊆A and S⊆B. Therefore S∈P(A) and S∈P(B), hence S∈P(A)∩P(B).

3. Conversely, if S∈P(A)∩P(B), then S⊆A and S⊆B. Every element of S lies in both sets, so S⊆A∩B and S∈P(A∩B).

4. The two inclusions prove the identity, including when A or B is empty. In that case the empty subset remains an element of the relevant power sets.

Original paper, page 7

Descriptive
Report issue

Injectivity of an integer pairing map

Sets, Relations & Functions

Question 4(a), GATE 2001: N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Task: Prove that h is injective.
Question 4(a), GATE 2001: N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Task: Prove that h is injective.
Tap to enlarge
Shared context

N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Answer & solution

Answer: h is injective. (no official key was published)

1. Assume h(a,b)=h(c,d). Adding 1 gives (2a+1)2b=(2c+1)2d, where both parenthesized factors are odd positive integers.

2. If b<d, divide by 2b. The left side is odd and the right side, (2c+1)2d−b, is even, a contradiction. The symmetric argument rules out d<b.

3. Thus b=d. Cancelling 2b gives 2a+1=2c+1, so a=c.

4. Equality of images has forced equality of both coordinates, exactly the definition of injectivity. The argument also covers zero coordinates, since 20=1 and 2·0+1 is odd.

Original paper, page 7

Descriptive
Report issue

Surjectivity of an integer pairing map

Sets, Relations & Functions

Question 4(b), GATE 2001: N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Task: Prove that h is surjective.
Question 4(b), GATE 2001: N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Task: Prove that h is surjective.
Tap to enlarge
Shared context

N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Answer & solution

Answer: For n≥0, write n+1=u2^b with u odd; its preimage is ((u−1)/2,b). (no official key was published)

1. Take an arbitrary target n∈N. The positive integer n+1 can be repeatedly divided by 2 until an odd number u remains. This terminates because positive integers strictly decrease at each division.

2. If b divisions were made, then n+1=u2b, with b≥0 and u≥1 odd. Define a=(u−1)/2, which is a nonnegative integer.

3. Then h(a,b)=(2a+1)2b−1=u2b−1=n. Thus every target has a preimage in N×N, establishing surjectivity.

4. For example n=11 gives n+1=12=3·2², so (a,b)=(1,2). For n=0 the preimage is (0,0). Combined with injectivity, h is a bijection.

Original paper, page 7

2 marks · MCQ
Report issue

Equivalence classes of parity

Sets, Relations & Functions

Question 2.5, GATE 2000: On integers, define xRy when x+y is even. Is R not an equivalence relation, or does it have one,two,or three equivalence classes?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: x+y is even exactly when x and y have the same parity. Every integer has its own parity, parity matching is symmetric, and matching parity is transitive.

Step 2: The two classes are all even integers and all odd integers. Neither is empty, and no even integer relates to an odd one.

Hence R is an equivalence relation with exactly two classes, C.

Original paper, page 4

2 marks · MCQ
Report issue

Powerset statements

Sets, Relations & Functions

Question 2.6, GATE 2000: Which is always true? A P(P(S))=P(S); B P(S)∩P(P(S))={∅}; C P(S)∩S=P(S); D S∉P(S). Both reproductions visibly use nonmembership in D.
Tap to enlarge
Your answer
Answer & solution

Answer: No listed option is universally true as printed (no official key was published)

Step 1: D is always false, because every set is a subset of itself and therefore S∈P(S). A is false by Cantor’s theorem, or simply take S=∅, giving P(S)={∅} but P(P(S))={∅,{∅}}.

Step 2: B is not universal: with S={∅}, both ∅ and {∅} belong to P(S) and P(P(S)), so their intersection has two elements. C also fails for S=∅, since its left side is empty and right side is{∅}.

Therefore none is always true. Replacing ∉ by ∈ in D would repair it, but that alteration is not silently made or attributed to an official key.

Original paper, page 4

Descriptive
Report issue

All finite multisets

Sets, Relations & Functions

Question 5(b), GATE 2000: A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.

Task: How many multisets can be constructed, with no size bound stated?
Question 5(b), GATE 2000: A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.

Task: How many multisets can be constructed, with no size bound stated?
Tap to enlarge
Shared context

A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.

Answer & solution

Answer: Countably infinitely many for n≥1; one (the empty multiset) for n=0. (no official key was published)

1. A multiset is specified by its multiplicity vector (m₁,…,mₙ), each mᵢ a nonnegative integer. The question gives no upper bound on the sum.

2. For n≥1, using 0,1,2,… copies of the first type already gives infinitely many distinct multisets.

3. There are C(n+k−1,k) multisets of each fixed size k by stars and bars. A countable union over k≥0 of finite sets is countable, so the answer is countably infinite.

4. If size four had also been imposed here, the answer would instead be C(n+3,4). The printed part (b) does not impose that bound. With no element types, only the empty multiset exists.

Original paper, page 7

1 mark · MCQ
Report issue

Counting binary relations

Sets, Relations & Functions

Question 1.2, GATE 1999: How many binary relations exist on a set of n elements? Options: n,2^n,2^(n²),none.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

A binary relation is any subset of the Cartesian product S×S. There are n choices for each coordinate, hence n² ordered pairs. Each pair independently either belongs to the relation or does not. Multiplying the two choices over n² pairs gives 2n², C. No reflexivity, symmetry or function restriction is imposed; imposing one would change the count.

Original paper, page 1

3 marks · Descriptive
Report issue

Flaw in symmetry–transitivity proof

Sets, Relations & Functions

Question 3(a), GATE 1999: For a relation R on a set X, Mr. X claims symmetry and transitivity imply reflexivity. His proof starts with xRy, obtains yRx by symmetry, and then xRx by transitivity. Briefly identify the flaw. (This final instruction appears in GFG but is omitted from GateForum.)
Question 3(a), GATE 1999: For a relation R on a set X, Mr. X claims symmetry and transitivity imply reflexivity. His proof starts with xRy, obtains yRx by symmetry, and then xRx by transitivity. Briefly identify the flaw. (This final instruction appears in GFG but is omitted from GateForum.)
Tap to enlarge
Shared context

For a relation R on a set X, Mr. X claims symmetry and transitivity imply reflexivity. His proof starts with xRy, obtains yRx by symmetry, and then xRx by transitivity. Briefly identify the flaw.

Answer & solution

Answer: The proof assumes every x has some related y; symmetry and transitivity do not guarantee this. (no official key was published)

1. Reflexivity requires xRx for every x in the specified underlying set X. The proof must therefore start with an arbitrary x, not with an arbitrarily available related pair.

2. Its deductions from xRy are valid: symmetry gives yRx, and transitivity then gives xRx. What is unjustified is the premise that, for each x, there exists any y with xRy.

3. Thus the argument proves only: if x occurs as the first coordinate of some pair in R, then xRx. Elements outside that domain may have no related pairs at all.

4. For example, on X={0,1}, R={(0,0)} satisfies symmetry and transitivity but does not contain (1,1). Replacing the missing premise with an assumption that every x relates to some y would make the proposed proof valid.

Original paper, page 6

2 marks · Descriptive
Report issue

Symmetric transitive nonreflexive relation

Sets, Relations & Functions

Question 3(b), GATE 1999: Give a relation R that is symmetric and transitive but not reflexive. Specify its underlying set.
Question 3(b), GATE 1999: Give a relation R that is symmetric and transitive but not reflexive. Specify its underlying set.
Tap to enlarge
Shared context

Give a relation R that is symmetric and transitive but not reflexive. Specify its underlying set.

Answer & solution

Answer: On X={0,1}, take R={(0,0)}. (no official key was published)

Choose X={0,1} and R={(0,0)}. Symmetry holds because the reverse of its only pair is the same pair. For transitivity, if xRy and yRz hold, both pairs must be (0,0), so x=z=0 and the required pair xRz=(0,0) is in R. However, reflexivity on X would require both (0,0) and (1,1); the latter is absent.

The universe matters: this same relation would be reflexive on {0}. Alternatively, the empty relation on any nonempty set works, since symmetry and transitivity are vacuously true while at least one required diagonal pair is missing.

Original paper, page 6

1 mark · MCQ
Report issue

Largest equivalence relation

Sets, Relations & Functions

Question 1.6, GATE 1998: A has n elements. How many ordered pairs can its largest equivalence relation contain: n, n², 1, n+1?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Every relation on A is a subset of A×A, so its size is at most n². The whole product A×A is reflexive, symmetric and transitive: every pair is present. It is therefore an equivalence relation attaining that upper bound. Hence the largest has n² pairs, B. The diagonal identity relation contains only n pairs and is the smallest equivalence relation, not the largest.

Original paper, page 1

1 mark · MCQ
Report issue

Union and intersection of equivalences

Sets, Relations & Functions

Question 1.7, GATE 1998: For equivalence relations R1, R2 on one set, are their union and intersection necessarily equivalence relations?
Tap to enlarge
Your answer
Answer & solution

Answer: C: intersection only (no official key was published)

Intersection preserves reflexivity because each diagonal pair belongs to both; it preserves symmetry and transitivity because the required reversed or composed pair belongs to each relation. Union need not be transitive. On{1, 2, 3}, use partitions{1, 2}|{3} and{1}|{2, 3}. Their union contains (1, 2) and (2, 3), but not (1, 3). Thus intersection is always an equivalence, whereas union is not necessarily one, giving C. Some particular unions are equivalences; the question asks a general guarantee.

Original paper, page 1

2 marks · MCQ
Report issue

Relation with a missing diagonal

Sets, Relations & Functions

Question 2.3, GATE 1998: On{1, 2, 3, 4}, R={(1, 1), (2, 1), (2, 2), (2, 3), (2, 4), (3, 1), (3, 2), (3, 3), (3, 4)}. Classify reflexivity, irreflexivity and transitivity.
Tap to enlarge
Your answer
Answer & solution

Answer: B: neither reflexive nor irreflexive, but transitive (no official key was published)

Reflexivity fails because (4, 4) is absent. Irreflexivity fails because (1, 1), (2, 2), (3, 3) are present. For transitivity, if the first element is 1, its only successor is 1, so any composition stays at (1, 1). Elements 2 and 3 already relate to every possible target, so any composable second step remains in R. Element 4 has no outgoing pair and creates no requirement. Hence R is transitive, giving B. It is neither symmetric nor antisymmetric: (2, 1) lacks its reverse while (2, 3), (3, 2) are both present.

Original paper, page 4

Descriptive
Report issue

Repeated powers of a cycle relation

Sets, Relations & Functions

Question 10(b), GATE 1998: R consists of directed cycles a→b→c→a and d→e→f→g→h→d. Find the smallest integers m<n with R^m=R^n.
Question 10(b), GATE 1998: R consists of directed cycles a→b→c→a and d→e→f→g→h→d. Find the smallest integers m<n with R^m=R^n.
Question 10(b), GATE 1998: R consists of directed cycles a→b→c→a and d→e→f→g→h→d. Find the smallest integers m<n with R^m=R^n.
Tap to enlarge
Answer & solution

Answer: For positive powers: m=1,n=16. If R^0 is allowed: m=0,n=15. (no official key was published)

Each vertex has exactly one outgoing edge, so R is a permutation: a 3-cycle and a disjoint 5-cycle. Rt sends each vertex t positions forward around its component, because composition corresponds to a path of length t.

On the 3-cycle, Rm and Rn agree exactly when n−m is divisible by 3. On the 5-cycle, they agree exactly when n−m is divisible by 5. Both requirements hold precisely when 15=lcm(3,5) divides n−m. Necessity follows by inspecting even one vertex in each component; sufficiency follows because a multiple of a cycle's length returns every vertex to its starting position.

Thus R15 is the identity relation on the eight vertices, and R16=R. If powers are numbered from 1, the smallest first exponent is m=1 and the smallest later matching exponent is n=16. If the standard zeroth power R0=I is permitted, the earliest pair is instead (0,15). The printed wording says “integers” without explicitly restricting them to positive powers, so both conventions must be disclosed.

If one extends this permutation relation to negative powers and allows all integers, there is no smallest pair: (m,m+15) works for arbitrarily negative m. Ordinary relation-power questions use nonnegative or positive exponents.

It is incorrect to use 3+5=8 as the period: both components must return simultaneously, which requires a common multiple rather than a sum. Neither cycle contains a self-loop, and there are no cross-component edges; adding either would change the relation being analyzed.

Original paper, page 6

Descriptive
Report issue

Equivalence relation from a partition

Sets, Relations & Functions

Question 11(a), GATE 1998: For A={a,b,c,d} and partition Π1={{a,b,c},{d}}, list the induced equivalence relation.
Question 11(a), GATE 1998: For A={a,b,c,d} and partition Π1={{a,b,c},{d}}, list the induced equivalence relation.
Tap to enlarge
Answer & solution

Answer: {(a,a),(a,b),(a,c),(b,a),(b,b),(b,c),(c,a),(c,b),(c,c),(d,d)}. (no official key was published)

The equivalence relation induced by a partition relates x to y exactly when they belong to the same block. Therefore take the Cartesian square of each block and unite the results:

R=({a,b,c}×{a,b,c}) ∪ ({d}×{d})
 ={(a,a),(a,b),(a,c),
   (b,a),(b,b),(b,c),
   (c,a),(c,b),(c,c),(d,d)}.

There are 3²+1²=10 ordered pairs. In particular, (a,b) and (b,a) are different pairs and both must appear. The isolated singleton block still contributes (d,d); reflexivity does not disappear for a singleton. No pair with one endpoint d and the other in {a,b,c} is present, because that would merge the two equivalence classes.

Reflexivity follows because each element shares its block with itself. Symmetry follows because “in the same block” is symmetric. Transitivity follows because if x shares a block with y and y shares a block with z, disjointness of partition blocks forces all three into that one block. Thus the listed relation indeed has exactly the required equivalence classes.

Original paper, page 7

Descriptive
Report issue

Draw the equivalence relation graph

Sets, Relations & Functions

Question 11(b), GATE 1998: Draw the graph of the equivalence relation induced by {{a,b,c},{d}} on {a,b,c,d}.
Question 11(b), GATE 1998: Draw the graph of the equivalence relation induced by {{a,b,c},{d}} on {a,b,c,d}.
Tap to enlarge
Answer & solution

Answer: A complete directed graph with loops on {a,b,c}, plus the isolated looped vertex d. (no official key was published)

Use one vertex for each element and an arrow x→y for every ordered pair in the relation. Within {a,b,c}, put arrows in both directions between each pair of distinct vertices, and add a self-loop to each vertex. Add vertex d with its self-loop only; no arrows join it to the other component.

       a ↺                 d ↺
      ↙ ↖ ↘ ↗
   b ↺ ⇄ c ↺

The arrow layout is schematic. The precise edge specification, resolving any drawing ambiguity, is
loops: a→a, b→b, c→c, d→d;
other arrows: a→b, b→a, a→c, c→a, b→c, c→b.

An adjacency-matrix version in row/column order a,b,c,d is
1 1 1 0
1 1 1 0
1 1 1 0
0 0 0 1.

The block-diagonal matrix emphasizes the two equivalence classes. A triangle drawn with undirected edges is acceptable only if it is explicitly understood to stand for arrows in both directions and the reflexive loops are stated. Omitting d's loop or drawing a connection between d and the triangle would describe a different relation.

Original paper, page 7

2 marks · MCQ
Report issue

Equivalence relations on four elements

Sets, Relations & Functions

Question 6.3, GATE 1997: How many equivalence relations exist on{1, 2, 3, 4}:15, 16, 24, 4?
Tap to enlarge
Your answer
Answer & solution

Answer: A: 15 (no official key was published)

Equivalence relations correspond exactly to set partitions. Count by block sizes: one block gives 1; type 3+1 gives 4; type 2+2 gives 3; type 2+1+1 gives C(4, 2)=6; four singleton blocks gives 1. Total 1+4+3+6+1=15, option A. This counts unlabeled equivalence classes; multiplying by permutations of the classes would count the same relation repeatedly.

Original paper, page 5

1 mark · Descriptive
Report issue

Count injections into a larger set

Sets, Relations & Functions

Question 13(a), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many functions belong to F?
Question 13(a), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many functions belong to F?
Tap to enlarge
Answer & solution

Answer: m!/(m−n)! = C(m,n)n!. (no official key was published)

Choose the values of the function in domain order. There are m choices for f(1). Once it is chosen, injectivity excludes that value for f(2), leaving m−1 choices. In general f(i) has m−i+1 choices after the preceding i−1 images have been fixed. The multiplication principle gives

|F| = m(m−1)…(m−n+1) = m!/(m−n)!.

Another way is to choose the n-element image set, in C(m,n) ways, then assign its distinct members to the n labelled domain elements, in n! ways. Hence |F|=C(m,n)n!, the same result.

The distinction between a function and an image set matters: C(m,n) alone discards the order in which the n selected values are assigned to 1,…,n. For n=2,m=3, the image set {1,2} supplies both f(1)=1,f(2)=2 and f(1)=2,f(2)=1. There are six injections overall, not three. At n=1 the answer is m, and at m=n it is n!, the number of permutations, providing simple boundary checks.

Original paper, page 7

2 marks · Descriptive
Report issue

Count injections whose image contains one

Sets, Relations & Functions

Question 13(b), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many f satisfy f(i)=1 for some domain element i?
Question 13(b), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many f satisfy f(i)=1 for some domain element i?
Question 13(b), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many f satisfy f(i)=1 for some domain element i?
Tap to enlarge
Answer & solution

Answer: n(m−1)!/(m−n)! = C(m−1,n−1)n!. (no official key was published)

Because f is one-to-one, the codomain value 1 can occur at exactly one domain position if it occurs at all. Choose that position i in n ways. The remaining n−1 domain elements must receive distinct values from the other m−1 codomain values, giving (m−1)!/(m−n)! assignments. Thus the total is

n·(m−1)!/(m−n)!.

There is no double-counting: each satisfying function has a unique preimage of 1, so it appears in exactly one of the n cases. Equivalently, choose its image set to contain 1 and n−1 other values, then order the n image values over the domain. This gives C(m−1,n−1)n!, equal to the first expression.

As a probability check, divide by all m!/(m−n)! injections. The fraction whose image contains a specified codomain value is n/m, consistent with an image set containing n out of m values symmetrically. At n=1 there is only one satisfying function, f(1)=1. At n=m every injection is a bijection, so all n! functions qualify. These checks also show why simply multiplying the total by 1/m would be wrong: any of n domain positions, not a fixed one, may map to 1.

Original paper, page 7

2 marks · Descriptive
Report issue

Distinguish increasing-function quantifiers

Sets, Relations & Functions

Question 13(c), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. GFG asks for f(i)<f(j) for ALL 1≤i<j≤n; GateForum asks for this for SOME pair. Give the count for each printed variant.
Question 13(c), GATE 1997: Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. GFG asks for f(i)<f(j) for ALL 1≤i<j≤n; GateForum asks for this for SOME pair. Give the count for each printed variant.
Tap to enlarge
Answer & solution

Answer: ALL pairs: C(m,n). SOME pair: m!/(m−n)!−C(m,n). (no official key was published)

Universal condition, f(1)<f(2)<…<f(n). Choose any n distinct codomain values. There is exactly one way to place them in increasing order on the ordered domain. Consequently the number is C(m,n). Choosing the set contributes all the freedom; multiplying by n! would wrongly include orders that violate monotonicity.

Count its complement. Failure means f(i)≥f(j) for every i<j. Since f is injective, equality is impossible, so failure is exactly strict decrease: f(1)>f(2)>…>f(n). For each n-element image set there is one decreasing order, giving C(m,n) failures. Subtracting from all injections gives

m!/(m−n)! − C(m,n).

For n=1, the universal statement is vacuously true and all m functions count; the existential statement has no available pair and counts zero. Both formulas reflect this difference. For n=3,m=3, there is one universally increasing permutation, while five permutations have at least one increasing pair; only 3,2,1 fails the existential condition. For n=2 the two numerical answers happen to coincide, which can conceal the wording discrepancy in small checks.

Both source readings are therefore retained. There is no verified official original or key establishing which quantifier is intended, and neither answer is presented as if it solved the other statement.

Original paper, page 7

2 marks · Descriptive
Report issue

Prove mutual reachability is equivalence

Sets, Relations & Functions

Question 14(a), GATE 1997: Let R be a reflexive and transitive relation on a set A. Define E={(a,b):aRb and bRa}. Prove that E is an equivalence relation.
Question 14(a), GATE 1997: Let R be a reflexive and transitive relation on a set A. Define E={(a,b):aRb and bRa}. Prove that E is an equivalence relation.
Tap to enlarge
Answer & solution

Answer: E is reflexive, symmetric and transitive. (no official key was published)

We must check the three equivalence-relation axioms on the same set A.

Reflexivity: for every a∈A, reflexivity of R gives aRa. Both required directions in the definition of E are then the same true statement, so aEa.

Symmetry: if aEb, the definition supplies both aRb and bRa. Reversing their order immediately gives bEa. No symmetry assumption about R is needed; taking its mutual part creates symmetry.

Transitivity: suppose aEb and bEc. Then aRb and bRc, so transitivity of R yields aRc. We also have cRb and bRa, so another use of transitivity gives cRa. Both directions hold, establishing aEc.

Thus E is reflexive, symmetric and transitive, hence an equivalence relation. Its classes group elements that are mutually related by R. In a directed-reachability interpretation, R says one vertex can reach another, and E groups vertices that can reach each other in both directions.

The proof does not claim that R itself is symmetric or antisymmetric. A reflexive, transitive relation is a preorder and may relate distinct elements in both directions. Passing to E-classes is precisely how the companion part removes that possible failure of antisymmetry.

Original paper, page 8

1 mark · MCQ
Report issue

Partitioning a union

Sets, Relations & Functions

Question 1.1, GATE 1996: Simplify (A−B)∪(B−A)∪(A∩B).
Tap to enlarge
Your answer
Answer & solution

Answer: A: A∪B (no official key was published)

An element of A∪B belongs to exactly one of three regions: A only, B only, or both sets. These are precisely A−B, B−A and A∩B. Their union therefore recovers A∪B. Conversely, every element in any of those three regions belongs to A or B, proving the reverse inclusion. The intersection alone omits the two exclusive regions, while the symmetric difference omits the common region. No assumption that A and B are disjoint is needed.

Original paper, page 1

1 mark · MCQ
Report issue

A prime number of functions

Sets, Relations & Functions

Question 1.3, GATE 1996: Exactly 97 functions exist from X to Y. Determine the finite cardinalities of X and Y.
Tap to enlarge
Your answer
Answer & solution

Answer: A: |X|=1, |Y|=97 (no official key was published)

If |X|=m and |Y|=n, each of the m arguments independently chooses one of n images, yielding nm functions. Here nm=97. Since 97 is prime, it cannot be an integer power with exponent at least two and base greater than one. Hence m=1 and n=97. An empty domain gives exactly one function, and an empty codomain cannot give 97 functions. This also explains why reversing the two cardinalities would give only one function.

Original paper, page 1

2 marks · MCQ
Report issue

Disjointness as a relation on sets

Sets, Relations & Functions

Question 2.2, GATE 1996: On a collection of sets, let A R B iff A∩B=∅, and assume the relation is nonempty. Assess symmetry and transitivity.
Tap to enlarge
Your answer
Answer & solution

Answer: B as the usual “symmetric, not necessarily transitive” reading; literal universality needs qualification (no official key was published)

Disjointness is symmetric because A∩B=B∩A. It is not generally transitive: take A=C={1}, B={2}. Then A R B and B R C hold, but A R C fails. This gives the intended B. Nevertheless the statement that every such nonempty relation is nontransitive is too strong for an arbitrary collection. On the collection {∅}, the relation contains only (∅,∅) and is transitive and reflexive. The assumption that R is nonempty does not exclude that example. Thus B describes the general failure of a transitivity law, not a property forced for every possible underlying collection.

Original paper, page 4

Descriptive
Report issue

Count function equivalence classes

Sets, Relations & Functions

Question 8(a), GATE 1996: F consists of all functions {1,2,3}→{1,2,3}. Define f~g iff f(3)=g(3). How many equivalence classes are there?
Question 8(a), GATE 1996: F consists of all functions {1,2,3}→{1,2,3}. Define f~g iff f(3)=g(3). How many equivalence classes are there?
Tap to enlarge
Answer & solution

Answer: 3. (no official key was published)

A class is determined completely by the value at input 3. This value can be 1,2 or 3. Define Cr={f∈F:f(3)=r}, for r∈{1,2,3}. Each Cr is nonempty, for example because the constant function with value r lies in it. Every function belongs to exactly one Cr, since f(3) is a single well-defined value.

Within Cr, any two functions have the same value at 3 and are related. Functions from different Cr sets are not related. Thus these three sets are precisely the equivalence classes, not merely three arbitrary subsets. The assignments at 1 and 2 can vary freely without changing class membership.

The relation is reflexive because f(3)=f(3), symmetric because equality is symmetric, and transitive because equal values at 3 remain equal through an intermediate function. There are 3³=27 total functions, but the number of functions is not the number of classes. The quotient groups them by only one of their three output coordinates.

Original paper, page 8

Descriptive
Report issue

Count members of each class

Sets, Relations & Functions

Question 8(b), GATE 1996: For functions {1,2,3}→{1,2,3} with f~g iff f(3)=g(3), find the size of each equivalence class.
Question 8(b), GATE 1996: For functions {1,2,3}→{1,2,3} with f~g iff f(3)=g(3), find the size of each equivalence class.
Tap to enlarge
Answer & solution

Answer: 9 functions per class. (no official key was published)

Fix one class Cr, so f(3)=r is fixed. There are three independent choices for f(1) and three for f(2). By the multiplication principle the class contains 3×3=9 functions. No injectivity or surjectivity restriction is stated, so the two values may coincide with each other or with r.

One can enumerate the free pair (f(1),f(2)) as (1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3). Appending the fixed third coordinate r gives nine distinct functions, and every function in Cr is represented once. The same argument works for r=1,2,3, so all three classes have the same size.

As a consistency check, 3 classes times 9 members gives 27=3³, the number of all functions from a three-element set to a three-element set. A common mistake is to count only permutations, which would wrongly impose a one-to-one condition absent from the question. The complete equality f(3)=g(3) comes from the paper.

Original paper, page 8

1 mark · MCQ
Report issue

Symmetric and transitive need not mean reflexive

Sets, Relations & Functions

Question 1.19, GATE 1995: Given a symmetric and transitive relation R on A, must it be an equivalence, a partial order, nonreflexive, or none? The alternate changes the negation in C.
Tap to enlarge
Your answer
Answer & solution

Answer: D: none of the asserted necessities (no official key was published)

Reflexivity is independent of the two stated properties on the entire underlying set. On a nonempty A, the empty relation is symmetric and transitive but not reflexive. Conversely the identity relation is reflexive, symmetric and transitive, so nonreflexivity is not forced either. Symmetry also does not imply the antisymmetry required for a partial order. Thus none of A,B,C is a necessary conclusion, giving D.

Original paper, page 2

1 mark · MCQ
Report issue

Power set of a set containing sets

Sets, Relations & Functions

Question 1.20, GATE 1995: For S={∅,1,{2,3}}, find |P(S)|.
Tap to enlarge
Your answer
Answer & solution

Answer: C: 8 (no official key was published)

The outer set S has three elements: the empty set, the number 1, and the set {2,3}. The last is one element of S, not two separate elements. A subset independently includes or omits each of the three elements, yielding 2³=8 subsets. For example ∅ and {∅} are distinct subsets; the latter contains the empty set as an element. Flattening nested braces would change the given set and produce an incorrect count.

Original paper, page 2

Report issue

Properties of inequality relation

Sets, Relations & Functions

Question 2.3, GATE 1994: On N, R={(x,y):x≠y}. Which of reflexivity,symmetry,antisymmetry,transitivity hold?
Tap to enlarge
Answer & solution

Answer: Symmetry only (no official key was published)

If x≠y then y≠x, so R is symmetric. It is not reflexive because x≠x never holds. It is not antisymmetric: 0R1 and 1R0 hold despite 0≠1. It is not transitive: 0R1 and 1R0 hold but 0R0 fails. These explicit counterexamples distinguish the three failed properties. In addition the relation is irreflexive, though that property is not among the requested choices.

Original paper, page 3

Report issue

Odd-cardinality subsets

Sets, Relations & Functions

Question 2.4, GATE 1994: How many subsets of {1,…,n} have odd cardinality?
Tap to enlarge
Answer & solution

Answer: 2^(n−1), for n≥1 (no official key was published)

Toggle whether element 1 belongs to a subset. This maps every even-cardinality subset to a unique odd-cardinality subset and reverses itself, so the two classes are equally large. Since there are 2n total subsets, each class has 2n−1. The argument does not require summing individual binomial coefficients. If n=0 is allowed, the only subset is empty and the odd count is zero; the usual displayed formula assumes the nonempty base set n≥1.

Original paper, page 3

Report issue

Subsets of a countable set

Sets, Relations & Functions

Question 3.9, GATE 1994: True or false: every subset of a countable set is countable.
Tap to enlarge
Answer & solution

Answer: True, with countable meaning finite or countably infinite (no official key was published)

A countable set A has an injection into the natural numbers. Restrict that injection to any subset B⊆A; it remains injective, so B is at most countable. Equivalently, an enumeration of A can be filtered to retain only B, possibly producing a finite list. The empty subset is included. If a text uses “countable” to mean strictly countably infinite, finite subsets require a terminology qualification; the standard at-most-countable convention makes the statement true.

Original paper, page 4

2 marks · MSQ
Report issue

An infinite finite union

Sets, Relations & Functions

Question 8.3, GATE 1993: An infinite set S is the union of finitely many sets S1,…,Sn. Which must hold regarding finite or infinite members?
Tap to enlarge
Select all that apply
Answer & solution

Answer: C: at least one Si is infinite (no official key was published)

If every Si were finite, the union would have cardinality at most the finite sum Σ|Si| and would be finite, contradicting the premise. Thus at least one is infinite. It is possible that all are infinite, for example each equal to S, so no finite member is required. It is also possible that several are finite and one is S, so the proposed upper limit on finite members is not a general rule. The finiteness of the number of sets is essential.

Original paper, page 9

2 marks · MSQ
Report issue

Power set of a Cartesian square

Sets, Relations & Functions

Question 8.4, GATE 1993: If |A|=n,how many elements are in P(A×A)? Compare the displayed exponential alternatives.
Tap to enlarge
Select all that apply
Answer & solution

Answer: B: 2^(n²) (no official key was published)

An ordered pair chooses its first and second coordinates independently from n possibilities, so |A×A|=n². A subset independently includes or excludes each of those n² pairs, giving 2n² subsets. This is not (2n)²=22n, which counts an ordered pair of subsets of A rather than an arbitrary relation on A. Coincidences at small n do not make those formulas identical as general functions of n.

Original paper, page 9

2 marks · MSQ
Report issue

Counting injections

Sets, Relations & Functions

Question 8.6, GATE 1993: For finite |A|=m<|B|=n,how many injective functions A→B exist?
Tap to enlarge
Select all that apply
Answer & solution

Answer: B: nP_m=n!/(n−m)! (no official key was published)

Choose distinct images successively for the m domain elements. The first has n choices, the second n−1, and so on through n−m+1. Multiplying yields n!/(n−m)!. A binomial coefficient alone would choose only the image subset and omit the m! bijections assigning its elements to the labeled domain elements. The unrestricted function count nm also permits repeated images, so it does not enforce injectivity. The formula gives one map when m=0, as required.

Original paper, page 9

Descriptive
Report issue

Congruence as an equivalence relation

Sets, Relations & Functions

Question 15(b), GATE 1992: On S=ℤ fix n>1 and define aRb iff a−b is a multiple of n. Prove that R is an equivalence relation and find its classes when n=5.
Tap to enlarge
Answer & solution

Answer: R is congruence modulo n; for n=5 the classes are 5ℤ,5ℤ+1,5ℤ+2,5ℤ+3,5ℤ+4. (no official key was published)

Prove all three defining properties using divisibility.

Reflexivity: for each a, a−a=0=n·0, so aRa.
Symmetry: if aRb, then a−b=nk for an integer k. Hence b−a=n(−k), so bRa.
Transitivity: if aRb and bRc, write a−b=nk and b−c=nℓ. Adding gives a−c=n(k+ℓ), so aRc.
Thus R is an equivalence relation.

For n=5, the division algorithm gives every integer z a unique remainder r∈{0,1,2,3,4}, including negative integers. Two integers are related exactly when these remainders agree. The five distinct classes are:
[0]={5k:k∈ℤ}={…,−10,−5,0,5,10,…}
[1]={5k+1:k∈ℤ}={…,−9,−4,1,6,11,…}
[2]={5k+2:k∈ℤ}={…,−8,−3,2,7,12,…}
[3]={5k+3:k∈ℤ}={…,−7,−2,3,8,13,…}
[4]={5k+4:k∈ℤ}={…,−6,−1,4,9,14,…}.

They cover ℤ by existence of remainders. They are disjoint because equality 5k+r=5ℓ+s implies 5 divides r−s, and for r,s in 0…4 this forces r=s. Representatives are not unique: for example [−1]=[4], but these are the same class, not a sixth class.

Original paper, page 9