The total number of matrices having enteries from the set such that the sum of all the diagonal entries of is 9, is equal to
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 are the sums of the squares of the rows of , so its trace is the sum of the squares of all the entries:
Picture the situation. The sum of the diagonal entries of is the sum of the squares of all nine entries of . 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.
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.
Step 2: The counts
One entry 3 can be placed in 9 ways. Two entries 2 and one entry 1 can be placed in ways. One entry 2 and five entries 1 can be placed in ways. All entries 1 gives 1 matrix.
Step 3: The total
Adding the counts for the four patterns gives matrices.
Answer. 766
Sanity check. Check the patterns: , , and 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.
More on Transpose & Properties
- Let A = 1/√(2) -2; 0 1 and P = cosθ -sinθ; sinθ cosθ, θ > 0. If B = PAP^T, C = P^TB¹⁰P and the sum of the…
- If A = √(2) 1; -1 √(2), B = 1 0; 1 1, C = ABA^T and X = A^TC²A, then det X is equal to:
- Let A = I₂ - 2MM^T, where M is real matrix of order 2 × 1 such that the relation M^TM = I₁ holds. If λ is a…
- All 17 on Transpose & Properties ›