Mathematics (JEE)Very hardJEE Advanced

The number of non-constant functions f: {1, 2, 3, 4} → {1, 2, 3, 4, 5} satisfying f(1) ≤ f(2) ≤ f(3) ≤ f(4) is:

  1. A. 70
  2. B. 65
  3. C. 126
  4. D. 56

Correct answer: B. 65

Non-decreasing functions correspond to multisets of size 4 from 5 values: C(8,4) = 70. Exactly 5 of them are constant, so 70 − 5 = 65. The value 126 is C(9,4), from a wrong stars-and-bars set-up.

More Sets, Relations and Functions questions

Exams that ask this topic