How many matrices with entries from are there, for which the sum of the diagonal entries of is ?
- Option A: 126
- Option B: 198
- Option C: 162
- Option D: 135
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
Summing the three diagonal entries includes every original matrix entry exactly once as a square:
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.
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.
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
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.
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.
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
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
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.
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
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)
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 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 . 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 rather than .
- (D) The incomplete second-pattern count gives . Choosing a position for the two does not finish the second pattern: the one still has eight available positions. The second count is .
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.