QlarIITy

MathematicsJEE Main 2022 · 27 JuneInteger

The number of ways, 16 identical cubes, of which 11 are blue and rest are red, can be placed in a row so that between any two red cubes there should be at least 2 blue cubes, is ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A row of two kinds of identical objects is fixed by the sizes of the gaps.

Concept refresher. The number of solutions of x1+x2+…+xk=nx_1 + x_2 + \ldots + x_k = n in non-negative integers is

N=n+k−1Ck−1N = {}^{n+k-1}C_{k-1}

A variable that must be at least mm is replaced by mm plus a new non-negative variable.

Picture the situation. There are 5 red cubes and 11 blue cubes, and cubes of the same colour are identical. The red cubes divide the row into 6 gaps: one before the first red cube, four between neighbouring red cubes, and one after the last. A row is fixed by the number of blue cubes in each gap, and each of the four inner gaps needs at least 2.

Five red cubes, each marked R, in a row. The six gaps before, between and after them are labelled g0 to g5, where the blue cubes go.

Approach. Describe the row by its gaps, fill the minimum, and count the free sharings of the rest.

  1. Step 1: The gaps

    Let g0g_0 be the number of blue cubes before the first red cube, g1g_1 to g4g_4 the numbers between red cubes, and g5g_5 the number after the last. Then g0+g1+…+g5=11g_0 + g_1 + \ldots + g_5 = 11 with g1,g2,g3,g4≥2g_1, g_2, g_3, g_4 \geq 2.

  2. Step 2: Count

    Putting 2 blue cubes in each inner gap uses 8 and leaves 3 to share freely among the 6 gaps, which can be done in 3+5C5=8C5=56{}^{3+5}C_5 = {}^8C_5 = 56 ways.

Answer. 56

Sanity check. The 3 spare blue cubes can go all in one gap in 6 ways, as 2 and 1 in 30 ways, or as 1, 1, 1 in 20 ways, which adds to 56.

Common wrong answers

  • 792: Requiring only 1 blue cube between red cubes gives 12C5=792{}^{12}C_5 = 792.

Key takeaway

The trap. The two end gaps may be empty; only the inner gaps have a minimum.

How toppers think. They fill the minimum in each inner gap first and share out what is left.

Remember. N=n+k−1Ck−1N = {}^{n+k-1}C_{k-1}

More on Distribution Problems