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 ______.
Answer: 282
Solution
A matrix has 9 entries, each either 0 or 1. The sum of all entries can range from 0 to 9. The prime numbers in this range are 2, 3, 5, and 7.
The number of matrices with sum equal to a prime is:
Total = .
The number of matrices with sum equal to a prime is:
- Sum = 2: ways to place two 1's
- Sum = 3: ways
- Sum = 5: ways
- Sum = 7: ways
Total = .
JEE Main · 2022 · 29 Jul 2022 · Shift 1 · Integer answer