Placement AptitudeHardTCS Digital · Infosys SP · CAT

How many functions from a 6-element set onto (surjective to) a 4-element set exist?

  1. A. 4096
  2. B. 1560
  3. C. 1440
  4. D. 1296

Correct answer: B. 1560

Inclusion-exclusion: 4⁶ - 4·3⁶ + 6·2⁶ - 4·1⁶ = 4096 - 2916 + 384 - 4 = 1560.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic