Menu Close

How-many-natural-numbers-less-than-1000-have-the-sum-of-their-digits-equal-to-5-




Question Number 111541 by Aina Samuel Temidayo last updated on 04/Sep/20
How many natural numbers less than  1000 have the sum of their digits equal  to 5?
Howmanynaturalnumberslessthan1000havethesumoftheirdigitsequalto5?
Answered by nimnim last updated on 04/Sep/20
21.
21.
Answered by mr W last updated on 04/Sep/20
one digit numbers:  1 number    two digit numbers:  a+b=5  a∈[1,9]  b∈[0,9]  (x+x^2 +x^3 +...)(1+x+x^2 +x^3 +...)  =(x/((1−x)^2 ))  =xΣ_(k=0) ^∞ C_1 ^(k+1) x^k   coef. of x^5  is C_1 ^5 =5  ⇒5 numbers    three digit numbers:  (x+x^2 +x^3 +...)(1+x+x^2 +x^3 +...)^2   (x/((1−x)^3 ))=xΣ_(k=0) ^∞ C_2 ^(k+2) x^k   coef. of x^5  is C_2 ^6 =15  ⇒15 numbers    ⇒total 1+5+15=21 numbers
onedigitnumbers:1numbertwodigitnumbers:a+b=5a[1,9]b[0,9](x+x2+x3+)(1+x+x2+x3+)=x(1x)2=xk=0C1k+1xkcoef.ofx5isC15=55numbersthreedigitnumbers:(x+x2+x3+)(1+x+x2+x3+)2x(1x)3=xk=0C2k+2xkcoef.ofx5isC26=1515numberstotal1+5+15=21numbers
Commented by mr W last updated on 04/Sep/20
see also Q102816
seealsoQ102816
Commented by Aina Samuel Temidayo last updated on 04/Sep/20
For the two digit numbers and  three digit numbers,please how did you get  (x+x^2 +x^3 +...)(1+x^2 +x^3 +...) and   (x+x^2 +x^3 +...)(1+x^2 +x^3 +...)^2   respectively?
Forthetwodigitnumbersandthreedigitnumbers,pleasehowdidyouget(x+x2+x3+)(1+x2+x3+)and(x+x2+x3+)(1+x2+x3+)2respectively?
Commented by mr W last updated on 04/Sep/20
Answered by 1549442205PVT last updated on 04/Sep/20
The numbers have  three digits:  5=5+0+0=4+1+0=3+2+0=3+1+1  =2+2+1  (5,0,0):one number :500  (4,1,0):four numbers:410,401,104,140  (3,2,0):four numbers:320,302,203,230  (3,1,1):three nimbers:311,131,113  (2,2,1):three numbers:212,221,122  The numbers have two digits :  50,41,14,32,23  The numbers have one digits:5  Thus,all has 21 numbers smaller than  1000 sum their digits  whose equal to 5
Thenumbershavethreedigits:5=5+0+0=4+1+0=3+2+0=3+1+1=2+2+1(5,0,0):onenumber:500(4,1,0):fournumbers:410,401,104,140(3,2,0):fournumbers:320,302,203,230(3,1,1):threenimbers:311,131,113(2,2,1):threenumbers:212,221,122Thenumbershavetwodigits:50,41,14,32,23Thenumbershaveonedigits:5Thus,allhas21numberssmallerthan1000sumtheirdigitswhoseequalto5

Leave a Reply

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