Let be any matrix with entries from the set . The maximum number of such matrices, for which the sum of diagonal elements of is seven, is ______.
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 are the sums of the squares of the columns of , so its trace is the sum of the squares of all the entries:
Picture the situation. The sum of the diagonal elements of is the sum of the squares of all nine entries of . 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.
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.
Step 2: The count
One entry 2 and three entries 1 can be placed in ways, and seven entries 1 in ways. The total is .
Answer. 540
Sanity check. Check the first pattern: one entry 2 and three entries 1 give .
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.
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 ›