Mathematics (JEE)ModerateJEE Main

The number of onto functions from {1, 2, 3, 4} to {a, b} is:

  1. A. 16
  2. B. 8
  3. C. 12
  4. D. 14

Correct answer: D. 14

Of the 2⁴ = 16 functions, only the two constant functions miss a value. So 16 − 2 = 14 are onto.

More Permutations, Combinations and Probability questions

Exams that ask this topic