Placement AptitudeHardTCS NQT · Infosys

What is the sum of all four-digit numbers whose digits are each 1, 2 or 3 (repetition allowed)?

  1. A. 66660
  2. B. 179982
  3. C. 199980
  4. D. 159984

Correct answer: B. 179982

There are 3⁴ = 81 such numbers. In each place every digit appears 27 times, so each place contributes 27 × (1 + 2 + 3) = 162, and the total is 162 × 1111 = 179982.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic