Mathematics (JEE)HardCodeforces Div2 C

How many integers n with 1 <= n <= 999 have a decimal digit sum divisible by 7?

  1. A. 142
  2. B. 143
  3. C. 285
  4. D. 139

Correct answer: D. 139

Enumerating all 999 integers and checking the digit sum modulo 7 leaves 139.

More Permutations, Combinations and Probability questions

Exams that ask this topic