Mathematics (JEE)HardGATE CS

How many surjective functions are there from a 6-element set onto a 4-element set?

  1. A. 1560
  2. B. 4096
  3. C. 1080
  4. D. 2400

Correct answer: A. 1560

By inclusion–exclusion: 4⁶ − 4·3⁶ + 6·2⁶ − 4·1⁶ = 4096 − 2916 + 384 − 4 = 1560. Option 4096 counts all functions.

More Permutations, Combinations and Probability questions

Exams that ask this topic