Skip to content
Official PYQ · 2014

GATE CS 2014 Set 3 Q49 — Sets, Relations and Functions

Explain with AI

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\left(f\left(i\right)\right)=i, for all  0≤i≤20140 \leq i \leq 2014. Consider the following statements:

PP. For each such function it must be the case that for every i,f(i)=ii,f(i) = i.

QQ. For each such function it must be the case that for some i,f(i)=ii,f(i)=i.

RR. Each function must be onto.

Which one of the following is CORRECT?

Choose one option
View worked solution

Answer: B

Let S={0,1,…,2014}S = \{0, 1, \dots, 2014\}. The size of the set is ∣S∣=2015|S| = 2015, which is an odd number. We are given that f(f(i))=if(f(i)) = i for all i∈Si \in S. This means ff is an involution (its own inverse).

  • Statement PP is false: We can easily construct a function where not all elements are fixed. For example, let f(0)=1f(0) = 1, f(1)=0f(1) = 0, and f(i)=if(i) = i for all i≥2i \geq 2. This satisfies f(f(i))=if(f(i)) = i, but f(0)≠0f(0) \neq 0.
  • Statement QQ is true: Since f(f(i))=if(f(i)) = i, the elements of SS are partitioned into orbits of size 1 (fixed points where f(i)=if(i) = i) and size 2 (pairs where f(i)=jf(i) = j and f(j)=if(j) = i for i≠ji \neq j). If there are kk pairs of size 2 and mm fixed points, then:
    2k+m=20152k + m = 2015
    Since 20152015 is odd, mm must be odd and cannot be 00. Thus, there is at least one fixed point (f(i)=if(i) = i for some ii).
  • Statement RR is true: Since f(f(i))=if(f(i)) = i, the function ff has a two-sided inverse (itself). Any function with an inverse is a bijection, which means it must be onto.

Therefore, only QQ and RR are true.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions