How many positive integers less than 10,000 are there in which the sum of the digits equals 5?
Pls help to solve this question.
Pls help to solve this question.
BREAKING: Target Test Prep releases Brand New 2026 On Demand GMAT prep course
Redeem
Scott Woodbury-Stewart’s private virtual classroom — 400 hours of master-class video lessons for the GMAT Focus Edition.
Edited my wrong answer, Here is the link,ankur.agrawal wrote:How many positive integers less than 10,000 are there in which the sum of the digits equals 5?
Pls help to solve this question.
Betweeen 1-99ankur.agrawal wrote:How many positive integers less than 10,000 are there in which the sum of the digits equals 5?
Pls help to solve this question.
Hey,kvcpk wrote:Betweeen 1-99ankur.agrawal wrote:How many positive integers less than 10,000 are there in which the sum of the digits equals 5?
Pls help to solve this question.
5,14,23,32,41,50
Between 100-999
104,113,122.131,140
203,212,221,230
302,311,320
401,410
500
Between 1000-1999
1004,1013,1022,1031,1040
1103,1112,1121,1130
1202,1211,1220
1301,1310
1400
Between 2000-2999
2003,2012,2021,2030
2102,2111,2120
2201,2210
2300
Between 3000-3999
3002,3011,3020
3101,3110
3200
Between 4000-4999
4001,4010
Between 5000-10000
5000
I did it manually quickly.. But Here is a pattern.
Number of entries between
01-999 is (5-0)+1 =6+5+4+3+2+1
1000-1999 is (5-1)+1 = 5+4+3+2+1=15
2000-2999 is (5-2)+1=4+3+2+1=10
3000-3999 is (5-3)+1=3+2+1=6
4000-4999 is (5-4)+1=2+1 =3
5000-10000 is (5-5)+1=1
21+15+10+6+3+1 = 56
What is the OA?
Pattern I found is:aloneontheedge wrote: Hey,
i did not understand how did u arrive at the pattern,would u plz explain?
Buddy, got it thanks yaa.kvcpk wrote:Pattern I found is:aloneontheedge wrote: Hey,
i did not understand how did u arrive at the pattern,would u plz explain?
Summation of { [The sum you want to find for - The range header]+1 } upto 1
This will give the number of numbers that have the sum you want in that particular range.
In the current example:
The sum you want to find for =5
The range header = 0,1,2,3,4,5 [because Ranges start with 0001,1000,2000,3000,4000,5000]
Therefore result when range header is 0 can be calculated as
We get (5-0)+1 = 6
Hence summaton of 6 to 1 is 6+5+4+3+2+1 = 21
Similarly when the range header is 1, we will get 5+4+3+2+1 = 15
Summation of all the range headers gives us the total count of numbers with sum of digits as 5.
i.e; 21+15+10+6+3+1 = 56
Hope this helps.. Let me know if you dont get it.
Also, Let us take some other example to see if its correct.
Let us say we need to find the count of numbers less than 10000 with sum of digits as 1.
We know that the numbers are 1,10,100,1000 -> only 4.
Let us see if my pattern works here.
The sum you want to find for =1
For First range header -> 0.
count = (1-0)+1 = 2, Hence summation upto 1 = 2+1 = 3
For second range header ->1
count = (1-1)+1 = 1, Hence summation = 1
Hence total number of numbers with sum of digits as 1 = 3+1 = 4.
Hope this helps!!
Glad that it was helpful ... Yes.. It can be followed..aloneontheedge wrote: Buddy, got it thanks yaa.
In short this can be followed.
Lets say i want to find the sum of 5 till 15000 can i follow the same pattern?
Hey,kvcpk wrote:Glad that it was helpful ... Yes.. It can be followed..aloneontheedge wrote: Buddy, got it thanks yaa.
In short this can be followed.
Lets say i want to find the sum of 5 till 15000 can i follow the same pattern?
Range header is 0 [because we want between 0-999]aloneontheedge wrote: Tell me how can i use if i have to find the sum of 6 till 1000
kvcpk wrote:Range header is 0 [because we want between 0-999]aloneontheedge wrote: Tell me how can i use if i have to find the sum of 6 till 1000
(6-0)+1 = 7 -> 7+6+5+4+3+2+1 = 28
Let us see if we got it rite:
6,15,24,33,42,51,60
105,114,123,132,141,150
204,213,222,231,240
303,312,321,330
402,411,420
501,510
600
Thanks man...still iam unable to figure out how to find the range
Hope this helps!!
Its simple.aloneontheedge wrote:kvcpk wrote:Range header is 0 [because we want between 0-999]aloneontheedge wrote: Tell me how can i use if i have to find the sum of 6 till 1000
(6-0)+1 = 7 -> 7+6+5+4+3+2+1 = 28
Let us see if we got it rite:
6,15,24,33,42,51,60
105,114,123,132,141,150
204,213,222,231,240
303,312,321,330
402,411,420
501,510
600
Thanks man...still iam unable to figure out how to find the range
Hope this helps!!
Thanks Bro...kvcpk wrote:Its simple.aloneontheedge wrote:kvcpk wrote:Range header is 0 [because we want between 0-999]aloneontheedge wrote: Tell me how can i use if i have to find the sum of 6 till 1000
(6-0)+1 = 7 -> 7+6+5+4+3+2+1 = 28
Let us see if we got it rite:
6,15,24,33,42,51,60
105,114,123,132,141,150
204,213,222,231,240
303,312,321,330
402,411,420
501,510
600
Thanks man...still iam unable to figure out how to find the range
Hope this helps!!
For numbers below 1000, range header is 0
For numbers between 1000-1999, range header is 1
2000-2999 range header is 2.
and so on..
Helpful?
Common Buddy!! Glad to be helpful!!aloneontheedge wrote: Thanks Bro...
soory for the trouble
Great solution man!fitzgerald23 wrote:Here was the way I approached this.
These are the following combinations that can be used to reach 5:
3200
4100
5000
3110
2110
2210
From there you determine the number of ways that you can arrange the digits
3200- 4!/2!= 12 ways
4100= 4!/2!= 12 ways
5000= 4!/3!= 4 ways
3110= 4!/2!= 12 ways
2111= 4!/3!= 4 ways
2210= 4!/2!= 12 ways
Total = 56 ways
New here Create free account