Let be a matrix having entries from the set . The number of all such matrices having sum of all the entries equal to 5, is ______
Solution
Core idea. A sum of entries from minus one, zero and one depends only on how many are positive and how many negative.
Concept refresher. The number of ways to choose positions out of is
Picture the situation. Each of the nine entries is , 0 or 1. If entries are 1 and entries are , the sum of all entries is . The sum 5 can therefore arise in a few ways, limited by the nine positions available.
Approach. List the possible pairs of counts and count the placements for each.
Step 1: The possible counts
The sum is 5 when , and . So is , or .
Step 2: Placing the entries
Choosing the positions of the entries 1, and then of the entries among the rest, gives , and matrices.
Step 3: The total
Adding the counts of the three cases gives matrices in all.
Answer. 414
Sanity check. The case would need 11 positions, more than the 9 available, so the list of cases is complete.
Common wrong answers
- 246: Counting only the positions of the entries 1, , gives 246; the entries must be placed too.
Key takeaway
The trap. After the positive entries are placed, the negative ones still have several possible positions.
How toppers think. They list the cases by the pair of counts and stop when the positions run out.
Remember. ,
More on Types of Matrices
- The number of 3 × 2 matrices A, which can be formed using the elements of the set {-2, -1, 0, 1, 2} such…
- 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…
- All 11 on Types of Matrices ›