Placement AptitudeHardTCS NQT Advanced · CAT

How many 5-digit numbers contain each of the digits 1, 2 and 3 at least once, using only the digits 1, 2, 3?

  1. A. 150
  2. B. 243
  3. C. 60
  4. D. 93

Correct answer: A. 150

Strings of length 5 over {1, 2, 3}: 3⁵ = 243. Remove those missing at least one digit by inclusion–exclusion: 3 × 2⁵ − 3 × 1 = 93. So 243 − 93 = 150.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic