Maths Question 9 – JEE-MAIN 2026
🧠 Full Solution Path
We have 4 different books and 3 different bags. Each book can be placed in any of the 3 bags. Therefore, the total number of ways to distribute the 4 books into the 3 bags without any restrictions is
We need to subtract the cases where one or more bags are empty. Using the Principle of Inclusion-Exclusion:
1. **At least one bag is empty:** Choose 1 bag to be empty in
2. **At least two bags are empty:** Choose 2 bags to be empty in
3. **All three bags are empty:** Choose 3 bags to be empty in
The number of ways where at least one bag is empty is
Remember to alternate signs in the Inclusion-Exclusion Principle.
The number of ways to put the books in the bags so that no bag is empty is the total number of ways minus the number of ways where at least one bag is empty.
This problem can also be solved using Stirling numbers of the second kind:
