Skip to content

Surjective Functions

Hardmathematics

The number of onto functions that can be defined from a set of 4 distinct elements onto a set of 3 distinct elements is determined by inclusion-exclusion to equal which value?

Select the correct option:

🔒 Solution Hidden from View

Submit your answer to unlock the detailed step-by-step solution.

About This Question

Subject
mathematics
Chapter
sets, relations and functions
Topic
surjective functions
Difficulty
Hard
Year
2025
Tags
advanced-calculus-drillsurjective-functioninclusion-exclusionstirling-numberonto-counting

Solution

Correct Answer:

An onto (surjective) function covers every codomain element at least once, and counting them uses inclusion-exclusion over codomain elements that might be missed, a hallmark JEE Advanced technique. The total functions from 4 to 3 elements equal 3^4 = 81. Subtract functions missing at least one codomain value: C(3,1)·2^4 = 3·16 = 48. Add back those missing at least two values, over-subtracted: C(3,2)·1^4 = 3·1 = 3. The alternating sum gives 81 - 48 + 3 = 36 onto functions. Option 81 counts all functions, including non-surjective ones. Option 18 halves incorrectly without justification. Option 24 = 4! confuses this with a bijection count, impossible since the sets differ in size. Hence there are 36 surjections. Plausibility check: the surjection count must be smaller than the total 81 and consistent with the Stirling number S(4,3)=6 times 3! = 36, and indeed 6·6 = 36, confirming the inclusion-exclusion result. The inclusion-exclusion count of surjections generalizes to any codomain size, and the resulting alternating sum equals n! multiplied by the Stirling number of the second kind that counts set partitions into the required number of non-empty blocks. Recognizing this bridge between surjective functions and partitions of a finite set is a frequently rewarded structural insight in advanced counting.

This hard difficulty mathematics question is from the chapter sets, relations and functions, covering the topic of surjective functions. It appeared in the 2025 exam.

Looking for more practice? Explore all mathematics questions or browse sets, relations and functions questions on RankGuru.