JEE Main
Permutations And Combinations PYQJEE Main 2025 (Online) 23rd January Evening Shift
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 ________.
Solution
Answer: 17280
Required number of arrangements is 17280.
Case 1: All Boys Together
Treat the 5 boys as one block. Then there are 5 units: the boys' block and 4 girls.
Arrange This Case
The 5 units can be arranged in
So, ways
Case 2: No Two Boys Together
First arrange the 4 girls in
Arrange The Boys
Place the 5 boys in these 5 gaps in
So, ways
Add Both Cases
The two cases do not overlap, so the total number of ways is
