| Thread Closed |
number of ways to place n balls into m boxes |
Share Thread | Thread Tools |
| Sep11-10, 03:03 AM | #1 |
|
|
number of ways to place n balls into m boxes
Let's consider a simple case with 2 balls and 3 boxes. Assuming all balls are the same and empty box is allowed. In addition, each box can take any number of ball. How many ways are there to place the balls into the boxes?
Here is my way to solve the problem. For the first ball, there are 3 ways to do so. For the second ball, still 3 ways. So total 9 ways to place 2 balls into 3 boxes. For the general way, my conclusion is [tex]m^n[/tex] But the answer is 2 0 0 0 2 0 0 0 2 1 0 1 0 1 1 1 1 0 There are only six ways. So what's wrong with my analysis? And what's the correct expression for this case? |
| Sep11-10, 12:42 PM | #2 |
|
|
You are overcounting. When you say:
1100, 0110, 0011, 1010, 1001, 0101 In the general case, this is counting the number of lenght n binary sequences with exactly k 0's and there is a well-known expression for this. |
| Sep14-10, 12:49 PM | #3 |
|
|
You're looking for the number of multinomial coefficients. It's given explicitly on wikipedia.
Anyways, the answer you're looking for is [tex]{m+n-1} \choose {n}[/tex] where [tex]m[/tex] is the number of boxes and [tex]n[/tex] is the number of balls. |
| Sep14-10, 02:04 PM | #4 |
|
|
number of ways to place n balls into m boxes
we can colocated the first ball at box 1, box 2 or box 3. Then you can put the second ball at box 1 box 2 or box 3, so, for one ball, you have 3 options, and are 2 ball. to generalize, if you have n balls, and m positions for each ball, the posibles combinations are equal to product m.n and you can verify than 2.3=6
|
| Sep16-10, 08:40 AM | #5 |
|
|
|
| Sep16-10, 09:01 PM | #6 |
|
|
answer is (m+n-1)¡ just like somebody sad.
n¡*(m-1)¡ |
| Sep16-10, 09:02 PM | #7 |
|
|
answer is (m+n-1)¡ just like somebody sad.
. n¡*(m-1)¡ |
| Sep16-10, 09:03 PM | #8 |
|
|
answer is (m+n-1)¡/n¡*(m-1)¡ just like somebody sad.
. |
| Sep17-10, 05:42 AM | #9 |
|
|
|
| Thread Closed |
| Thread Tools | |
Similar Threads for: number of ways to place n balls into m boxes
|
||||
| Thread | Forum | Replies | ||
| Counting balls in boxes | Precalculus Mathematics Homework | 4 | ||
| Balls and Boxes Complicated Problem | Set Theory, Logic, Probability, Statistics | 1 | ||
| Ways to place molecules | Introductory Physics Homework | 1 | ||
| Balls in Boxes, Probability Question | Set Theory, Logic, Probability, Statistics | 7 | ||
| Balls in boxes ( probability ) | Brain Teasers | 11 | ||