JEE Main 2026 · 8 April · evening · Single correct · +4 / −1

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 :

  1. (a) 18
  2. (b) 36
  3. (c) 39
  4. (d) 72
Answer and solution

Answer (b) 36

Solution

Maths sir · 4 steps

Four books, three bags, none empty: one bag must get two books, so pick that pair first.

  1. Only possible split. Every bag needs at least one book, and there are only 4 books for 3 bags. So the books must split as 2, 1, 1: one bag gets two books and the other two bags get one each.
  2. Choose the pair. Choose which two books go together: ⁴C₂ = 6 ways. The other two books stay as single groups, so you now have three different groups.
  3. Place the groups. The bags are different, so the three groups can go into the three bags in 3! = 6 ways.

    ⁴C₂ × 3! = 6 × 6 = 36

  4. So. There are 36 ways. As a check, inclusion–exclusion gives the same count: 3⁴ - 3 × 2⁴ + 3 × 1⁴ = 81 - 48 + 3 = 36, which is option (b).

The idea to keep. To share distinct objects among distinct boxes with none empty, first list the possible group sizes. Then count the ways to form the groups and multiply by the ways to send them to the boxes.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Permutations & Combinations

Asked about 160 times in JEE Main since 2020. This question is from 2026.