Solveeit Logo

Question

Question: The number of ways, 5 boys and 4 girls can sit in a row so that either all the boys sit together or ...

The number of ways, 5 boys and 4 girls can sit in a row so that either all the boys sit together or no two boys sit together, is _______.

Answer

17280

Explanation

Solution

Case I (All boys together):

  • Treat the 5 boys as a single block. Along with 4 girls, there are 55 units.
  • Arranging units: 5!=1205! = 120 ways.
  • Arranging boys within the block: 5!=1205! = 120 ways.
  • Total ways: 5!×5!=120×120=144005! \times 5! = 120 \times 120 = 14400.

Case II (No two boys together):

  • First arrange 4 girls: 4!=244! = 24 ways.
  • This creates 55 gaps (_ G _ G _ G _ G _) where 5 boys can be placed, one per gap.
  • Arranging boys: 5!=1205! = 120 ways.
  • Total ways: 4!×5!=24×120=28804! \times 5! = 24 \times 120 = 2880.

Combined total:

14400+2880=1728014400 + 2880 = 17280