The number of matrices of order , whose entries are either 0 or 1 and the sum of all the entries is a prime number, is ______.
Solution
Core idea. For a matrix of zeros and ones, the sum of the entries counts the ones.
Concept refresher. The number of ways to choose positions out of is
Picture the situation. A matrix of order 3 has nine entries, each 0 or 1. Their sum is the number of entries equal to 1, a whole number from 0 to 9. The primes in that range are 2, 3, 5 and 7, and for each the positions of the entries 1 are chosen freely.
Approach. List the possible prime sums and choose the positions of the ones for each.
Step 1: The possible sums
The sum of the nine entries is the number of entries equal to 1, and it must be one of the primes 2, 3, 5 or 7.
Step 2: The count
Choosing the positions of the entries 1 for each prime gives
Answer. 282
Sanity check. There are matrices in all, so a little more than half of them have a prime sum.
Common wrong answers
- 291: Counting 1 as a prime adds and gives 291.
Key takeaway
The trap. The number one is not a prime, so a single entry one does not count.
How toppers think. They list the primes in the possible range before counting anything.
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 ›