Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We would like to count how many ways 3 boys and 3 girls can sit in a row. How many ways can this be done if:

(b) all the girls sit together? Since all the girls must sit together, we treat the girls as a single unit. Then we have 4 people to arrange with 3! positions for 3 girls for a total of 4!3! ways to arrange them.

share|cite|improve this question
You’re forgetting that the girls can sit in $3!$ different orders within their block. – Brian M. Scott Jan 27 '13 at 0:53
The $4$ is what gave rise to your $4!$. – André Nicolas Jan 27 '13 at 0:56
thanks brian, i got it. 3! is the different ways the girls can sit next to each other since they are all different individuals – user59795 Jan 27 '13 at 0:57

Another way is to observe, as you did, that there are $4$ legal arrangements of the letters $b$ and $g$. For each of these arrangements, the boys can be placed in $3!$ ways, and for each of these placements, the girls can be arranged in $3!$ ways, for a total of $(4)(3!)(3!)$.

That way of thinking about things might be useful if instead we want, for example, the number of arrangements that have a girl at each end.

share|cite|improve this answer

There are $4!$ ways to arrange the four blocks, where each boy is one block, and the three girls together are the fourth block. Once you’ve done that, you can arrange the $3$ girls in $3!$ different orders within their block. Thus, for each arrangement of the blocks you get $3!$ arrangements of the people, for a total of $4!3!$ arrangements of the people.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.