document.write( "Question 1131553: In how many ways can 6 people be seated in a row if\r
\n" ); document.write( "\n" ); document.write( "(a) Persons A and B must sit next to each other?\r
\n" ); document.write( "\n" ); document.write( "(b) There are 3 men and 3 women, no 2 men and 2 women can sit next to each other?
\n" ); document.write( "

Algebra.Com's Answer #748238 by greenestamps(13216)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "(a) A and B must sit together.

\n" ); document.write( "(1) Consider A and B as a \"single person\". Then there are 5 \"people\" to be seated; this can be done in 5! = 120 ways.
\n" ); document.write( "(2) In the group of A and B, the two can be seated in either of 2 different orders.

\n" ); document.write( "ANSWER: 120*2 = 240 ways.

\n" ); document.write( "(b) 3 men and 3 women; no 2 men and no 2 women can sit next to each other (i.e., the seating must alternate men and women).

\n" ); document.write( "Consider seating the people one at a time, from the beginning of the row.

\n" ); document.write( "(1) Any of the 6 people can be seated first: 6 choices
\n" ); document.write( "(2) Without loss of generality, suppose the first person seated was a woman. Then the second person seated must be one of the 3 men: 3 choices
\n" ); document.write( "(3) The third person seated must be one of the remaining 2 women: 2 choices
\n" ); document.write( "(4) The fourth person must be another man: 2 choices
\n" ); document.write( "(5) The fifth person must be the 3rd woman: 1 choice
\n" ); document.write( "(6) The sixth person must be the 3rd man: 1 choice

\n" ); document.write( "The total number of ways to seat the 6 people is the product of the numbers of choices for each seat.

\n" ); document.write( "ANSWER: 6*3*2*2*1*1 = 72 ways
\n" ); document.write( "
\n" );