Clear Notion Academy

JEE Advanced 2026 Mathematics PYQ: Let A= 1,2,3,4,5 and B= 1,2,3,4,5,6,7 . Let S be the set of functions f:A B with f(2) 2…

Question

Let 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 functions f:A→Bf:A\to B with f(2)≠2,f(4)≠4f(2)\ne2, f(4)\ne4. Let T={f∈S:there exists g:B→N with g(f(x))=2x for all x∈A}T=\{f\in S: \text{there exists } g:B\to\mathbb N \text{ with } g(f(x))=2^x \text{ for all } x\in A\}. Find ∣T∣|T|.

Answer

Answer: 1860

Hint

Since gg must be a well-defined function, g(f(x))=2xg(f(x))=2^x for all xx forces ff to be injective (if f(x1)=f(x2)f(x_1)=f(x_2) with x1≠x2x_1\ne x_2, gg would need two different values at the same input). Conversely any injective ff admits such a gg. So count injective functions A→BA\to B avoiding f(2)=2f(2)=2 and f(4)=4f(4)=4, via inclusion-exclusion.

Solution

g(f(x))=2xg(f(x))=2^x well-defined forces ff injective (distinct xx give distinct powers of 2, so ff can't collide); any injective ff trivially admits such a gg (define it on the image, arbitrarily elsewhere). So T={injective f∈S}T=\{\text{injective } f\in S\}. Total injective functions A→BA\to B: P(7,5)=7×6×5×4×3=2520P(7,5)=7\times6\times5\times4\times3=2520. Let X={f(2)=2}X=\{f(2)=2\}: fixing that, the remaining 4 elements inject into the remaining 6: P(6,4)=360P(6,4)=360. Let Y={f(4)=4}Y=\{f(4)=4\}: similarly P(6,4)=360P(6,4)=360. X∩YX\cap Y: fixing both, remaining 3 elements inject into remaining 5: P(5,3)=60P(5,3)=60. ∣T∣=2520−360−360+60=1860|T| = 2520-360-360+60 = 1860. Final Answer\textbf{Final Answer}: 18601860

More questions from JEE Advanced 2026 Mathematics PYQ

Practise the full set: JEE Advanced Mathematics PYQs 2026