MedVision ad

I forgot how to do stars and bars (1 Viewer)

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
^

In how many ways can five students be placed in three distinct rooms so that no room is empty?


Please demo, thanks
 

InteGrand

Well-Known Member
Joined
Dec 11, 2014
Messages
6,109
Gender
Male
HSC
N/A
^

In how many ways can five students be placed in three distinct rooms so that no room is empty?


Please demo, thanks
Stars and bars would be if the five objects to be placed (students here) were identical, which is not the case here. One way to do it is as follows.

Call the rooms 1, 2, 3. Let U be the set of all possible arrangements without restrictions, and let Sk be the set of all arrangements if room k is empty (k = 1, 2, 3). Then we are after the value of |S1c ∩ S2c ∩ S3c|, which is equal to |U| – |S1 ∪ S2 ∪ S3|.

Since the students and rooms are distinct, we have |U| = 35 (each student could go in any of three rooms).

Now, note |S1| = 25 (if room 1 is empty, each of the five students can go in one of two rooms). By symmetry, |S2| = |S3| = 25.

Now, |S1 ∩ S2| = 1 (if rooms 1 and 2 are to be empty, only one way to arrange the students, namely by putting them all in the last room). By symmetry, the other two pairwise intersections have cardinality 1.

Also, |S1 ∩ S2 ∩ S3| = 0 (if all rooms are empty, 0 ways to arrange the students).

So

Answer = |U| – |S1 ∪ S2 ∪ S3|

= |U| – (3|S1| – 3|S1 ∩ S2| + |S1 ∩ S2 ∩ S3|) (using the inclusion/exclusion principle)

= 35 – (3×25 – 3×1 + 0)

= 150.
 
Last edited:

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
Far out. Forgot about the identical condition. (Thanks lol I needed it for some other things)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top