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 A∪BA \cup B. The number of possible values of ∣A∣|A| is __________

Official answer and solution
Official answer
2
From
Official GATE 2024 answer key

Solution

Use the existence of bijections to relate ∣A∣,∣B∣,∣A×A∣,|A|, |B|, |A \times A|, and ∣A∪B∣|A \cup B|, then bound ∣A∪B∣|A \cup B| between ∣A∣|A| and ∣A∣+∣B∣|A| + |B|.

Let ∣A∣=n|A| = n, where n≥1n \ge 1 since AA is a non-empty finite set.

  1. Since there is a bijection (one-to-one and onto function) from AA to BB, we have ∣B∣=∣A∣=n|B| = |A| = n.
  2. Since there is a bijection from A×AA \times A to A∪BA \cup B, we have ∣A∪B∣=∣A×A∣=n2|A \cup B| = |A \times A| = n^2.
  3. For any two sets AA and BB of cardinality nn, the size of their union satisfies:
    max⁡(∣A∣,∣B∣)≤∣A∪B∣≤∣A∣+∣B∣  ⟹  n≤n2≤2n\max(|A|, |B|) \le |A \cup B| \le |A| + |B| \implies n \le n^2 \le 2n

Since nn is a positive integer, n2≤2n  ⟹  n≤2n^2 \le 2n \implies n \le 2, so n∈{1,2}n \in \{1, 2\}:

  • For n=1n = 1: Taking A=B={1}A = B = \{1\} gives ∣A∪B∣=1=12|A \cup B| = 1 = 1^2.
  • For n=2n = 2: Taking disjoint sets A={1,2}A = \{1, 2\} and B={3,4}B = \{3, 4\} gives ∣A∪B∣=4=22|A \cup B| = 4 = 2^2.

Thus, there are 2 possible values of ∣A∣|A| (namely 11 and 22).

Final answer

2

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
Question
32 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.