Let be the set containing all matrices with entries from . The total number of matrices such that the sum of all the diagonal elements of is 6 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 diagonal entry of in position is the sum of the squares of column of . Adding the three diagonal entries gives the sum of the squares of all nine entries. Since each entry is , 0 or 1, each square is 0 or 1, and the total counts the non-zero entries.
Approach. Turn the trace condition into a count of non-zero entries, then choose positions and signs.
Step 1: The condition
The sum of the diagonal elements of is the sum of the squares of the nine entries, and each square is 0 or 1. So the sum is 6 exactly when 6 entries are non-zero.
Step 2: The count
The 6 non-zero positions can be chosen in ways, and each non-zero entry is or , giving sign patterns. The number of matrices is .
Answer. 5376
Sanity check. Equivalently choose the 3 zero positions: , the same number.
Common wrong answers
- 84: Counting only the positions of the non-zero entries gives 84; each of them can also have either sign.
Key takeaway
The trap. A square of one comes from two different entries, plus one and minus one.
How toppers think. They translate the trace condition into a count of non-zero entries at once.
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 ›