Question
Mathematics Question on Matrices
How many 3×3 matrices M with entries from 0,1,2 are there, for which the sum of the diagonal entries of MTM is 5 ?
A
126
B
198
C
162
D
135
Answer
198
Explanation
Solution
Let matrix M=[kij]
Then sum of diagonal entries =∑kij2
⇒∑kij2=5
where kij are from 0,1,2
⇒ Total number of matrices =9C5+9C1⋅8C1=198