QlarIITy

MathematicsJEE Advanced 2017 · Paper 2Single correct

How many 3×33\times3 matrices MM with entries from {0,1,2}\{0,1,2\} are there, for which the sum of the diagonal entries of MTMM^TM is 55?

  1. Option A: 126
  2. Option B: 198
  3. Option C: 162
  4. Option D: 135
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A transpose-product trace is the sum of squares of every original entry.

Concept refresher. The j-th diagonal entry of the transpose times a matrix is the dot product of its j-th column with itself. If the entries of M are denoted by the corresponding row and column indices, then

(MTM)jj=∑i=13mij2(M^TM)_{jj}=\sum_{i=1}^{3}m_{ij}^2

Summing the three diagonal entries includes every original matrix entry exactly once as a square:

tr⁡(MTM)=∑j=13∑i=13mij2\operatorname{tr}(M^TM)=\sum_{j=1}^{3}\sum_{i=1}^{3}m_{ij}^2

There are nine original positions, all distinct. The source condition is therefore a condition on nine squares, not only on the original matrix diagonal. No symmetry, orthogonality or invertibility is required.

Picture the situation. An entry zero contributes zero, an entry one contributes one, and an entry two contributes four. The case diagram separates the possible numbers of twos. Within each branch, the nonzero values are fixed and only their positions vary. Entries in different rows or columns remain different positions; exchanging a two and a one generally produces a different matrix.

The nine original entries contribute squares zero, one or four to a total of five. Branch one has zero twos and five ones, with 126 placements. Branch two has one two and one one, with 9 times 8=72 placements. The cases are disjoint and total 198.

Approach. Use the trace identity, bound the number of twos from the total five, and list the complete possibilities for the remaining ones. Count placements in each disjoint case, fill every other position with zero, and add the case counts.

  1. Step 1: Replace the product condition by a square-sum condition

    Let the number of entries equal to one be a, and the number equal to two be b. All remaining entries are zero. The required sum becomes

    a+4b=5a+4b=5

    Both counts are nonnegative integers, and their sum cannot exceed nine. This equation accounts for all nine original matrix entries. We do not need to multiply a general three-by-three matrix symbolically or enumerate each matrix individually.

  2. Step 2: List all possible entry patterns

    If b were at least two, the twos alone would contribute at least eight, exceeding five. Hence there are exactly two possible cases.

    • With no entry two, there must be five entries one and four entries zero.
    • With one entry two, its square contributes four, leaving one for exactly one entry one. The other seven entries are zero.

    These exhaust the nonnegative integer solutions of the square-sum condition. In particular, the second case has only one entry one; three ones would belong to a different squared-entry total.

  3. Step 3: Count the positions in each case

    For the first case, choose which five of the nine positions contain one. Once chosen, every other position contains zero. The count is

    9!5!4!=126\frac{9!}{5!4!}=126

    For the second case, first choose the position of the two in nine ways. The position of the one must be different, so it has eight remaining choices. All other positions are zero. The count is

    9×8=729\times8=72

    An unordered pair of positions alone would not determine the matrix: one of its two positions receives the two and the other receives the one. Equivalently, choose an unordered pair in thirty-six ways and assign its two distinct roles in two ways, again giving seventy-two.

  4. Step 4: Add the disjoint case counts

    The cases cannot overlap because they have different numbers of entries equal to two. Therefore the total number of matrices is

    126+72=198126+72=198

    This matches B. No additional factor is needed for the zeros: their positions are exactly the positions left over, and each is assigned the single value zero. Nor do we divide by row or column permutations; the original matrix positions are labelled by their row and column.

Answer. (B) 198198

Sanity check. A matrix with a two in its first row, second column and a one in its second row, first column, all other entries zero, is a valid member of the second case. The two occupied positions contribute four and one to the required trace. For this example the trace of the ordinary square of the matrix is four, while the trace of the transpose times the matrix is five. This confirms why replacing the given transpose-product by an ordinary matrix square would be wrong.

Also check the first case: five entries one contribute exactly five, regardless of which rows or columns contain them. Their placement does not have to be diagonal. Both patterns really occur, so omitting either loses valid matrices.

Smart method. Turn the condition directly into nine squares. At most one original entry can be two. If there is no two, choose five positions for ones, giving one hundred twenty-six. If there is one two, choose its position and then the position of the single one, giving nine times eight, or seventy-two. Add to get one hundred ninety-eight. The short route works because the total is so small that the large square contribution bounds the cases immediately. Keep the original set of allowed entries: signed values or a different total would change the patterns and counts.

Why the other options are wrong

  • (A) The count 126126 covers only five entries equal to one and four zeros. It omits the allowed pattern with one entry two, one entry one and seven zeros.
  • (C) The incorrect unordered-pair count gives 126+36=162126+36=162. The second term chooses an unordered pair of positions, but one position receives two and the other receives one. There are two assignments for every pair, giving 7272 rather than 3636.
  • (D) The incomplete second-pattern count gives 126+9=135126+9=135. Choosing a position for the two does not finish the second pattern: the one still has eight available positions. The second count is 9×8=729\times8=72.

Key takeaway

The trap. Counting only one pattern, or forgetting that a two and a one occupy distinct labelled roles.

How toppers think. Bound the number of large contributions before counting positions.

Remember. List every square-sum pattern, count each once, and add disjoint cases.

More on Transpose & Properties