Enumeration found answer but need quick help

mahjk17

New member
Joined
May 29, 2012
Messages
45
"Find the number of seven-digit positive integers such that the sum of the digits is 19". Wouldnt the answer to this question just be 18 choose 6 ????
 
I don't have an efficient solution in mind, perhaps there is a better one. We have a seven-digit integer abcdegf such that a+b+c+d+e+f+g = 19. The restrictions are: 1<a<=9, and each of b through g may be any of 0 through 9 subject to the constraint.

When a=1, we find b+...+f=18. Count the number of all "valid" unordered 6-partitions of 18 with allowing 0.

In other words we need to find "the number of ways to put 18 objects into 6 labeled boxes, with the restriction that each box contains a maximum of 9 objects". This in of itself looks very messy, and you will have to sum 9 such values.

Let N(n,k) be "the number of ways to distribute n indistinguishable objects among k distinguishable boxes such that each box has at most 9 objects".

Then your solution is \(\displaystyle \sum_{a=1}^9 N(19-a,6)\)

I haven't the slightest idea what a formula for what N(n,k) might look like, hopefully something like that has been covered in you class. However your answer is 111,573, certainly not 18 choose 6.
 
Last edited:
Hello, mahjk17!

Find the number of seven-digit positive integers such that the sum of the digits is 19.
Wouldn't the answer to this question just be 18 choose 6 ? . . . . no

I think I understand your reasoning . . .


Place 19 objects in a row, inserting a space between them.

. . \(\displaystyle \circ\,\_\,\circ\,\_\,\circ\,\_\,\circ\,\_ \cdots \,\_\,\circ\,\_\,\circ \)


Select 6 of the spaces and insert "dividers".

So that: .\(\displaystyle \circ\,\circ\,\circ\,|\,\circ\,|\, \circ\, \circ\, \circ\, \circ\, |\,\circ\,|\,\circ\,\circ\,\circ\,\circ\,\circ\,| \,\circ\,\circ\,|\,\circ\,\circ\,\circ\)

. . . . . . . represents: \(\displaystyle 3141523.\)


The number of such numbers is: .\(\displaystyle _{18}C_6 \:=\:18,\!564\)

But none of your numbers include the digit "0" (zero).
 
Ohhh now I understand!! There is a restriction 1 through 9 because there are only 9 digits!!! I feel dumb for asking this question now, but thank you very much for clarifying all of you !!
 
Top