JEE Challenger
More from Relations and Functions (Advanced)

Number of Elements in Set of Functions with Injective Property

Let N\mathbb{N} denote the set of all positive integers. Consider the sets A={1,2,3,4,5}andB={1,2,3,4,5,6,7}.A = \{1, 2, 3, 4, 5\} \quad \text{and} \quad B = \{1, 2, 3, 4, 5, 6, 7\}. Let SS be the set of all functions f:ABf: A \rightarrow B such that f(2)2f(2) \neq 2 and f(4)4f(4) \neq 4. Consider the set T={fS:there exists a function g:BN such that g(f(x))=2x for all xA}.T = \{f \in S : \text{there exists a function } g: B \rightarrow \mathbb{N} \text{ such that } g(f(x)) = 2^x \text{ for all } x \in A\}. Then the number of elements in the set TT is ____________.

Official Numerical Answer1860

Step-by-Step Solution

To determine the number of elements in the set TT, we first analyze the condition for the existence of the function g:BNg: B \rightarrow \mathbb{N}.

Step 1: Injectivity of ff

Let A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} with A=5|A| = 5, and B={1,2,3,4,5,6,7}B = \{1, 2, 3, 4, 5, 6, 7\} with B=7|B| = 7.

We are given that TT consists of functions fSf \in S for which there exists a function g:BNg: B \rightarrow \mathbb{N} satisfying: g(f(x))=2xfor all xAg(f(x)) = 2^x \quad \text{for all } x \in A

  • Necessity: Suppose such a function gg exists. If x1,x2Ax_1, x_2 \in A such that f(x1)=f(x2)f(x_1) = f(x_2), then: g(f(x1))=g(f(x2))    2x1=2x2    x1=x2g(f(x_1)) = g(f(x_2)) \implies 2^{x_1} = 2^{x_2} \implies x_1 = x_2 Thus, ff must be an injective (one-to-one) function.

  • Sufficiency: If f:ABf: A \rightarrow B is injective, then for each yim(f)y \in \operatorname{im}(f), there exists a unique xAx \in A such that f(x)=yf(x) = y. We can explicitly define g:BNg: B \rightarrow \mathbb{N} by: g(y)={2xif y=f(x) for some xA,1if yBim(f).g(y) = \begin{cases} 2^x & \text{if } y = f(x) \text{ for some } x \in A, \\ 1 & \text{if } y \in B \setminus \operatorname{im}(f). \end{cases} This function gg is well-defined and satisfies g(f(x))=2xg(f(x)) = 2^x for all xAx \in A.

Therefore, the set TT consists of all injective functions f:ABf: A \rightarrow B such that f(2)2f(2) \neq 2 and f(4)4f(4) \neq 4.


Step 2: Counting via the Principle of Inclusion-Exclusion

Let UU be the set of all injective functions f:ABf: A \rightarrow B. The total number of such functions is: U=7P5=7×6×5×4×3=2520|U| = {}^{7}P_{5} = 7 \times 6 \times 5 \times 4 \times 3 = 2520

We define the following properties for functions fUf \in U:

  • Let E1E_1 be the set of injective functions such that f(2)=2f(2) = 2.
  • Let E2E_2 be the set of injective functions such that f(4)=4f(4) = 4.

We need to calculate T=U(E1E2)|T| = |U \setminus (E_1 \cup E_2)|. By the Principle of Inclusion-Exclusion: T=UE1E2+E1E2|T| = |U| - |E_1| - |E_2| + |E_1 \cap E_2|

  1. Calculating E1|E_1|: If f(2)=2f(2) = 2, the image of 22 is fixed. The remaining 4 elements of AA (i.e., {1,3,4,5}\{1, 3, 4, 5\}) must be mapped injectively to the remaining 6 elements of BB (i.e., {1,3,4,5,6,7}\{1, 3, 4, 5, 6, 7\}). E1=6P4=6×5×4×3=360|E_1| = {}^{6}P_{4} = 6 \times 5 \times 4 \times 3 = 360

  2. Calculating E2|E_2|: Similarly, if f(4)=4f(4) = 4, the image of 44 is fixed. The remaining 4 elements of AA must be mapped injectively to the remaining 6 elements of BB. E2=6P4=6×5×4×3=360|E_2| = {}^{6}P_{4} = 6 \times 5 \times 4 \times 3 = 360

  3. Calculating E1E2|E_1 \cap E_2|: If f(2)=2f(2) = 2 and f(4)=4f(4) = 4, both images are fixed and distinct. The remaining 3 elements of AA (i.e., {1,3,5}\{1, 3, 5\}) must be mapped injectively to the remaining 5 elements of BB (i.e., {1,3,5,6,7}\{1, 3, 5, 6, 7\}). E1E2=5P3=5×4×3=60|E_1 \cap E_2| = {}^{5}P_{3} = 5 \times 4 \times 3 = 60


Step 3: Final Computation

Substituting these values into the inclusion-exclusion formula: T=2520360360+60=1860|T| = 2520 - 360 - 360 + 60 = 1860

Thus, the number of elements in the set TT is 1860.