Permutation question involving seating

algebra-precalculuscombinatoricspermutations

In a class of 20 students having 20 chairs in 5 rows of 4 each. If the class has 10 boys and 10 girls, in how many ways, can the student's be placed in the chair's such that no boy is sitting in front of, behind, or next to another boy and no girl is sitting in front of, behind or next to another girl.

Please explain in detail.

Since I had just started this I am having no ideas about permutation formulas so please explain this answer by logical thinking.
Please NOTE:-I am just a highschool student seeking help from teachers. So please be calm and don't close my question

Best Answer

This is not so much abut permutations, but general combinatorial thinking.

Colour chairs black if a boy occupies it and white otherwise. You will see a chess board. Once you pick the colour of the upper left corner, there is a unique way to colour the chairs. So there are exactly two colourings.

Given a colouring, you have $10!$ ways to have the boys seated, and $10!$ ways to have the girls seated. (All right, this part is about permutations.)

So the number of solutions is $2\cdot 10!\cdot 10!$.

Related Question