wu :: forums
« wu :: forums - balls in bags »

Welcome, Guest. Please Login or Register.
Nov 28th, 2024, 4:48pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   easy
(Moderators: Icarus, Eigenray, towr, Grimbal, ThudnBlunder, william wu, SMQ)
   balls in bags
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: balls in bags  (Read 1146 times)
inexorable
Full Member
***





   


Posts: 211
balls in bags  
« on: Jan 7th, 2006, 11:47am »
Quote Quote Modify 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: male
Posts: 13730
Re: balls in bags  
« Reply #1 on: Jan 8th, 2006, 7:46am »
Quote Quote Modify 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 Undecided
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: balls in bags  
« Reply #2 on: Jan 8th, 2006, 2:39pm »
Quote Quote Modify 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: male
Posts: 13730
Re: balls in bags  
« Reply #3 on: Jan 8th, 2006, 11:58pm »
Quote Quote Modify 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: male
Posts: 7527
Re: balls in bags  
« Reply #4 on: Jan 9th, 2006, 12:54am »
Quote Quote Modify 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: male
Posts: 13730
Re: balls in bags  
« Reply #5 on: Jan 9th, 2006, 11:24am »
Quote Quote Modify 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
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: balls in bags  
« Reply #6 on: Jan 9th, 2006, 11:41am »
Quote Quote Modify Modify

m!/[k!^n * (m-n*k)!]  * choose(m-kn+n-1, m-kn)
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: balls in bags  
« Reply #7 on: Jan 10th, 2006, 12:28am »
Quote Quote Modify 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
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: balls in bags  
« Reply #8 on: Jan 10th, 2006, 5:55am »
Quote Quote Modify Modify

bah.. ambiguity..
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board