GATE CS 2024 Set 1 — Question 32

NAT+1 / -0MediumSets, Relations & FunctionsSets & CombinatoricsEngineering Mathematics

Engineering Mathematics → Sets & Combinatorics → Sets, Relations & Functions

Last updated

Question

Let AA and BB be non-empty finite sets such that there exist one-to-one and onto functions (i) from AA to BB and (ii) from A×AA \times A to ABA \cup B. The number of possible values of A|A| is __________

Correct answer

2 to 2

Solution

Let A=m|A| = m and B=n|B| = n.
From condition (i), there is a bijection from AA to BB, which implies A=B|A| = |B|. Thus, m=nm = n.
From condition (ii), there is a bijection from A×AA \times A to ABA \cup B, which implies A×A=AB|A \times A| = |A \cup B|.
We know that:
A×A=m×m=m2|A \times A| = m \times m = m^2
AB=A+BAB=m+mAB=2mAB|A \cup B| = |A| + |B| - |A \cap B| = m + m - |A \cap B| = 2m - |A \cap B|Equating the two:
m2=2mABm^2 = 2m - |A \cap B|Rearranging for AB|A \cap B|:
AB=2mm2|A \cap B| = 2m - m^2We know that for any two sets AA and BB, the size of their intersection satisfies:
0ABmin(A,B)=m0 \le |A \cap B| \le \min(|A|, |B|) = mSubstituting AB=2mm2|A \cap B| = 2m - m^2 into the inequality:
1.2mm202m - m^2 \ge 0
m(2m)0m(2 - m) \ge 0
Since mm is a positive integer (non-empty set), this implies m2m \le 2.
2.2mm2m2m - m^2 \le m
mm20m - m^2 \le 0
m(1m)0m(1 - m) \le 0
This implies m1m \ge 1.
Combining these, the possible integer values for mm are 11 and 22.
Verification:
  • If m=1m=1: AB=2(1)12=1|A \cap B| = 2(1) - 1^2 = 1. This is possible if A=BA=B (e.g., A={1},B={1}A=\{1\}, B=\{1\}).
  • If m=2m=2: AB=2(2)22=0|A \cap B| = 2(2) - 2^2 = 0. This is possible if AA and BB are disjoint (e.g., A={1,2},B={3,4}A=\{1, 2\}, B=\{3, 4\}).
Thus, the possible values for A|A| are 11 and 22. The number of possible values is 22.

More questions on Sets & Combinatorics

Practice GATE CS PYQs with adaptive difficulty

Timed practice, skill tracking, and AI explanations — free to start.

Start practicing free