How many integers between 1 and 10^21 are such that the sum of their digits is 2?
Answers
Answered by
0
Nice Q....
So, we're about to find "How many integers between 1 and 10^21 are such that the sum of their digits is 2"
For No. of digits = 1, no. of such no.s = 1, i.e., 2
For No. of digits = 2, no. of such no.s = 2, i.e., 11, 20
For No. of digits = 3, no. of such no.s = 3, i.e., 101,110,200
.
.
.
Till, for No. of digits = n , no. of such no.s = n
Hence, between 1 and 10^21, there is no.s
= 21/2 { 22 } = 21*11 = 231 such no.s
So, we're about to find "How many integers between 1 and 10^21 are such that the sum of their digits is 2"
For No. of digits = 1, no. of such no.s = 1, i.e., 2
For No. of digits = 2, no. of such no.s = 2, i.e., 11, 20
For No. of digits = 3, no. of such no.s = 3, i.e., 101,110,200
.
.
.
Till, for No. of digits = n , no. of such no.s = n
Hence, between 1 and 10^21, there is no.s
= 21/2 { 22 } = 21*11 = 231 such no.s
Similar questions