Mathematics (JEE)HardGATE CS

How many functions from a 6-element set onto a 4-element set are surjective, that is, use every one of the 4 target values at least once?

  1. A. 4096
  2. B. 1564
  3. C. 1560
  4. D. 65

Correct answer: C. 1560

By inclusion-exclusion, 4^6 - 4*3^6 + 6*2^6 - 4*1^6 = 4096 - 2916 + 384 - 4 = 1560.

More Permutations, Combinations and Probability questions

Exams that ask this topic