QlarIITy

MathematicsJEE Main 2026 · 4 AprilSingle correct

The number of ways, of forming a queue of 44 boys and 33 girls such that all the girls are not together, is:

  1. Option A: 50405040
  2. Option B: 30503050
  3. Option C: 34103410
  4. Option D: 43204320
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. For a negative condition, count the positive case and subtract it from the total.

Concept refresher. The number of arrangements of nn distinct objects in a row is n!n!. If kk of them must stay together, glue them into one block: the block and the other n−kn - k objects can be arranged in (n−k+1)!(n - k + 1)! ways, and the block itself in k!k! ways, so

Ntogether=(n−k+1)!⋅k!N_{\text{together}} = (n - k + 1)! \cdot k!

valid for 1≤k≤n1 \leq k \leq n. The arrangements in which the kk objects are not all together number n!−Ntogethern! - N_{\text{together}}.

Picture the situation. Seven distinct children stand in a row. All the girls are not together means the three girls do not all stand side by side; two of them may still be next to each other.

Approach. Count all queues, count the queues with the three girls in one block, and subtract.

  1. Step 1: Count all queues

    With no condition, the seven children are distinct objects in a row, so every order counts:

    7!=50407! = 5040
  2. Step 2: Count the queues with the girls together

    Glue the three girls into one block; the block and the four boys are five objects, and the girls can be ordered inside the block:

    5!⋅3!=120⋅6=7205! \cdot 3! = 120 \cdot 6 = 720
  3. Step 3: Take the complement

    The queues in which the girls are not all together are the rest:

    5040−720=43205040 - 720 = 4320

Answer. (D) 43204320

Sanity check. The count with no two girls next to each other is only 4!⋅5C3⋅3!=14404! \cdot {}^5C_3 \cdot 3! = 1440, which is smaller than 43204320, as it must be, since not all three together is a weaker condition.

Why the other options are wrong

  • (A) The value 5040=7!5040 = 7! counts every queue of the seven children; the 5!⋅3!=7205! \cdot 3! = 720 queues with all three girls together still have to be removed.
  • (B) The value 3050=5040−19903050 = 5040 - 1990 would need 19901990 queues with the three girls together, but treating the girls as one block gives 5!⋅3!=7205! \cdot 3! = 720 such queues.
  • (C) The value 3410=5040−16303410 = 5040 - 1630 would need 16301630 queues with the girls together, but that count is 5!⋅3!=7205! \cdot 3! = 720, and 5040−720=43205040 - 720 = 4320.

Key takeaway

The trap. Treating all the girls are not together as no two girls together, which gives 14401440 instead.

How toppers think. They read the exact condition, then decide between the gap method and the complement.

Remember. kk objects together among nn give (n−k+1)!⋅k!(n - k + 1)! \cdot k! arrangements.

More on Permutations