Author |
Topic: balls in bags (Read 1146 times) |
|
inexorable
Full Member
Posts: 211
|
|
balls in bags
« on: Jan 7th, 2006, 11:47am » |
Quote Modify
|
m identical balls are to be placed in n distinct bags. You are given that m>=kn, where k is a natural number >=1. In how many ways can the balls be placed in the bags if each bag must contain atleast k balls?
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: balls in bags
« Reply #1 on: Jan 8th, 2006, 7:46am » |
Quote Modify
|
choose(m, kn) * choose(m-kn+n-1, m-kn) randomly pick the kn balls you have to put in the n bags then distribute the rest randomly. I'm not entirely convident though
|
|
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7527
|
|
Re: balls in bags
« Reply #2 on: Jan 8th, 2006, 2:39pm » |
Quote Modify
|
I'd say put k balls in each bag and count in how many ways you can arrange the m-kn remaining. The ways to put m-kn balls in n bags is Choose((m-kn)+n,n).
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: balls in bags
« Reply #3 on: Jan 8th, 2006, 11:58pm » |
Quote Modify
|
on Jan 8th, 2006, 2:39pm, Grimbal wrote:The ways to put m-kn balls in n bags is Choose((m-kn)+n,n). |
| I don't think so. n bags, means n-1 seperators. And the number of ways to put 3 balls in one bag is 1, not 4. And if you have to put two balls in two bags, one in each, you can do so in two ways. Put one in bag one first, or in bag two first, and then one in the other.
|
« Last Edit: Jan 8th, 2006, 11:59pm by towr » |
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7527
|
|
Re: balls in bags
« Reply #4 on: Jan 9th, 2006, 12:54am » |
Quote Modify
|
Uh... well, yes, there must be a -1 somewhere. Choose(m-kn+n-1,n-1) maybe?
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: balls in bags
« Reply #5 on: Jan 9th, 2006, 11:24am » |
Quote Modify
|
That solves half the problem. If m=k*n, as an obvious case, you'd always get 1, while I'd say it's clearly not. And I suppose it also discredits my first solution. for k=1 if m=n, there are m! ways to fill the bags
|
|
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7527
|
|
Re: balls in bags
« Reply #7 on: Jan 10th, 2006, 12:28am » |
Quote Modify
|
I'm not sure it is about the process of putting the balls. I think it is only about the end result. Or you could also consider cases where you put 2 balls at the same time, cases where you take out a ball you put in earlier, etc.
|
|
IP Logged |
|
|
|
|