MCQ · 2 marks · Discrete Mathematics

GATE CS 2014 CS-3 — Q49

Consider the set of all functions f:{0,1,…,2014}→{0,1,…,2014}f: \{0, 1, \dots, 2014\} \to \{0, 1, \dots, 2014\} such that f(f(i))=if(f(i)) = i, for all 0≤i≤20140 \le i \le 2014. Consider the following statements:

P. For each such function it must be the case that for every ii, f(i)=if(i) = i.
Q. For each such function it must be the case that for some ii, f(i)=if(i) = i.
R. Each such function must be onto.

Which one of the following is CORRECT?
Select one option