In 22-digit number we can have 22 "1"s //likewise in 100 we can have 110 101, we deduce only 2 numbers possible to have digits summed up to 2// hence here the number of integers is 21
next we have 21-digit number --> 20
19
18
17
16
15
14
13
12
11
10
...
we notice sequence (21,20,... 1) the sum of sequence is [(1+21)/2]*21=231
IOM E
i spent 60 sec. really
kris610 wrote:How many integers between 1 and 10^21 are such that the sum of their digits is 2?
A 190
B 210
C 211
D 230
E 231
E
Best approach to solve this in < 2 mins?












