QlarIITy

MathematicsJEE Main 2021 · 16 MarchInteger

The total number of 3×33 \times 3 matrices AA having enteries from the set {0,1,2,3}\{0, 1, 2, 3\} such that the sum of all the diagonal entries of AATAA^T is 9, is equal to

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 a matrix times its transpose is the sum of the squares of all the entries.

Concept refresher. The diagonal entries of AATAA^T are the sums of the squares of the rows of AA, so its trace is the sum of the squares of all the entries:

tr⁡(AAT)=∑aij2\operatorname{tr}(AA^T) = \sum a_{ij}^2

Picture the situation. The sum of the diagonal entries of AATAA^T is the sum of the squares of all nine entries of AA. The entries 0, 1, 2 and 3 have squares 0, 1, 4 and 9. So the question is in how many ways nine such squares can add to 9.

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

  1. Step 1: The patterns

    The squares add to 9 in four ways: one entry 3 and the rest 0; two entries 2 and one entry 1; one entry 2 and five entries 1; or all nine entries equal to 1.

  2. Step 2: The counts

    One entry 3 can be placed in 9 ways. Two entries 2 and one entry 1 can be placed in 9C2×7=252{}^{9}C_2 \times 7 = 252 ways. One entry 2 and five entries 1 can be placed in 9×8C5=5049 \times {}^{8}C_5 = 504 ways. All entries 1 gives 1 matrix.

  3. Step 3: The total

    Adding the counts for the four patterns gives 9+252+504+1=7669 + 252 + 504 + 1 = 766 matrices.

Answer. 766

Sanity check. Check the patterns: 99, 4+4+14 + 4 + 1, 4+5×14 + 5 \times 1 and 9×19 \times 1 all equal 9, and three entries 2 would already give 12.

Common wrong answers

  • 765: Missing the matrix with every entry equal to 1 gives 765.
  • 757: Missing the 9 matrices with a single entry 3 gives 757.

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 list the patterns by the largest entry present.

Remember. tr⁡(AAT)=∑aij2\operatorname{tr}(AA^T) = \sum a_{ij}^2

More on Transpose & Properties