QlarIITy

MathematicsJEE Main 2021 · 24 FebruaryInteger

Let MM be any 3×33 \times 3 matrix with entries from the set {0,1,2}\{0, 1, 2\}. The maximum number of such matrices, for which the sum of diagonal elements of MTMM^TM is seven, 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. The trace of the transpose times the matrix is the sum of the squares of all the entries.

Concept refresher. The diagonal entries of ATAA^TA are the sums of the squares of the columns of AA, so its trace is the sum of the squares of all the entries:

tr⁡(ATA)=∑aij2\operatorname{tr}(A^TA) = \sum a_{ij}^2

Picture the situation. The sum of the diagonal elements of MTMM^TM is the sum of the squares of all nine entries of MM. The entries 0, 1 and 2 have squares 0, 1 and 4. So the question is in how many ways nine such squares can add to 7.

Approach. List the patterns of entries whose squares add to seven and count the placements of each.

  1. Step 1: The possible patterns

    Two entries equal to 2 would already give 8, so at most one entry is 2. With one entry 2 the remaining squares add to 3, so three entries are 1. With no entry 2, seven entries are 1.

  2. Step 2: The count

    One entry 2 and three entries 1 can be placed in 9×8C3=5049 \times {}^{8}C_3 = 504 ways, and seven entries 1 in 9C7=36{}^{9}C_7 = 36 ways. The total is 504+36=540504 + 36 = 540.

Answer. 540

Sanity check. Check the first pattern: one entry 2 and three entries 1 give 4+1+1+1=74 + 1 + 1 + 1 = 7.

Common wrong answers

  • 504: Missing the pattern of seven entries equal to 1 gives only 504.
  • 36: Counting only the pattern of seven entries equal to 1 gives 36.

Key takeaway

The trap. A total can be reached by more than one pattern of squares, and every pattern must be counted.

How toppers think. They bound the number of large entries first, which limits the patterns quickly.

Remember. tr⁡(MTM)=∑mij2\operatorname{tr}(M^TM) = \sum m_{ij}^2

More on Transpose & Properties