Mathematics (JEE)Hard

How many onto functions are there from a set of 4 elements to a set of 3 elements?

  1. A. 81
  2. B. 36
  3. C. 24
  4. D. 12

Correct answer: B. 36

By inclusion–exclusion, 3⁴ − 3·2⁴ + 3·1⁴ = 81 − 48 + 3 = 36. Enumeration gives 36. The value 24 = 4! ignores the structure of the function.

More Permutations, Combinations and Probability questions

Exams that ask this topic