Question
Mathematics Question on Permutations
Let A be a 3 × 3 matrix having entries from the set {–1, 0, 1}. The number of all such matrices A having sum of all the entries equal to 5, is ______.
Answer
Let matrix a\[0.3em]d\[0.3em]gbehcfi
Given, a+b+c+d+e+f+g+h+i=5
Possible cases | Number of ways |
---|---|
5→1’s, 4→ zeroes | 5!4!9!=126 |
6→1’s, 2→ zeroes, 1→–1 | 6!2!9!=252 |
7→1’s, 2→–1′s | 7!2!9!=36 |
Total number of ways =126+252+36=414
So, the answer is 414.