Placement AptitudeHardCAT · Infosys SP

How many 4-digit numbers have digits in non-decreasing order from left to right (for example 1123 or 4789)?

  1. A. 126
  2. B. 210
  3. C. 495
  4. D. 715

Correct answer: C. 495

The first digit cannot be 0 and the digits never decrease, so 0 never appears. A number is then a choice of 4 digits from 1 to 9 with repetition: C(9 + 4 − 1, 4) = C(12, 4) = 495. 126 = C(9, 4) counts only strictly increasing numbers.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic