GATE / CS ARCHIVE

GATE CSE 2014 SET 3 / QUESTION 49

GATE CSE 2014 Set 3 Q49

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2014 Set 3 paper

GATE 2014 Set 3, Q49 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