Imagine 7 separate machines each reporting a number.
Each machine can report any number 0 through 5 as their result. For any given test, the sum of the results reported across all 7 machines always results in the number 5.
for example
- 1-1-1-1-1-0-0
- 5-0-0-0-0-0-0
- 0-2-3-0-0-0-0
- 0-1-0-0-4-0-0
- 0-1-1-0-2-0-1
Questions
- How many combinations of results are there?
- what's a better way to describe the problem?
Thank you
Update (follow on questions)
Since there are only 7 solutions, do we have to find out the combinations for each of the solutions and add them together?
- "1+1+1+1+1" has 21 combinations C(7,5)
- 1-1-1-1-1-0-0
- 0-1-1-1-1-0-1
- 1-0-1-1-1-0-1
- ...etc
"2+3" has 21 combinations C(7,2)
- 0-2-3-0-0-0-0
- 2-0-3-0-0-0-0
- 0-2-0-0-0-3-0
- ...etc
"5" has 7 combinations C(7,1)
- 5-0-0-0-0-0-0
- 0-5-0-0-0-0-0
- 0-0-5-0-0-0-0
- ...etc
- "4+1" has 21 combinations C(7,2)
- "1+1+3" has 35 combinations C(7,3)
- "2+1+1+1" has 35 combinations C(7,5)
- "2+2+1" has 35 combinations C(7,3)
175 combinations - does that sound about right?
The numbers of all 7 machines sum to 5, so this is essentially asking the number of ways to sort 5 objects into 7 containers. One way to do this is to add 6 dividers.
$$1st(container)|2nd|3rd|4th|5th|6th|7th$$ Each permutation of the 6 dividers and 5 objects(11 total) gives a different configuration. The number of ways to arrange 11 things is 11!. Since the order of the dividers do not matter, divide by 6!. If the objects are indistinguishable, then their order does not matter either, and divide by 5!. $$\frac{11!}{5!\cdot 6!}=462$$ Take a look at a simpler example - arranging 3 objects into 2 boxes. In this case, only 1 divider is needed. Objects to the left of the divider belong to box 1, objects to the right in box 2. In all cases, the sum is 3. $$***|$$ $$**|*$$ $$*|**$$ $$|***$$