arthham

JEE Advanced 2026 · Relations and Functions (Class 12)

Let N\mathbb{N} denote the set of all positive integers. Consider the sets A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} and B={1,2,3,4,5,6,7}B = \{1, 2, 3, 4, 5, 6, 7\}. Let SS be the set of all functions f:A→Bf : A \to B such that f(2)≠2f(2) \neq 2 and f(4)≠4f(4) \neq 4. Consider the set T={f∈S:T = \{f \in S : there exists a function g:B→Ng : B \to \mathbb{N} such that g(f(x))=2xg(f(x)) = 2^{x} for all x∈A}x \in A\}. Then the number of elements in the set TT is ________.

Answer: 1860.001860.00

Watch this solved on the board The full walkthrough, written out a line at a time with narration explaining each step as it appears. Pause anywhere and ask why a line is there. Free to watch

Or read the worked solution below. Jump to the steps ↓

Written solution

A={1,2,3,4,5},B={1,2,3,4,5,6,7}A = \{1,2,3,4,5\},\quad B = \{1,2,3,4,5,6,7\} S={f:A→B:f(2)≠2, f(4)≠4}S = \{f: A\to B : f(2)\ne 2,\ f(4)\ne 4\} T={f∈S:∃ g:B→N, g(f(x))=2x ∀x∈A}T = \{f \in S : \exists\, g: B\to\mathbb{N},\ g(f(x)) = 2^x\ \forall x\in A\} To find: ∣T∣\text{To find: } |T| 1. T={injective f}1.\ T = \{\text{injective } f\} 2. count injective f:A→B2.\ \text{count injective } f: A\to B 3. exclude f(2)=2, f(4)=43.\ \text{exclude } f(2)=2,\ f(4)=4 f(x1)=f(x2)⇒g(f(x1))=g(f(x2))f(x_1) = f(x_2) \Rightarrow g(f(x_1)) = g(f(x_2)) ⇒2x1=2x2⇒x1=x2\Rightarrow 2^{x_1} = 2^{x_2} \Rightarrow x_1 = x_2 f injective⇒g(y)=2f−1(y) on f(A), else 1f \text{ injective} \Rightarrow g(y) = 2^{f^{-1}(y)} \text{ on } f(A),\ \text{else } 1 g(f(x))=2x ✓g(f(x)) = 2^x\ \checkmark T={f:A→B injective, f(2)≠2, f(4)≠4}T = \{f: A\to B \text{ injective},\ f(2)\ne 2,\ f(4)\ne 4\} ∣{f:A→B injective}∣=7P5=7⋅6⋅5⋅4⋅3=2520|\{f: A\to B \text{ injective}\}| = {}^{7}P_{5} = 7\cdot6\cdot5\cdot4\cdot3 = 2520 f(2)=2:6P4=6⋅5⋅4⋅3=360f(2)=2:\quad {}^{6}P_{4} = 6\cdot5\cdot4\cdot3 = 360 f(4)=4:360f(4)=4:\quad 360 f(2)=2 and f(4)=4:5P3=5⋅4⋅3=60f(2)=2 \text{ and } f(4)=4:\quad {}^{5}P_{3} = 5\cdot4\cdot3 = 60 ∣T∣=2520−360−360+60|T| = 2520 - 360 - 360 + 60 =1860= 1860 ∣T∣=1860\boxed{|T| = 1860}

More from Relations and Functions (Class 12)

All 19 Relations and Functions (Class 12) questions →