JEE Main 2023 · 24 January · evening · Single correct · +4 / −1
The number of square matrices of order 5 with entries from the set {0, 1}, such that the sum of all the elements in each row is 1 and the sum of all the elements in each column is also 1, is :
- (a) 125
- (b) 150
- (c) 225
- (d) 120
Answer and solution
Answer (d) 120
Solution
Maths sir · 3 steps
Each row has exactly one 1, and no two rows may put it in the same column. That is just arranging 5 things.
- One 1 per row. Entries are only 0 or 1, so a row sum of 1 means each row has exactly one 1 and four 0s. The same holds for every column.
- Choose the columns. Row 1 can put its 1 in any of 5 columns. Row 2 cannot reuse that column, or that column would sum to 2, so it has 4 choices. Row 3 has 3, row 4 has 2 and row 5 has 1.
5 × 4 × 3 × 2 × 1 = 5! = 120
- So. Every column ends up with exactly one 1 as well, so all conditions hold. There are 120 such matrices, which is option (d).
The idea to keep. A 0-1 square matrix with exactly one 1 in every row and every column is a permutation matrix. An n × n one can be built in exactly n! ways.
Answer from the NTA final answer key. Solution by PrepWiser.