QlarIITy

MathematicsJEE Main 2022 · 25 JuneInteger

Let AA be a 3×33 \times 3 matrix having entries from the set {−1,0,1}\{-1, 0, 1\}. The number of all such matrices AA having sum of all the entries equal to 5, 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 sum of entries from minus one, zero and one depends only on how many are positive and how many negative.

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. Each of the nine entries is −1-1, 0 or 1. If pp entries are 1 and qq entries are −1-1, the sum of all entries is p−qp - q. The sum 5 can therefore arise in a few ways, limited by the nine positions available.

Approach. List the possible pairs of counts and count the placements for each.

  1. Step 1: The possible counts

    The sum is 5 when p−q=5p - q = 5, and p+q≤9p + q \leq 9. So (p,q)(p, q) is (5,0)(5, 0), (6,1)(6, 1) or (7,2)(7, 2).

  2. Step 2: Placing the entries

    Choosing the positions of the entries 1, and then of the entries −1-1 among the rest, gives 9C5=126{}^{9}C_5 = 126, 9C6×3C1=252{}^{9}C_6 \times {}^{3}C_1 = 252 and 9C7×2C2=36{}^{9}C_7 \times {}^{2}C_2 = 36 matrices.

  3. Step 3: The total

    Adding the counts of the three cases gives 126+252+36=414126 + 252 + 36 = 414 matrices in all.

Answer. 414

Sanity check. The case (8,3)(8, 3) would need 11 positions, more than the 9 available, so the list of cases is complete.

Common wrong answers

  • 246: Counting only the positions of the entries 1, 126+84+36126 + 84 + 36, gives 246; the entries −1-1 must be placed too.

Key takeaway

The trap. After the positive entries are placed, the negative ones still have several possible positions.

How toppers think. They list the cases by the pair of counts and stop when the positions run out.

Remember. p−q=5p - q = 5, p+q≤9p + q \leq 9

More on Types of Matrices