Last visit was: 25 Apr 2024, 17:53 It is currently 25 Apr 2024, 17:53

Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
SORT BY:
Date
Tags:
Show Tags
Hide Tags
Intern
Intern
Joined: 11 Jul 2012
Posts: 39
Own Kudos [?]: 205 [102]
Given Kudos: 25
GMAT 1: 650 Q49 V29
Send PM
Most Helpful Reply
Math Expert
Joined: 02 Sep 2009
Posts: 92915
Own Kudos [?]: 619032 [31]
Given Kudos: 81595
Send PM
User avatar
Director
Director
Joined: 22 Mar 2011
Posts: 520
Own Kudos [?]: 2136 [20]
Given Kudos: 43
WE:Science (Education)
Send PM
General Discussion
SVP
SVP
Joined: 17 Nov 2007
Posts: 2408
Own Kudos [?]: 10036 [5]
Given Kudos: 361
Concentration: Entrepreneurship, Other
Schools: Chicago (Booth) - Class of 2011
GMAT 1: 750 Q50 V40
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
4
Kudos
1
Bookmarks
Expert Reply
Another way:

\(N = 3^5 - 3*2^5 + 3 = 243 - 96 + 3 = 150\)

\(3^5\) - the total number of ways to put 5 different balls into 3 different boxes. Each ball has 3 possible options (boxes)

\(3*2^5 - 3\) - the total number of ways to put 5 different balls into 1 or 2 different boxes out of 3 (to leave at least 1 box empty).
Intern
Intern
Joined: 11 Jul 2012
Posts: 39
Own Kudos [?]: 205 [0]
Given Kudos: 25
GMAT 1: 650 Q49 V29
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
EvaJager wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


Since the balls are all of different colors, let's permute them and then decide how many balls we put in each box.
For example, arrange in a row the balls, then decide: two balls go into the first box, next two in the second box, and the last ball goes to the third box.
Since in each box there must be at least one ball, we have the possibilities of (2,2,1), (2,1,2), (1,2,2) OR (3,1,1), (1,3,1), (1,1,3) balls in the three boxes.
For the 2,2,1 type arrangements, we have [5!/(2!2!1!)]*3 = 90 possibilities. Inside a box, it doesn't matter the order of the balls.
For the 3,1,1 type arrangements, we have [5!/(3!1!1!)]*3 = 60 possibilities.

Total of 90 + 60 = 150 possibilities.

Answer D.


Could you please break down the highlighted part and explain how are you getting those figures.....
User avatar
Director
Director
Joined: 22 Mar 2011
Posts: 520
Own Kudos [?]: 2136 [1]
Given Kudos: 43
WE:Science (Education)
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
1
Bookmarks
avaneeshvyas wrote:
EvaJager wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


Since the balls are all of different colors, let's permute them and then decide how many balls we put in each box.
For example, arrange in a row the balls, then decide: two balls go into the first box, next two in the second box, and the last ball goes to the third box.
Since in each box there must be at least one ball, we have the possibilities of (2,2,1), (2,1,2), (1,2,2) OR (3,1,1), (1,3,1), (1,1,3) balls in the three boxes.
For the 2,2,1 type arrangements, we have [5!/(2!2!1!)]*3 = 90 possibilities. Inside a box, it doesn't matter the order of the balls.
For the 3,1,1 type arrangements, we have [5!/(3!1!1!)]*3 = 60 possibilities.

Total of 90 + 60 = 150 possibilities.

Answer D.


Could you please break down the highlighted part and explain how are you getting those figures.....


If there would not have been boxes, 5 different balls we could arrange in 5! = 120 ways.
Now look at a given arrangement of the 5 balls, let's say ABCDE. Because we have three different boxes, then the following arrangements are possible:

|AB| |CD| |E|; |AB| |C| |DE|; |A| |BC| |DE| - these are all 2,2,1 type scenarios

and they are considered different arrangements (this would give 5! * 3 possibilities), EXCEPT THAT, inside each box, if we have more than one ball, order doesn't matter. So, when in a box we have for example AB, this is the same as BA, we don't mind whether A or B was put first into the box. Therefore, we should divide by k! whenever we have in a box k balls. 1! doesn't change the value of the expression, I left them just for the completeness of the formula.

Similar reasoning applies for the 3,1,1 scenario.
User avatar
Manager
Manager
Joined: 16 Feb 2011
Posts: 148
Own Kudos [?]: 919 [0]
Given Kudos: 78
Schools:ABCD
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
EvaJager wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


Since the balls are all of different colors, let's permute them and then decide how many balls we put in each box.
For example, arrange in a row the balls, then decide: two balls go into the first box, next two in the second box, and the last ball goes to the third box.
Since in each box there must be at least one ball, we have the possibilities of (2,2,1), (2,1,2), (1,2,2) OR (3,1,1), (1,3,1), (1,1,3) balls in the three boxes.
For the 2,2,1 type arrangements, we have [5!/(2!2!1!)]*3 = 90 possibilities. Inside a box, it doesn't matter the order of the balls.
For the 3,1,1 type arrangements, we have [5!/(3!1!1!)]*3 = 60 possibilities.

Total of 90 + 60 = 150 possibilities.

Answer D.



Eva,
I was able to compute the combinations for distributing balls in 2-2-1 and 3-1-1 way. However, I used 3! for the arrangement of the boxes. Let's say that the boxes are labeled X Y and Z -- and we are using (2,2,1) type of placement of balls. Wouldn't the order of boxes matter? i.e. 3!? That is, I could have any of the three boxes in the first spot, 2 for the second spot and 1 for the third one?

Example : abcde are balls and three boxes are xyz =>
X=[AB] Y=[cd] Z=[e]
X[AB] Z[e] Y[cd] .... (repeat two rows three times) = 6

I am a bit confused. Still thinking....Please help me. thanks
User avatar
Director
Director
Joined: 22 Mar 2011
Posts: 520
Own Kudos [?]: 2136 [1]
Given Kudos: 43
WE:Science (Education)
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
1
Kudos
voodoochild wrote:
EvaJager wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


Since the balls are all of different colors, let's permute them and then decide how many balls we put in each box.
For example, arrange in a row the balls, then decide: two balls go into the first box, next two in the second box, and the last ball goes to the third box.
Since in each box there must be at least one ball, we have the possibilities of (2,2,1), (2,1,2), (1,2,2) OR (3,1,1), (1,3,1), (1,1,3) balls in the three boxes.
For the 2,2,1 type arrangements, we have [5!/(2!2!1!)]*3 = 90 possibilities. Inside a box, it doesn't matter the order of the balls.
For the 3,1,1 type arrangements, we have [5!/(3!1!1!)]*3 = 60 possibilities.

Total of 90 + 60 = 150 possibilities.

Answer D.



Eva,
I was able to compute the combinations for distributing balls in 2-2-1 and 3-1-1 way. However, I used 3! for the arrangement of the boxes. Let's say that the boxes are labeled X Y and Z -- and we are using (2,2,1) type of placement of balls. Wouldn't the order of boxes matter? i.e. 3!? That is, I could have any of the three boxes in the first spot, 2 for the second spot and 1 for the third one?

Example : abcde are balls and three boxes are xyz =>
X=[AB] Y=[cd] Z=[e]
X[AB] Z[e] Y[cd] .... (repeat two rows three times) = 6

I am a bit confused. Still thinking....Please help me. thanks


You keep the boxes fixed, you permute the balls.
For example, if you have in the boxes |AB| |CD| |E|. This is obtained from ABCDE.
You also have |CD| |E| |AB|, which is obtained from CDEAB, an arrangement already included in the 5! permutations of the balls.

For any permutation of the balls, in the 2,2,1, scenario (meaning there are two boxes with two balls and one box with one ball), you need the factor of 3 because there are 3 possibilities:
|AB| |CD| |E|
|AB| |C| |DE|
|A| |BC| |DE|

So, you have a total of 5! * 3 arrangements. But here we count each arrangement 4 times, which is 2! * 2!. For example:
AB in the first box is the same as BA, and CD in the second box is the same as DC.
All the arrangements
|AB| |CD| |E|
|BA| |CD| |E|
|AB| |DC| |E|
|BA| |DC| |E|
should be counted just once.

Therefore, 5!*3/(2! * 2! * 1!).
Tutor
Joined: 16 Oct 2010
Posts: 14823
Own Kudos [?]: 64923 [9]
Given Kudos: 426
Location: Pune, India
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
6
Kudos
3
Bookmarks
Expert Reply
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


I did it the way walker did since we can avoid enumerating by using that method i.e. we avoid (3, 1, 1), (2, 2, 1) etc. When required to enumerate, there is a chance that we might forget one of the possible combinations (though in this question it doesn't matter much since number of balls is small). Do visit that solution properly too. In this question, consider it an exercise in lots of PnC concepts.

In how many ways can you distribute 5 different balls in 3 different boxes such that a box may get no ball? (we will later subtract those cases in which one or two boxes are empty)
Each ball can be placed in any of the 3 boxes so there are 3 ways to place a ball.
Since there are 5 balls, we can place all the balls in 3*3*3*3*3 = 3^5 ways

Only one box empty:
In how many ways can you distribute the 5 different balls in 2 different boxes such that both boxes have at least one ball? (we want to find the cases in which one and only one box will be empty)
Select the empty box in 3 ways. Each ball can be placed in any of the 2 boxes. So 5 balls can be placed in 2*2*2*2*2 = 2^5 ways. Out of 2^5, subtract those cases where the balls are all in 1 box only. This happens in 2 ways since you can select an empty box again out of the two in 2 ways. Total number of ways = 3*(2^5 - 2).

2 boxes empty:
In how many ways can you distribute the 5 balls in only 1 box? In 3 ways since you select a box in 3 ways.

You can distribute 5 balls in 3 boxes such that no box is empty in 3^5 - 3*(2^5 - 2) - 3 = 243 - 90 - 3 = 150 ways

For a discussion on distribution of objects, check out these posts too:
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... 93-part-1/
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... s-part-ii/
User avatar
Director
Director
Joined: 22 Mar 2011
Posts: 520
Own Kudos [?]: 2136 [3]
Given Kudos: 43
WE:Science (Education)
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
2
Kudos
1
Bookmarks
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


This is the beauty of combinatorics: doesn't matter how you execute your plan (here, that of distributing some balls in boxes), if the stages are correctly translated into mathematical expressions, you always get the correct answer. We have already seen three different approaches to solve the question.
Just for the fun, I tried to reach the correct answer with another scenario:

Two stages:
1) Distribute one ball in each box, to be sure that there is at least one ball in each box. This can be done in 5*4*3 = 60 ways, boxes are distinct, order matters.
Continue with stage:
2) Place the remaining 2 balls.
Here we have two possibilities:
2a) Either both balls will be placed in one of the 3 boxes - OR -
2b) Each ball will be placed in a separate box.

For 1 and 2a) - 60*3/3 = 60; 3 possibilities to choose the box that will get the remaining 2 balls; divide by 3, because in the box with the 3 balls, it doesn't matter which ball was placed in at stage 1, it could be any of the final 3 balls.

For 1 and 2b) - 60*3*2/4 = 90; 3 possibilities to choose the box that will not get an extra ball, which is equivalent to choosing 2 boxes that will each get an extra ball; 2 possibilities to place the remaining balls in the 2 different boxes; divide by 4 = 2*2, because in those 2 boxes with 2 balls, it doesn't matter in which order the 2 balls arrived, stage 1 or stage 2b).

Again, we obtain the total of 60 + 90 = 150 possibilities.
User avatar
Manager
Manager
Joined: 16 Feb 2011
Posts: 148
Own Kudos [?]: 919 [0]
Given Kudos: 78
Schools:ABCD
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
EvaJager wrote:
voodoochild wrote:
EvaJager wrote:
Since the balls are all of different colors, let's permute them and then decide how many balls we put in each box.
For example, arrange in a row the balls, then decide: two balls go into the first box, next two in the second box, and the last ball goes to the third box.
Since in each box there must be at least one ball, we have the possibilities of (2,2,1), (2,1,2), (1,2,2) OR (3,1,1), (1,3,1), (1,1,3) balls in the three boxes.
For the 2,2,1 type arrangements, we have [5!/(2!2!1!)]*3 = 90 possibilities. Inside a box, it doesn't matter the order of the balls.
For the 3,1,1 type arrangements, we have [5!/(3!1!1!)]*3 = 60 possibilities.

Total of 90 + 60 = 150 possibilities.

Answer D.



Eva,
I was able to compute the combinations for distributing balls in 2-2-1 and 3-1-1 way. However, I used 3! for the arrangement of the boxes. Let's say that the boxes are labeled X Y and Z -- and we are using (2,2,1) type of placement of balls. Wouldn't the order of boxes matter? i.e. 3!? That is, I could have any of the three boxes in the first spot, 2 for the second spot and 1 for the third one?

Example : abcde are balls and three boxes are xyz =>
X=[AB] Y=[cd] Z=[e]
X[AB] Z[e] Y[cd] .... (repeat two rows three times) = 6

I am a bit confused. Still thinking....Please help me. thanks


You keep the boxes fixed, you permute the balls.
For example, if you have in the boxes |AB| |CD| |E|. This is obtained from ABCDE.
You also have |CD| |E| |AB|, which is obtained from CDEAB, an arrangement already included in the 5! permutations of the balls.

For any permutation of the balls, in the 2,2,1, scenario (meaning there are two boxes with two balls and one box with one ball), you need the factor of 3 because there are 3 possibilities:
|AB| |CD| |E|
|AB| |C| |DE|
|A| |BC| |DE|

So, you have a total of 5! * 3 arrangements. But here we count each arrangement 4 times, which is 2! * 2!. For example:
AB in the first box is the same as BA, and CD in the second box is the same as DC.
All the arrangements
|AB| |CD| |E|
|BA| |CD| |E|
|AB| |DC| |E|
|BA| |DC| |E|
should be counted just once.

Therefore, 5!*3/(2! * 2! * 1!).


Eva,
Thanks for your help. I think that I see your point. Do you think that if the boxes are placed on a rack in a store (order of the three boxes will matter -correct?), then we will have to multiply by 3!? That is, for 2-2-1 case, 5C2*3C2*1*(3!) ---Please let me know your thoughts....

{ My approach:
Here's how I approached this problem :- for 2-2-1 case, the combinations will be 5C2*3C2*1C1 (choose 2 balls from 5 balls - then - choose 2 balls from the remaining 3 balls - then - choose 1 ball from 1 ball)

Now, since the boxes are labeled differently, we need to permute them. I initially thought of multiplying by 3! because of these combinations :
X[AB] Y[cd] Z[e]
X[AB] Z[e] Y[cd]
X[CD] Y[AB] Z[e]
X[CD] Z[e] Y[AB]
X[e] Y[AB] Z[CD]
X[e] Z[CD] Y[AB]
........ditto for 3-1-1 case.
}

I am a bit confused.


Thanks
User avatar
Director
Director
Joined: 22 Mar 2011
Posts: 520
Own Kudos [?]: 2136 [0]
Given Kudos: 43
WE:Science (Education)
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
voodoochild wrote:
EvaJager wrote:
voodoochild wrote:

Eva,
I was able to compute the combinations for distributing balls in 2-2-1 and 3-1-1 way. However, I used 3! for the arrangement of the boxes. Let's say that the boxes are labeled X Y and Z -- and we are using (2,2,1) type of placement of balls. Wouldn't the order of boxes matter? i.e. 3!? That is, I could have any of the three boxes in the first spot, 2 for the second spot and 1 for the third one?

Example : abcde are balls and three boxes are xyz =>
X=[AB] Y=[cd] Z=[e]
X[AB] Z[e] Y[cd] .... (repeat two rows three times) = 6

I am a bit confused. Still thinking....Please help me. thanks


You keep the boxes fixed, you permute the balls.
For example, if you have in the boxes |AB| |CD| |E|. This is obtained from ABCDE.
You also have |CD| |E| |AB|, which is obtained from CDEAB, an arrangement already included in the 5! permutations of the balls.

For any permutation of the balls, in the 2,2,1, scenario (meaning there are two boxes with two balls and one box with one ball), you need the factor of 3 because there are 3 possibilities:
|AB| |CD| |E|
|AB| |C| |DE|
|A| |BC| |DE|

So, you have a total of 5! * 3 arrangements. But here we count each arrangement 4 times, which is 2! * 2!. For example:
AB in the first box is the same as BA, and CD in the second box is the same as DC.
All the arrangements
|AB| |CD| |E|
|BA| |CD| |E|
|AB| |DC| |E|
|BA| |DC| |E|
should be counted just once.

Therefore, 5!*3/(2! * 2! * 1!).


Eva,
Thanks for your help. I think that I see your point. Do you think that if the boxes are placed on a rack in a store (order of the three boxes will matter -correct?), then we will have to multiply by 3!? That is, for 2-2-1 case, 5C2*3C2*1*(3!) ---Please let me know your thoughts....

{ My approach:
Here's how I approached this problem :- for 2-2-1 case, the combinations will be 5C2*3C2*1C1 (choose 2 balls from 5 balls - then - choose 2 balls from the remaining 3 balls - then - choose 1 ball from 1 ball)

Now, since the boxes are labeled differently, we need to permute them. NO! I initially thought of multiplying by 3! because of these combinations :
X[AB] Y[cd] Z[e]
X[AB] Z[e] Y[cd]
X[CD] Y[AB] Z[e]
X[CD] Z[e] Y[AB]
X[e] Y[AB] Z[CD]
X[e] Z[CD] Y[AB]
........ditto for 3-1-1 case.
}

I am a bit confused.

Thanks



You don't permute the boxes! Once the boxes are defined, they are unique. You called them X, Y, Z. Place them on a shelf, nailed them down, don't touch them!!! The question is not about arranging the boxes on a shelf, it's about their contents. Even if you would arrange the boxes in a different order, say Y, X, Z, what matters is only their content and not the order in which they are displayed.

For the combinatorial approach, see Bunuel and Walker's solutions.

Here, I was playing a different game. I was permuting the balls and then decide (define) the boxes.

Try to understand each solution separately, and don't mix between them.
User avatar
Director
Director
Joined: 22 Mar 2011
Posts: 520
Own Kudos [?]: 2136 [0]
Given Kudos: 43
WE:Science (Education)
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
VeritasPrepKarishma wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


I did it the way walker did since we can avoid enumerating by using that method i.e. we avoid (3, 1, 1), (2, 2, 1) etc. When required to enumerate, there is a chance that we might forget one of the possible combinations (though in this question it doesn't matter much since number of balls is small). Do visit that solution properly too. In this question, consider it an exercise in lots of PnC concepts.

In how many ways can you distribute 5 different balls in 3 different boxes such that a box may get no ball? (we will later subtract those cases in which one or two boxes are empty)
Each ball can be placed in any of the 3 boxes so there are 3 ways to place a ball.
Since there are 5 balls, we can place all the balls in 3*3*3*3*3 = 3^5 ways

Only one box empty:
In how many ways can you distribute the 5 different balls in 2 different boxes such that both boxes have at least one ball? (we want to find the cases in which one and only one box will be empty)
Select the empty box in 3 ways. Each ball can be placed in any of the 2 boxes. So 5 balls can be placed in 2*2*2*2*2 = 2^5 ways. Out of 2^5, subtract those cases where the balls are all in 1 box only. This happens in 2 ways since you can select an empty box again out of the two in 2 ways. Total number of ways = 3*(2^5 - 2).

2 boxes empty:


In how many ways can you distribute the 5 balls in only 1 box? In 3 ways since you select a box in 3 ways.

You can distribute 5 balls in 3 boxes such that no box is empty in 3^5 - 3*(2^5 - 2) - 3 = 243 - 90 - 3 = 150 ways

For a discussion on distribution of objects, check out these posts too:
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... 93-part-1/
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... s-part-ii/


Just a remark:

...avoid enumerating by using that method i.e. we avoid (3, 1, 1), (2, 2, 1) etc. When required to enumerate, there is a chance that we might forget one of the possible combinations (though in this question it doesn't matter much since number of balls is small).

There is no need for enumeration, I wrote them down because the list is indeed short. For each scenario, there are 3C1=3, 3C2=3, possibilities, respectively.
User avatar
Manager
Manager
Joined: 13 Jul 2013
Posts: 54
Own Kudos [?]: 43 [0]
Given Kudos: 21
GMAT 1: 570 Q46 V24
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
VeritasPrepKarishma wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


I did it the way walker did since we can avoid enumerating by using that method i.e. we avoid (3, 1, 1), (2, 2, 1) etc. When required to enumerate, there is a chance that we might forget one of the possible combinations (though in this question it doesn't matter much since number of balls is small). Do visit that solution properly too. In this question, consider it an exercise in lots of PnC concepts.

In how many ways can you distribute 5 different balls in 3 different boxes such that a box may get no ball? (we will later subtract those cases in which one or two boxes are empty)
Each ball can be placed in any of the 3 boxes so there are 3 ways to place a ball.
Since there are 5 balls, we can place all the balls in 3*3*3*3*3 = 3^5 ways

Only one box empty:
In how many ways can you distribute the 5 different balls in 2 different boxes such that both boxes have at least one ball? (we want to find the cases in which one and only one box will be empty)
Select the empty box in 3 ways. Each ball can be placed in any of the 2 boxes. So 5 balls can be placed in 2*2*2*2*2 = 2^5 ways. Out of 2^5, subtract those cases where the balls are all in 1 box only. This happens in 2 ways since you can select an empty box again out of the two in 2 ways. Total number of ways = 3*(2^5 - 2).


2 boxes empty:
In how many ways can you distribute the 5 balls in only 1 box? In 3 ways since you select a box in 3 ways.

You can distribute 5 balls in 3 boxes such that no box is empty in 3^5 - 3*(2^5 - 2) - 3 = 243 - 90 - 3 = 150 ways

For a discussion on distribution of objects, check out these posts too:
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... 93-part-1/
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... s-part-ii/


Can someone please explain the text I have marked in Red?
Tutor
Joined: 16 Oct 2010
Posts: 14823
Own Kudos [?]: 64923 [0]
Given Kudos: 426
Location: Pune, India
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
Expert Reply
theGame001 wrote:
VeritasPrepKarishma wrote:
avaneeshvyas wrote:
Five balls of different colors are to be placed in three different boxes such that any box contains at least 1 ball . What is the maximum number of different ways in which this can be done?

A. 60
B. 90
C. 120
D. 150
E. 180


Please provide a small note of explanation for all the combinations used in the solution.


I did it the way walker did since we can avoid enumerating by using that method i.e. we avoid (3, 1, 1), (2, 2, 1) etc. When required to enumerate, there is a chance that we might forget one of the possible combinations (though in this question it doesn't matter much since number of balls is small). Do visit that solution properly too. In this question, consider it an exercise in lots of PnC concepts.

In how many ways can you distribute 5 different balls in 3 different boxes such that a box may get no ball? (we will later subtract those cases in which one or two boxes are empty)
Each ball can be placed in any of the 3 boxes so there are 3 ways to place a ball.
Since there are 5 balls, we can place all the balls in 3*3*3*3*3 = 3^5 ways

Only one box empty:
In how many ways can you distribute the 5 different balls in 2 different boxes such that both boxes have at least one ball? (we want to find the cases in which one and only one box will be empty)
Select the empty box in 3 ways. Each ball can be placed in any of the 2 boxes. So 5 balls can be placed in 2*2*2*2*2 = 2^5 ways. Out of 2^5, subtract those cases where the balls are all in 1 box only. This happens in 2 ways since you can select an empty box again out of the two in 2 ways. Total number of ways = 3*(2^5 - 2).


2 boxes empty:
In how many ways can you distribute the 5 balls in only 1 box? In 3 ways since you select a box in 3 ways.

You can distribute 5 balls in 3 boxes such that no box is empty in 3^5 - 3*(2^5 - 2) - 3 = 243 - 90 - 3 = 150 ways

For a discussion on distribution of objects, check out these posts too:
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... 93-part-1/
https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2011/12 ... s-part-ii/


Can someone please explain the text I have marked in Red?


You have 3 boxes. YOu want to keep exactly one empty. This means the other two must have at least one ball. Say the boxes are A, B and C. In how many ways can you choose to have exactly one box empty?
A empty, B and C non empty
B empty, A and C non empty
C empty, A and B non empty

Basically you can select the box you will keep empty in 3 ways.

Now you have to put 5 balls in 2 boxes (say e.g. B and C) such that both boxes have at least one ball.

For each ball, there are two options: box B or box C
So you can put in 5 balls in 2*2*2*2*2 = 2^5 ways.
But this includes cases where all ball are put in one box only. How many such cases are there? All balls could go in box B and box C could be empty. All balls could go in box C and box B would be empty. Only these two cases are possible. So out of the 2^5 cases, you need to remove these two cases because you must have at least one ball in each of the two boxes, B and C.

No of ways in which you have all balls in exactly two boxes = 3*(2^5 - 2)
User avatar
Manager
Manager
Joined: 12 Feb 2012
Posts: 105
Own Kudos [?]: 216 [0]
Given Kudos: 28
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
How many ways can you distribute 5 marbles in 3 identical baskets such that each basket gets at least 1 marble.

I am trying to solve this problems using as many approaches:

The correct answer is:
we can pick distribute the marbles in two such ways:
3-1-1 or 2-2-1.
For the 3-1-1. We choose 3 marbles for the 1st basket. (5C3). 1 for the 2nd basket (2C1) and from the remaining marble (1C1).
We then divide by 2!. I know it has something to do with the the fact we are putting 1 marble into the 2 baskets but what is the intuition?? How do you if you have to divide by n!?? This is what I am not getting. After we have (5C3)(2C1)(1C1) does the problem become... " How many ways can we rearrange the digits 311?" Ans: 3!/(2!1!)

If I choose 3 people out of 5 for a soccer game its 5*4*3/3!. I divide by 3! Because order does not matter. How does this translate to the above problem?
Director
Director
Joined: 17 Dec 2012
Posts: 589
Own Kudos [?]: 1519 [0]
Given Kudos: 20
Location: India
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
Expert Reply
alphabeta1234 wrote:
How many ways can you distribute 5 marbles in 3 identical baskets such that each basket gets at least 1 marble.

I am trying to solve this problems using as many approaches:

The correct answer is:
we can pick distribute the marbles in two such ways:
3-1-1 or 2-2-1.
For the 3-1-1. We choose 3 marbles for the 1st basket. (5C3). 1 for the 2nd basket (2C1) and from the remaining marble (1C1).
We then divide by 2!. I know it has something to do with the the fact we are putting 1 marble into the 2 baskets but what is the intuition?? How do you if you have to divide by n!?? This is what I am not getting. After we have (5C3)(2C1)(1C1) does the problem become... " How many ways can we rearrange the digits 311?" Ans: 3!/(2!1!)

If I choose 3 people out of 5 for a soccer game its 5*4*3/3!. I divide by 3! Because order does not matter. How does this translate to the above problem?


Hi,

You see the constraint that each basket has to have at least 1 marble. So put 1 marble in each basket. We have 2 marbles remaining. This can be distibuted among 2 baskets or put in just 1 basket. The former can be done in 3C2 ways and the latter in 3C1 ways. So there are totally 6 possible ways you can do this.

I assume the marbles are identical. So you do not have to consider 5C3.
Manager
Manager
Joined: 18 Jul 2013
Posts: 69
Own Kudos [?]: 359 [0]
Given Kudos: 120
Location: Italy
GMAT 1: 600 Q42 V31
GMAT 2: 700 Q48 V38
GPA: 3.75
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
Hi i did it that way and i don't understand why i'm wrong:

We can have two distributions:

1. 3-1-1 one box gets three balls, the 2 other boxes only 1

It is equivalent as to make 3 groups ordered out of 5 objects (as there are 3 different boxes)

So 5C3 * 2C1 * 1C1 = 20

2. 1-2-2 one box gets one ball and the remaining two boxes get two balls each.

It is equivalent as to make 3 groups ordered out of 5 objects (as there are 3 different boxes)

So 5C1 * 4C2 * 2C2 = 30

so 50 solutions.. :evil:
Tutor
Joined: 16 Oct 2010
Posts: 14823
Own Kudos [?]: 64923 [4]
Given Kudos: 426
Location: Pune, India
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
4
Kudos
Expert Reply
oss198 wrote:
Hi i did it that way and i don't understand why i'm wrong:

We can have two distributions:

1. 3-1-1 one box gets three balls, the 2 other boxes only 1

It is equivalent as to make 3 groups ordered out of 5 objects (as there are 3 different boxes)

So 5C3 * 2C1 * 1C1 = 20

2. 1-2-2 one box gets one ball and the remaining two boxes get two balls each.

It is equivalent as to make 3 groups ordered out of 5 objects (as there are 3 different boxes)

So 5C1 * 4C2 * 2C2 = 30

so 50 solutions.. :evil:


The boxes are different B1, B2, B3
When you split the balls 3-1-1, which box gets 3 balls? You first select a box which gets 3 balls. You can do this in 3 ways - select B1 or B2 or B3.
Now select 3 of the 5 balls for this box in 5C3 ways. Now you have 2 balls and 2 boxes one for each ball so you can distribute them in 2 ways.
This gives 3*5C3*2 = 60.

Same problem for 2-2-1 case. You multiply by another 3 and you get 3*30 = 90

Total 60+90 = 150
avatar
Intern
Intern
Joined: 29 Jan 2013
Posts: 25
Own Kudos [?]: 114 [0]
Given Kudos: 24
Send PM
Re: Five balls of different colors are to be placed in three different box [#permalink]
when can we use (n-1)C(r-1) ?
It is equal to number of ways of dividing n things tor people where each can receive atleast 1? isnt it the case here?
GMAT Club Bot
Re: Five balls of different colors are to be placed in three different box [#permalink]
 1   2   
Moderators:
Math Expert
92915 posts
Senior Moderator - Masters Forum
3137 posts

Powered by phpBB © phpBB Group | Emoji artwork provided by EmojiOne