Sets, Relations & Functions

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.