Placement AptitudeHardTCS NQT · Infosys
What is the sum of all four-digit numbers whose digits are each 1, 2 or 3 (repetition allowed)?
- A. 66660
- B. 179982
- C. 199980
- 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.
Practise more Advanced Quantitative Ability (Placement) questionsAdvanced Quantitative Ability (Placement): notes and key points
More Advanced Quantitative Ability (Placement) questions
- What is the remainder when 1³ + 2³ + 3³ + … + 50³ is divided by 51?
- What is the remainder when 19⁹³ + 13⁹³ is divided by 32?
- How many integers from 1 to 1000 (inclusive) are perfect squares or perfect cubes?
- What is the smallest positive number that leaves remainders 3, 4, 5 and 6 when divided by 5, 6, 7 and 8 respectively?
- A number N is divided by 4, leaving remainder 3. The quotient is divided by 5, leaving remainder 2, and that quotient is divided by 6…
- The smallest positive multiple of 45 that uses only the digits 0 and 1 has how many digits?