Mathematics (JEE)Very hardGATE CS

How many functions from a 6-element set to a 3-element set take exactly two distinct values?

  1. A. 62
  2. B. 192
  3. C. 186
  4. D. 189

Correct answer: C. 186

Choose the 2-element image in C(3,2) = 3 ways, then count surjections onto it: 2^6 - 2 = 62, so 3*62 = 186.

More Permutations, Combinations and Probability questions

Exams that ask this topic