StemCET Logo

Maths Question 4 – JEE-MAIN 2026

← Back
The number of functions f:{1,2,3,4}→{a,b,c}, which are not onto, is:

It is often easier to calculate the total number of functions and subtract the number of functions that satisfy the opposite condition (onto functions).

● Video Walkthrough
Step 1: Calculate Total Number of Functions✦ Active

Let the domain be A={1,2,3,4} and the codomain be B={a,b,c}. The number of elements in the domain is |A|=m=4, and the number of elements in the codomain is |B|=n=3. The total number of functions from A to B is given by nm.

Ntotal=|B||A|=34=81
Step 2: Calculate Number of Onto Functions○ Expand

The number of onto functions from a set of m elements to a set of n elements can be calculated using the Principle of Inclusion-Exclusion:

Nonto=∑k=0n(−1)k(nk)(n−k)m

For m=4 and n=3:

Nonto=(30)(3−0)4−(31)(3−1)4+(32)(3−2)4−(33)(3−3)4

Substitute the values:

Nonto=(1)(34)−(3)(24)+(3)(14)−(1)(04) Nonto=(1)(81)−(3)(16)+(3)(1)−(1)(0) Nonto=81−48+3−0=36
💡 Teacher's Secret Hint

Remember that (nk) is the binomial coefficient and 00 is typically taken as 1 in combinatorial contexts, but 0m for m>0 is 0.

Step 3: Calculate Number of Non-Onto Functions○ Expand

The number of functions that are not onto is the total number of functions minus the number of onto functions.

Nnot_onto=Ntotal−Nonto Nnot_onto=81−36=45
💡 Teacher's Secret Hint

This method of complementary counting simplifies the problem significantly.

✦ STEM Console utilizes AI models to generate step-by-step explanations and math clues. AI can make mistakes.