QlarIITy

MathematicsJEE Main 2022 · 29 JulyInteger

The number of matrices of order 3×33 \times 3, whose entries are either 0 or 1 and the sum of all the entries is a prime number, 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. For a matrix of zeros and ones, the sum of the entries counts the ones.

Concept refresher. The number of ways to choose rr positions out of nn is

nCr=n!r!(n−r)!{}^{n}C_r = \dfrac{n!}{r!(n - r)!}

Picture the situation. A matrix of order 3 has nine entries, each 0 or 1. Their sum is the number of entries equal to 1, a whole number from 0 to 9. The primes in that range are 2, 3, 5 and 7, and for each the positions of the entries 1 are chosen freely.

Approach. List the possible prime sums and choose the positions of the ones for each.

  1. Step 1: The possible sums

    The sum of the nine entries is the number of entries equal to 1, and it must be one of the primes 2, 3, 5 or 7.

  2. Step 2: The count

    Choosing the positions of the entries 1 for each prime gives

    9C2+9C3+9C5+9C7=36+84+126+36=282\begin{aligned} &{}^{9}C_2 + {}^{9}C_3 + {}^{9}C_5 + {}^{9}C_7 \\[4pt] &= 36 + 84 + 126 + 36 = 282 \end{aligned}

Answer. 282

Sanity check. There are 29=5122^9 = 512 matrices in all, so a little more than half of them have a prime sum.

Common wrong answers

  • 291: Counting 1 as a prime adds 9C1=9{}^{9}C_1 = 9 and gives 291.

Key takeaway

The trap. The number one is not a prime, so a single entry one does not count.

How toppers think. They list the primes in the possible range before counting anything.

Remember. nCr=n!r!(n−r)!{}^{n}C_r = \dfrac{n!}{r!(n - r)!}

More on Types of Matrices