GATE Computer ScienceHardGATE CS (PYQ pattern)

How many surjective functions f : {1, …, 6} → {a, b, c} satisfy f(1) = f(2)?

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

Correct answer: C. 150

Merge 1 and 2 into one element: surjections from 5 elements onto 3 values = 3!·S(5,3) = 150.

More Discrete Mathematics questions

Exams that ask this topic