Surjective Functions
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.
More sets, relations and functions Practice Questions
The number of real solutions of the equation given by the absolute value |x - 1| + |x - 3| = 4 over ...
The number of real solutions of the equation given by the absolute value |x - 1| + |x - 3| = 4 over ...
If set A has 3 elements and set B has 4 elements, then the number of subsets of the Cartesian produc...
If set A has 3 elements and set B has 4 elements, then the number of subsets of the Cartesian produc...
A function f from positive reals to reals satisfies f(xy) = f(x) + f(y) for all positive x, y, and f...
A function f from positive reals to reals satisfies f(xy) = f(x) + f(y) for all positive x, y, and f...
Let f from real numbers to real numbers be defined by f(x) = x^3 + x + 1; which statement about the ...
Let f from real numbers to real numbers be defined by f(x) = x^3 + x + 1; which statement about the ...
The total number of functions that can be defined from a set with 5 elements to a set with 3 element...
The total number of functions that can be defined from a set with 5 elements to a set with 3 element...
For finite sets the symmetric difference A Δ B is defined as the set of elements in exactly one of A...
For finite sets the symmetric difference A Δ B is defined as the set of elements in exactly one of A...
For the signum function sgn(x), which equals -1, 0, or 1 according to the sign of x, the value of th...
For the signum function sgn(x), which equals -1, 0, or 1 according to the sign of x, the value of th...
For the real function g(x) = (x^2 + x + 1)/(x^2 + x + 2) defined for every real x, the complete rang...
For the real function g(x) = (x^2 + x + 1)/(x^2 + x + 2) defined for every real x, the complete rang...
The real function defined by the rule f(x) = the square root of (x - 3) added to the square root of ...
The real function defined by the rule f(x) = the square root of (x - 3) added to the square root of ...
Which of the following real functions defined for all real x is an odd function according to the sym...
Which of the following real functions defined for all real x is an odd function according to the sym...
If the function f from real numbers to real numbers is defined by f(x) = (3x - 2)/(x + 4) for x not ...
If the function f from real numbers to real numbers is defined by f(x) = (3x - 2)/(x + 4) for x not ...
Let [x] denote the greatest integer not exceeding x; the value of the sum [2.7] + [-2.7] + [0.4] + [...
Let [x] denote the greatest integer not exceeding x; the value of the sum [2.7] + [-2.7] + [0.4] + [...
About This Question
- Subject
- mathematics
- Chapter
- sets, relations and functions
- Topic
- surjective functions
- Difficulty
- Hard
- Year
- 2025
Solution
Correct Answer:
36
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.