sum digits = 5

This topic has expert replies
Junior | Next Rank: 30 Posts
Posts: 15
Joined: Tue Mar 17, 2009 3:43 pm
Thanked: 1 times

sum digits = 5

by atulkumar79 » Thu Jul 02, 2009 8:57 pm
How many positive integers less than 10,000 are there in which the sum of the digits equals 5?

(A) 31
(B) 51
(C) 56
(D) 62
(E) 93


OA C

User avatar
Senior | Next Rank: 100 Posts
Posts: 91
Joined: Wed Apr 01, 2009 9:53 pm
Thanked: 11 times

by Robinmrtha » Thu Jul 02, 2009 9:47 pm
the sum of the digits can be five
in the following cases
when the digits of the number are from the following sets
1. (0,0,0,5)
2.(1,0,0,4)
3.(1,2,2,0)
4.(3,2,0,0)
5.(3,1,1,0)
6.(2,1,1,1)

from set one the no. of digits with sum 5 = 4!/3!=4
from set two the no. of digits with sum 5 = 4!/2!=12
from set three the no. of digits with sum 5 = 4!/2!=12
from set four the no. of digits with sum 5 = 4!/2!=12
from set five the no. of digits with sum 5 = 4!/2!=12
from set six the no. of digits with sum 5 = 4!/3!=4

Therefore, the answer is 4 +12+12+12+12+4=56

OA C

Master | Next Rank: 500 Posts
Posts: 141
Joined: Sat Feb 28, 2009 8:19 am
Thanked: 1 times

by getso » Thu Jul 02, 2009 10:30 pm
Hi,

Could you please explain permutation part. I could not understand.

Thanks,
Shobha

User avatar
Senior | Next Rank: 100 Posts
Posts: 91
Joined: Wed Apr 01, 2009 9:53 pm
Thanked: 11 times

by Robinmrtha » Thu Jul 02, 2009 11:29 pm
lets take an example...
in how many ways the alphabets of the word apple be arranged to form new words(may not have meaning)

apple has 5 alphabets
where there are 2 ps...
so even if we interchange p the word will remain same...
so before we take this into consideration the permutation will be 5!
But since p is repeated...we got to divide 5! by 2!
i.e. 5!/2!

I have done the same in above explanation...
in set one total digits is 4 but there are 3 zeros....
so i have divided 4!/3!
hope this helps....