Placement AptitudeHardCAT · Infosys SP

How many functions f from {1, 2, 3, 4} to {1, 2, …, 6} satisfy f(1) ≤ f(2) ≤ f(3) ≤ f(4)?

  1. A. 15
  2. B. 126
  3. C. 210
  4. D. 84

Correct answer: B. 126

A non-decreasing function is a choice of 4 values from 6 with repetition allowed: C(6 + 4 − 1, 4) = C(9, 4) = 126. 15 = C(6, 4) counts only strictly increasing ones.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic