GATE / CS ARCHIVE

GATE CSE 2019 / QUESTION 5

Counting a subset with a marked member

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2019 paper

GATE 2019, Q5 1 mark · MCQ
Report issue

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