QlarIITy

MathematicsJEE Main 2026 · 4 AprilSingle correct

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

  1. Option A: 4848
  2. Option B: 4545
  3. Option C: 5151
  4. Option D: 3535
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A map is not onto exactly when its range misses a letter, so count the onto maps and take the complement.

Concept refresher. The number of maps from a set of mm elements to a set of nn elements is nmn^m. The number of onto maps is, by inclusion and exclusion over the elements missed,

∑r=0n(−1)rnCr(n−r)m\sum_{r=0}^{n} (-1)^r {}^nC_r (n - r)^m

valid for m≥n≥1m \geq n \geq 1.

Picture the situation. Each of the four elements 1,2,3,41, 2, 3, 4 picks one of the letters a,b,ca, b, c. A map fails to be onto when at least one letter is never picked; that happens when only two letters are used, or only one.

Approach. Count all maps, count the onto maps by inclusion and exclusion, and subtract.

  1. Step 1: Count all maps

    Each of the four elements has three independent choices:

    34=813^4 = 81
  2. Step 2: Count the onto maps

    Remove the maps that miss one chosen letter, then add back those that miss two letters, which were removed twice:

    34−3C1⋅24+3C2⋅14=81−48+3=363^4 - {}^3C_1 \cdot 2^4 + {}^3C_2 \cdot 1^4 = 81 - 48 + 3 = 36
  3. Step 3: Take the complement

    The maps that are not onto are all the others:

    81−36=4581 - 36 = 45

Answer. (B) 4545

Sanity check. Count the non-onto maps directly: 33 constant maps, and for each of the 3C2=3{}^3C_2 = 3 pairs of letters, 24−2=142^4 - 2 = 14 maps that use both letters of the pair; 3+3⋅14=453 + 3 \cdot 14 = 45.

Why the other options are wrong

  • (A) Counting the maps that miss a chosen letter as 3⋅24=483 \cdot 2^4 = 48 counts each of the 33 constant maps twice; removing the double count gives 48−3=4548 - 3 = 45.
  • (C) Adding the constant maps instead of removing their double count gives 3⋅24+3=513 \cdot 2^4 + 3 = 51; inclusion and exclusion subtracts them, 48−3=4548 - 3 = 45.
  • (D) The value 35=81−4635 = 81 - 46 needs 4646 onto maps, but the onto count is 34−3⋅24+3⋅14=363^4 - 3 \cdot 2^4 + 3 \cdot 1^4 = 36, so 81−36=4581 - 36 = 45.

Key takeaway

The trap. Taking 3⋅24=483 \cdot 2^4 = 48 as the number of maps that miss a letter, which counts each constant map twice.

How toppers think. They check a count by a second route, here constants plus maps onto exactly two letters.

Remember. Onto maps from mm elements to 33 elements number 3m−3⋅2m+33^m - 3 \cdot 2^m + 3.

More on Types of Functions