QlarIITy

MathematicsIIT-JEE 2001Single correct

Let E={1,2,3,4}E=\{1, 2, 3, 4\} and F={1,2}F=\{1, 2\}. Then, the number of onto functions from EE to FF is

  1. Option A: 1414
  2. Option B: 1616
  3. Option C: 1212
  4. Option D: 88
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. Count all functions from EE to FF and subtract those that miss an element of FF, which here are just the constant functions.

Concept refresher. A function is onto when every element of the codomain is an image. Number of onto functions = (all functions) −- (functions missing at least one element).

Approach. Count all functions E→FE\to F and subtract the non-onto ones.

  1. Step 1: All functions

    Each of the 44 elements of EE can go to 11 or 22:

    24=162^{4}=16
  2. Step 2: Non-onto functions

    A function into {1,2}\{1,2\} misses an element only if it is constant: all to 11, or all to 22. That is 22 functions.

  3. Step 3: Subtract

    16−2=1416-2=14

Answer. (A)

Why the other options are wrong

  • (B) counts all functions, including the two constant ones that are not onto.
  • (C) subtracts 44 instead of the 22 constant functions.
  • (D) 8=238=2^{3} uses the wrong exponent; there are 44 elements in EE, not 33.

Key takeaway

The trap. Students count all 24=162^{4}=16 functions and forget that the two constant maps are not onto.

How toppers think. For a two-element codomain they write 2n−22^{n}-2 immediately, with no need for full inclusion-exclusion.

Remember. Onto maps from an nn-element set to a 22-element set number 2n−22^{n}-2.

More on Types of Functions