The number of matrices , which can be formed using the elements of the set such that the sum of all the diagonal elements of is , is ______
Solution
Core idea. is the sum of the squares of all the entries of .
Concept refresher. For any matrix , the -th diagonal entry of is , so
the sum of the squares of all the entries. Counting by cases: choose the positions of the entries, then their signs, and multiply.
Approach. Rewrite the condition as a sum of six squares, list the possible patterns of squares, and count positions and signs for each.
Step 1: Rewrite the trace
is , so is , and its diagonal entries are the sums of squares of the two columns. The condition becomes
with every , so each square is , or .
Step 2: List the patterns
Six squares from add to in exactly two ways, since :
Step 3: Count each pattern
For the first, choose the zero entry ( ways) and a sign for each of the five entries (). For the second, place the ( ways) and the ( ways) and choose two signs ():
Answer. 312
Sanity check. A direct count over all matrices with entries from the set finds exactly with . Example: with rows , , has with diagonal and , trace .
Common wrong answers
- 192: Counting only five entries equal to and one gives ; the case of one , one and four zeros adds .
- 120: Counting only one , one and four zeros gives ; the case of five entries and one adds .
- 252: Choosing the places of the and the as unordered pairs gives and a total of ; the two entries are different, so there are placements.
Key takeaway
The trap. Counting only one of the two patterns, or forgetting the two signs of each nonzero entry.
How toppers think. They list the patterns of squares first, then multiply positions by signs for each pattern.
Remember. For any real matrix , the trace of is the sum of the squares of all its entries.
More on Types of Matrices
- The number of singular matrices of order 2, whose elements are from the set {2, 3, 6, 9} is
- Let A be a 3 × 3 matrix of non-negative real elements such that A 1; 1; 1 = 3 1; 1; 1. Then the maximum…
- Let A = [aij], aij ∈ Z ∩ [0, 4], 1 ≤ i, j ≤ 2. The number of matrices A such that the sum of all entries is…
- All 11 on Types of Matrices ›