# Thread: Permutations Question

1. ## Permutations Question

Hi,
Could anyone please explain why the answer of 302400 is derived from the following question:

A class committee consists of 5 boys, 3 girls and 2 teachers. They have to take a group photograph for the school magazine. Find the number of ways they can be arranged in a row such that the 2 teachers are together and no 2 girls are next to each other.

Thank you.

2. Originally Posted by tkexer
Hi,
Could anyone please explain why the answer of 302400 is derived from the following question:

A class committee consists of 5 boys, 3 girls and 2 teachers. They have to take a group photograph for the school magazine. Find the number of ways they can be arranged in a row such that the 2 teachers are together and no 2 girls are next to each other.

Thank you.
Soroban is brilliant at explaining such things. But let me try:

There are some tricks you should know to solve this problem:

Trick 1:

2 people always sit together, demands grouping them. Call them as single entity, that way they ill never be separated in your calculations. So group two teachers together and treat them as a boy.

Modified Problem:

A class committee consists of 6 boys, 3 girls . They have to take a group photograph for the school magazine. Find the number of ways they can be arranged in a row such that no 2 girls are next to each other.

Trick 2:

Whenever you want some set of objects always separated, then its a good idea to fix their position first. Consider the diagram below:

Code:
x1** G1**x2** G2**x3** G3***x4
G1,G2,G3 refer to the girls. This is one particular arrangement(You have 6 such arrangements).

Now lets take the 6 boys and distribute them around these girls.Since the problem does not want the girls to be together, put 1 boy between those girls. This means we can distribute the remaining four boys wherever we please. From the figure, there are x1 boys before G1, x2 boys between G1 and G2, x3 boys between G3 and G4, x4 boys after G4.

Trick 3:

We can always solve such a problem by solving an equivalent problem. Here the number of ways to distribute boys is the same as counting the number of solutions to the equation x1+x2+x3+x4 = 4.

I hope you know to solve such a problem. The number of solutions to this equation is $\displaystyle \binom{4+4-1}{4-1} = \binom{7}{3} = 35$

Finishing touch:

So the number of ways to the modified problem is 35. But that is not the number of arrangements.Remember that the girls can be rearranged in 6 different ways for each of the 35 boys distribution. Thus there are 6 x 35 ways to distribute boys and permute the girls. Notice again that the boys themselves can be permuted. Since there are 6 boys, they can be permuted in 6!=720 ways. So the total number of permutation is 6 x 35 x 720 ways.

Solution to the original problem:

Now lets solve the original problem. The only difference is one of the boys is actually a pair of teachers. And for each arrangement of the modified problem we can swap the teachers to get a new arrangement. Thus we have to multiply the solution by 2.

So the total number of arrangements is $\displaystyle 3! \times \binom{7}{3} \times 6! \times 2! = 302400$

3. Hello, tkexer!

Could anyone please explain why the answer is 302,400?

A class committee consists of 5 boys, 3 girls and 2 teachers.
They have to take a group photograph for the school magazine.
Find the number of ways they can be arranged in a row so that
the two teachers are together and no two girls are next to each other.

We have ten people: .$\displaystyle B_1, B_2, B_3, B_4, B_5, G_1, G_2, G_3, T_1, T_2$

First, duct-tape the two teachers together . . .
. . Then we have 9 "people: to arrange: .$\displaystyle \boxed{T_1T_2}, B_1, B_2, B_3, B_4, B_5, G_1, G_2, G_3$

Note that the two teachers could be taped in the order $\displaystyle \boxed{T_2T_1}$
. . So there are $\displaystyle {\color{blue}2}$ choices already.

Arrange the five boys and the teacher-unit in a row.
. . There are $\displaystyle 6!\:=\:{\color{blue}720}$ possible arrangements.

Take any one of these arrangements and insert "spaces" between the people:
. . $\displaystyle \_\:\boxed{TT}\:\_\:B\:\_\:B\:\_\:B\:\_\:B\:\_\:B\ :\_$

There are 7 spaces; choose 3 of them to place the girls.
. . There are: .$\displaystyle P(7,3) \:=\:7\cdot6\cdot5 \:=\:{\color{blue}210}$ ways.

Therefore, there are: .$\displaystyle 2 \times 720 \times 210 \:=\:{\color{red}302,400}$ ways.

4. Thank you Isomorphism and Soroban for your help. I now understand the theory behind this question as you guys have explained it in easy to understand detail.

Thanks again,
tkexer