QlarIITy

MathematicsJEE Main 2026 · 8 AprilSingle correct

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. Option A: 1818
  2. Option B: 3636
  3. Option C: 3939
  4. Option D: 7272
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. With no bag empty, the books split as 2,1,12, 1, 1, so choose the pair and arrange three groups in three bags.

Concept refresher. The number of ways to place nn distinct objects into kk distinct boxes with no box empty is, by inclusion and exclusion,

∑i=0k(−1)i kCi (k−i)n\sum_{i=0}^{k} (-1)^i\ {}^kC_i\ (k - i)^n

valid for n≥kn \geq k. Equivalently, split the objects into kk non-empty groups and arrange the groups in the kk distinct boxes.

Picture the situation. Four different books go into three different bags with none empty, so the sizes must be 2,1,12, 1, 1: one bag holds a pair and the other two hold one book each.

Approach. Count by grouping, choosing the pair and then arranging the three groups, and confirm with inclusion and exclusion.

  1. Step 1: Choose the pair

    The only split of four books into three non-empty groups is 2+1+12 + 1 + 1, so first choose the two books that share a bag:

    4C2=6{}^4C_2 = 6
  2. Step 2: Place the three groups

    The pair and the two single books are three different groups, and the bags are different, so the groups can be put in the bags in 3!=63! = 6 ways. The total is

    6×6=366 \times 6 = 36
  3. Step 3: Check by inclusion and exclusion

    All placements number 343^4; those that miss a chosen bag number 242^4 each, and those that use only one bag number 141^4 each:

    34−3⋅24+3⋅14=81−48+3=363^4 - 3 \cdot 2^4 + 3 \cdot 1^4 = 81 - 48 + 3 = 36

Answer. (B) 3636

Sanity check. With books a,b,c,da, b, c, d and the pair {a,b}\{a, b\}, the six orders of {a,b}\{a, b\}, cc, dd in three bags are all different; six pairs times six orders gives 3636, and no arrangement can arise from two different pairs.

Why the other options are wrong

  • (A) Choosing the pair in 4C2=6{}^4C_2 = 6 ways and its bag in 33 ways gives 1818, but the two single books can still be placed in the other two bags in 22 ways, so the count is 3636.
  • (C) Inclusion and exclusion with the last term doubled gives 34−3⋅24+3⋅2=393^4 - 3 \cdot 2^4 + 3 \cdot 2 = 39; with exactly one bag used there are 3⋅14=33 \cdot 1^4 = 3 placements, so the count is 81−48+3=3681 - 48 + 3 = 36.
  • (D) Putting one book in each bag first, 4⋅3⋅2=244 \cdot 3 \cdot 2 = 24 ways, and then the fourth book in any of 33 bags gives 7272, but each arrangement is reached twice, once for each book of the pair placed first.

Key takeaway

The trap. Placing one book in each bag and then the fourth anywhere, which counts each arrangement twice.

How toppers think. They list the possible group sizes first, so every arrangement is counted exactly once.

Remember. Onto placements of nn distinct objects in kk distinct boxes number ∑i=0k(−1)i kCi (k−i)n\sum_{i=0}^{k}(-1)^i\ {}^kC_i\ (k - i)^n.

More on Distribution Problems