Mathematics · Permutations and Combinations
JEE Main 2026 — 8 April, Evening Shift — Question 27
A person has three different bags and four different books. The number of ways, in which he can put these books in the bags so that no bag is empty, is:
- Option A:
- Option B:Correct
- Option C:
- Option D:
Answer: B
Step-by-step solution
Method 1: Principle of Inclusion-Exclusion (PIE) This method involves calculating the total number of distributions and subtracting the cases where one or more bags are empty.
Total Distributions: Each of the 4 distinct books can be placed into any of the 3 distinct bags.
Cases with at least one empty bag: We choose 1 bag to be empty in ways and distribute the 4 books into the remaining 2 bags in ways.
Cases with at least two empty bags: We choose 2 bags to be empty in ways and distribute the 4 books into the remaining 1 bag in ways.
Applying PIE Formula:
Method 2: Grouping and Partitioning We can partition the 4 distinct books into 3 non-empty groups and then arrange those groups among the 3 bags. The only possible distribution size for 4 items into 3 non-empty groups is .
Grouping the books: The number of ways to divide 4 distinct objects into groups of size 2, 1, and 1 is:
(Note: We divide by because two groups are of equal size 1.)
Distributing to bags: Since the bags are distinct, we arrange these 3 groups in the 3 bags in ways.
Answer key and solution verified before publishing.
Practise Permutations and Combinations
Start with this question, then two more from the same chapter — with a tutor that explains every step. Free.
- Exam
- JEE Main 2026
- Subject
- Mathematics
- Chapter
- Permutations and Combinations
- Topic
- Distribution of Objects into Groups