Mathematics (JEE)HardCodeforces Div2 C
How many integers n with 1 <= n <= 999 have a decimal digit sum divisible by 7?
- A. 142
- B. 143
- C. 285
- D. 139
Correct answer: D. 139
Enumerating all 999 integers and checking the digit sum modulo 7 leaves 139.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many necklaces of 8 beads can be made using black and white beads so that exactly 4 beads are black? Rotations identify necklaces…
- How many necklaces of 6 beads can be made from 3 colours so that all three colours appear? Rotations identify necklaces; reflections are…
- How many permutations of {1, 2, 3, 4, 5, 6} written as a row have 1 to the left of 2, and 2 to the left of 3, and 4 and 5 not in adjacent…
- How many permutations of {1, 2, 3, 4, 5} have exactly 2 inversions (pairs i < j with p(i) > p(j))?
- How many permutations of {1, 2, 3, 4, 5, 6} have exactly 4 inversions (pairs i < j with p(i) > p(j))?
- How many injective functions f from {1, 2, 3, 4} to {1, 2, 3, 4, 5, 6} satisfy f(i) != i for every i?