Placement AptitudeHardCAT · Goldman Sachs OA

How many functions from a set of 6 elements onto a set of 3 elements are there (every element of the 3-element set is used)?

  1. A. 729
  2. B. 90
  3. C. 537
  4. D. 540

Correct answer: D. 540

Inclusion–exclusion: 3⁶ − C(3, 1)2⁶ + C(3, 2)1⁶ = 729 − 192 + 3 = 540. 537 forgets to add back the 3.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic