GATE Computer ScienceModerateGATE CSE · NIELIT

How many onto (surjective) functions exist from a 5-element set to a 3-element set?

  1. A. 126
  2. B. 180
  3. C. 90
  4. D. 150

Correct answer: D. 150

By inclusion–exclusion: 3⁵ − 3·2⁵ + 3·1⁵ = 243 − 96 + 3 = 150.

More Discrete Mathematics questions

Exams that ask this topic