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.

More sets, relations and functions Practice Questions

MediumJEE_ADVANCED

The number of real solutions of the equation given by the absolute value |x - 1| + |x - 3| = 4 over ...

View Solution→
EasyJEE_ADVANCED

If set A has 3 elements and set B has 4 elements, then the number of subsets of the Cartesian produc...

View Solution→
MediumJEE_ADVANCED

A function f from positive reals to reals satisfies f(xy) = f(x) + f(y) for all positive x, y, and f...

View Solution→
MediumJEE_ADVANCED

Let f from real numbers to real numbers be defined by f(x) = x^3 + x + 1; which statement about the ...

View Solution→
EasyJEE_ADVANCED

The total number of functions that can be defined from a set with 5 elements to a set with 3 element...

View Solution→
EasyJEE_ADVANCED

For finite sets the symmetric difference A Δ B is defined as the set of elements in exactly one of A...

View Solution→
EasyJEE_ADVANCED

For the signum function sgn(x), which equals -1, 0, or 1 according to the sign of x, the value of th...

View Solution→
HardJEE_ADVANCED

For the real function g(x) = (x^2 + x + 1)/(x^2 + x + 2) defined for every real x, the complete rang...

View Solution→
EasyJEE_ADVANCED

The real function defined by the rule f(x) = the square root of (x - 3) added to the square root of ...

View Solution→
MediumJEE_ADVANCED

Which of the following real functions defined for all real x is an odd function according to the sym...

View Solution→
HardJEE_ADVANCED

If the function f from real numbers to real numbers is defined by f(x) = (3x - 2)/(x + 4) for x not ...

View Solution→
MediumJEE_ADVANCED

Let [x] denote the greatest integer not exceeding x; the value of the sum [2.7] + [-2.7] + [0.4] + [...

View Solution→

Browse all sets, relations and functions questions →

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.