Menu Close

How-many-five-digit-numbers-exist-such-that-the-sum-of-their-digits-equals-43-How-many-exist-if-the-sum-is-39-




Question Number 1164 by 112358 last updated on 08/Jul/15
How many five digit numbers  exist such that the sum of their  digits equals 43?   How many exist if the sum is  39?
Howmanyfivedigitnumbersexistsuchthatthesumoftheirdigitsequals43?Howmanyexistifthesumis39?
Commented by 123456 last updated on 08/Jul/15
a+b+c+d+e=k  a∈{1,2,3,...,9}  b,c,d,e∈{0,1,...,9}  k∈{39,43}  S_1 →k=39  S_2 →k=43
a+b+c+d+e=ka{1,2,3,,9}b,c,d,e{0,1,,9}k{39,43}S1k=39S2k=43
Answered by prakash jain last updated on 09/Jul/15
Five digits all 9s=45  To get 43 we need to subtract 2.  00011 can be subtracted in ((5!)/(3!2!)) ways.  00002 can be subtracted in ((5!)/(4!1!)) ways.  Total ways to form 5 digit number with  sum of digits 43=((5!)/(3!2!))+((5!)/(4!1!))=10+5=15
Fivedigitsall9s=45Toget43weneedtosubtract2.00011canbesubtractedin5!3!2!ways.00002canbesubtractedin5!4!1!ways.Totalwaystoform5digitnumberwithsumofdigits43=5!3!2!+5!4!1!=10+5=15
Commented by prakash jain last updated on 09/Jul/15
88999  89899   89989   89998  98899  98989   98998  99889  99898  99988  79999  97999   99799   99979  99997
889998989989989899989889998989989989988999898999887999997999997999997999997
Answered by prakash jain last updated on 09/Jul/15
To get sum 39 we need to subtract 6.  6 can be obtained by  4 1s and 1 2(11112)=((5!)/(4!1!))=5  3 1s, 1 0 and 1 3(11103)=((5!)/(3!1!1!))=20  2 1s, 1 0 and 2 2s(11022)=((5!)/(2!2!1!))=30  2 1s, 2 0s and 1 4(11004)=((5!)/(2!2!1!))=30  1 1s, 2 0s and 1 2, 1 3(10023)=((5!)/(2!1!1!1!))=60  1 1s, 3 0s and 1 5(10005)=((5!)/(1!3!1!))=20  0 1s, 3 2s and 2 0s(22200)=((5!)/(2!3!))=10  0 1s, 1 2 , 3 0and 1 4(20004)=((5!)/(3!))=20  0 1s, 0 2s , 2 3s (00033)=((5!)/(3!2!))=10  0 1s, 0 2s , 1 6 (00006)=((5!)/(1!4!))=5  Total=sum of all above.
Togetsum39weneedtosubtract6.6canbeobtainedby41sand12(11112)=5!4!1!=531s,10and13(11103)=5!3!1!1!=2021s,10and22s(11022)=5!2!2!1!=3021s,20sand14(11004)=5!2!2!1!=3011s,20sand12,13(10023)=5!2!1!1!1!=6011s,30sand15(10005)=5!1!3!1!=2001s,32sand20s(22200)=5!2!3!=1001s,12,30and14(20004)=5!3!=2001s,02s,23s(00033)=5!3!2!=1001s,02s,16(00006)=5!1!4!=5Total=sumofallabove.
Commented by 112358 last updated on 09/Jul/15
Thanks
Thanks
Commented by 112358 last updated on 09/Jul/15
There are a couple computation   errors but I understand the   solution.
ThereareacouplecomputationerrorsbutIunderstandthesolution.

Leave a Reply

Your email address will not be published. Required fields are marked *