Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2010-03-22 03:31:49

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Distinguishable objects in indistinguishable bins

The Rosen's book, problem 5.5 #50:
How many ways are there to distribute 5 distinguishable objects into 3 indistinguishable bins?

One approach to such problems I know is to imagine distinguishable objects as a long box with compartments, indistinguishable objects as balls and by looking at the balls and separators between compartments we are getting a string of "O" and "l" which can be permuted and that would be the answer...
The only problem here is that as far as I understand this approach, it works perfectly well if number of indistinguishable objects are greater than number of distinguishable.  But if number of distinguishable is greater (like in the problem) I am getting strings like:


a, b, c, d, e here are distinguishable objects represented as compartments. But with this representation I always have some empty compartments - distinguishable objects which are not in any indistinguishable bins...


Another, more promising, approach is to just make a list from letters and separators: "abcde||", "abcd|e|", etc. That would accurately represent distinguishable objects and distinguishable bins. But the original problem states that bins should be indistinguishable, so "abcde||" == "|abcde|" == "||abcde"...
.....hmm....
The process of writing this topic gave me an idea. If we define objects as O and bins as B, then to get the answer it should be enough to count the number of permutations of the string (

) and divide them by number of bins. Am I right or not?

I spent a week thinking about this problem and now I can not believe the answer can be so simple...

Offline

#2 2010-03-22 03:51:43

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Re: Distinguishable objects in indistinguishable bins

No, the answer is not so simple.
"abcde||" == "|abcde|" == "||abcde" == "acdeb||" == "ecbad||" == etc...
All permutations of objects inside one bin should be treated as the same combination.
The number of combinations where all objects are inside one of the bins is


When we move one object to another bin we have

When we move two objects to another bin we have

etc...

But how to squeeze all that in one nice formula???

Offline

#3 2010-03-22 10:49:29

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Distinguishable objects in indistinguishable bins

Hi White_Owl;

I am getting 41 ways to put 5 distinguishable objects into 3 indistinguishable bins.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#4 2010-03-22 16:25:55

soroban
Member
Registered: 2007-03-09
Posts: 452

Re: Distinguishable objects in indistinguishable bins


. .





















Edit: Corrected a really silly error . . . *blush*
.

Last edited by soroban (2010-03-23 05:13:38)

Offline

#5 2010-03-22 16:54:48

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Distinguishable objects in indistinguishable bins

Hi;

Here is how I get 41:

First the number of ways to  distribute 5 distinguishable objects into 3 indistinguishable bins.

http://2000clicks.com/MathHelp/Counting … Boxes.aspx

http://webcache.googleusercontent.com/s … l=en&gl=us

The answer is the sum of the stirling numbers of the second kind.

They are computed like this:

To distribute n distinguishable objects into k indistinguishable bins.

It can also be done by using the tables provided in the links

stirling2(5,1) + stirling2(5,2) + stirling2(5,3) = 1 + 15 + 25 = 41

By direct count, distribute a,b,c,d,e into 1,2 and 3 bins.

1 + 15 + 25 = 41


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#6 2010-03-23 01:42:54

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Re: Distinguishable objects in indistinguishable bins

bobbym wrote:

Here is how I get 41:


To distribute n distinguishable objects into k indistinguishable bins.

Wow! Now I would need another week to decipher it.
Thank you.

Offline

#7 2010-03-23 02:24:18

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Re: Distinguishable objects in indistinguishable bins

soroban, Sorry, you made two mistakes:

soroban wrote:




soroban wrote:

And here you forgot the very first case with all objects together. So the final summation should be

Offline

#8 2010-03-23 14:20:00

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Distinguishable objects in indistinguishable bins

Hi White_Owl;

Now I would need another week to decipher it.

It is just the sum of the stirling numbers of the second kind. Actually soroban did a really nice job on this problem.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#9 2010-03-24 01:52:20

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Re: Distinguishable objects in indistinguishable bins

bobbym wrote:

It is just the sum of the stirling numbers of the second kind.

The problem with "stirling number of the second kind" is that I did not read about them yet smile

bobbym wrote:

Actually soroban did a really nice job on this problem.

Yes, he sure did.

Offline

#10 2010-03-25 09:04:55

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Re: Distinguishable objects in indistinguishable bins

Ok... I finished the chapter 5.5 and at the end of it I found the description of this formula. So I tried to do a manual calculation and received -41 (negative 41)... After a while I realized that I made a mistake in writing formula down and replaced the i with j in one place (powered -1 before the binom).
But now I have an interesting equality:


I wonder, is it correct or not? How do we prove the equations with
in it? By induction?

Offline

#11 2010-03-25 15:17:23

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Distinguishable objects in indistinguishable bins

Hi;

I am not getting that as an identity yet, because when you try

You get:

8,-8


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#12 2010-03-26 01:30:38

White_Owl
Member
Registered: 2010-03-03
Posts: 106

Re: Distinguishable objects in indistinguishable bins

Ok, then how about this one? smile

Offline

#13 2010-03-26 14:29:05

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Distinguishable objects in indistinguishable bins

Hi White_Owl;

Not yet:

n = 5, k = 4 yields  151 / 3 for the LHS and 51  for the RHS.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#14 2010-03-27 05:33:36

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: Distinguishable objects in indistinguishable bins

As a general principle in mathematics, if your formula is off for one number, it is probably off for infinitely many others.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

Board footer

Powered by FluxBB