Solving Combinatorics Problem: Distributing 20 Candies Among 6 Children

In summary: The total number of ways will be the sum of all these cases, which is 102 487. This is also the same as the instructor's version of the solution. So, in summary, both solutions are correct but the study guide's solution has some errors in its calculations.
  • #1
vector
15
0
Hello Everyone,

There is one interesting exercise in which it is asked to solve the following problem:

In how many ways can we distribute 20 candies among 6 children so that the youngest gets at most 2 candies?

This is my version of the solution:

Case 1: youngest child gets no candies, thus we have to distribute the 20 candies among 5 children, so we have C(20+5-1, 5) = 42 504

Case 2: youngest child gets one candy, thus we give him one candy, and then we have 19 candies to distribute between the other 5 children: C(19+5-1, 5) = 33 649

Case 3: youngest child gets two candies, so we give him two, and then we have 18 candies to distribute among the other 5 children: C(18+5-1, 5) = 26 334

And the total comes to 42 504 + 26 334 + 33 649 = 102 487 ways to distribute the candies.

This is the instructor's version of the solution, whose answer matches the answer in the study guide:

You have x1 + x2 + x3 + x4 + x5 + x6 = 20
Nw we will discuss x1, consider y1=x1-i where i is 0, 1, or 2..

So for i=0 we still have x1=y1 and then we still have x1 + x2 + x3 + x4 + x5 + x6 = 20 now I think we can consider x1 as x1=0 is a "choice".

To understand my point if you consider x1=1 then using you thinking we will get to x2 + x3 + x4 + x5 + x6 =19 and the answer will be C(19+5-1,19)=C(23,19) however.

If you consider i=1 so x1=y1+1 and then the answer will be C(19+6-1,16)=C(24,19), so 6 is always kept for all cases.


My question is: which solution is correct?
 
Mathematics news on Phys.org
  • #2
If the candies are distinct, then your solution is correct. On the other hand, if they are identical then the instructor's version is correct.
 
  • #3
Adithyan, I'm probably missing some important point. Let me explain.

Here's the solution in the study guide:

Case one, x1=0. The youngest child gets zero candies: x1+x2+x3+x4+x5+x6=20. Now, they say, in this case we have C(20+6-1, 20) = 53,130.

But here's my view: in this equation, we have all six x's, representing all six children. So, we are calculating the number of ways 20 candies can be distributed among the six children, including the youngest child, because x1 can vary from 0 to 20. Shouldn't we exclude x1 altogether, if it represents the youngest child who gets 0 candies?

Case two, the youngest child gets two candies. The study guide says that we must have y1+x2+x3+x4+x5+x6=19, where y1=x1-1.

But in this case, aren't we distributing 19 candies among six children, as opposed to 19 candies which should be distributed among five children (because one candy has already been given to the youngest child)?

Likewise for the third case.

Thank you :)
 
  • #4
I agree with you. I think the solution is incorrect. As you have pointed out, all we have to do is make three cases (i.e, x1=0, x1=1 and x1=2) and distribute the remaining chocolates to the other five kids.
 
  • #5


I would say that both solutions are correct. They just use different approaches to solve the problem. The first solution uses the concept of combinations to calculate the number of ways to distribute the candies, while the second solution uses the concept of generating functions to solve the problem. Both methods are valid and can lead to the same answer. It ultimately depends on the preference and understanding of the individual solving the problem. In mathematics and science, there can be multiple ways to solve a problem, as long as the solution is mathematically sound and leads to the correct answer.
 

Related to Solving Combinatorics Problem: Distributing 20 Candies Among 6 Children

1. How many ways can the 20 candies be distributed among the 6 children?

There are 38760 ways to distribute the 20 candies among 6 children using combinatorics.

2. Is there a specific method or formula for solving this type of combinatorics problem?

Yes, there is a formula for solving this type of problem known as the combination formula: nCr = n! / (r!(n-r)!), where n is the total number of objects (in this case, 20 candies) and r is the number of objects chosen (in this case, 6 children).

3. Can the candies be distributed equally among the 6 children?

No, since 20 is not divisible by 6, the candies cannot be distributed equally among the 6 children.

4. What is the probability of a specific child receiving a certain number of candies?

The probability would depend on the number of candies and children involved. In this case, with 20 candies and 6 children, the probability of a specific child receiving a certain number of candies can range from 0 to 1.

5. Are there any real-life applications of solving combinatorics problems?

Yes, combinatorics is used in various fields such as computer science, genetics, economics, and physics. It can be applied to problems involving combinations, permutations, and probability, making it a useful tool in problem-solving and decision making.

Similar threads

  • General Math
Replies
4
Views
1K
  • General Math
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
6
Views
9K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
152
  • Precalculus Mathematics Homework Help
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
Replies
1
Views
550
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
4K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
Back
Top