Counting Balls in Boxes: Finding Solutions with Upper-Bound on Number of Balls

  • Thread starter Thread starter noblerare
  • Start date Start date
  • Tags Tags
    Balls Counting
AI Thread Summary
The discussion revolves around finding the number of ways to distribute 20 distinct balls into 5 distinct boxes, ensuring no box contains more than 10 balls. The initial approach involves using combinations to determine the total arrangements and then subtracting cases where any box exceeds the limit. Participants clarify the notation for combinations, specifically \binom{r-s+k-1}{k-1}, which helps in understanding the problem. The solution requires both combinatorial calculations and the application of the principle of inclusion-exclusion to account for the upper-bound constraint. Overall, the conversation emphasizes the need for a systematic approach to tackle the problem effectively.
noblerare
Messages
49
Reaction score
0

Homework Statement



Specifically,

How many ways can you divide up 20 distinct balls into 5 distinct boxes so that no box contains more than 10 balls?

Homework Equations


This is similar to another problem in which we have to find the number of ways to divide up r balls into k boxes.

x_1+x_2+x_3+\ldots+x_k = r where each x_i \geq 0

This is equal to \binom{r+k-1}{k-1}

If, we set a lower-bound on the number of balls in boxes, say, each box must contain at least s balls, then the answer is: \binom{r-s+k-1}{k-1}.

My question is: How do I go about setting an upper-bound for the number of balls in each box?

The Attempt at a Solution



In my problem, I have to find the solutions for:
x_1+x_2+x_3+x_4+x_5 = 20 such that each x_i \leq 10

I am unsure how to start or approach this problem. Any help would be greatly appreciated.
 
Physics news on Phys.org
bump, can anybody help?
 
I'm not sure what this notation means:

\binom{r-s+k-1}{k-1}

Firstly work out how many ways there are to put 20 different balls in 5 different boxes, this is a nice easy bit of stats you can look up on wiki (combinations/permutations). Once you have this number you need to take away all the permutations where there are more than 10 balls in a box, slightly more challenging :)
 
Kelley said:
I'm not sure what this notation means:

\binom{r-s+k-1}{k-1}

Firstly work out how many ways there are to put 20 different balls in 5 different boxes, this is a nice easy bit of stats you can look up on wiki (combinations/permutations). Once you have this number you need to take away all the permutations where there are more than 10 balls in a box, slightly more challenging :)


It's another way of writing <br /> <br /> ^nC_r<br /> <br />
 
snshusat161 said:
It's another way of writing <br /> <br /> ^nC_r<br /> <br />

Ah...

Makes sense!
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top