To find the total number of 3×3 matrices M whose elements belong to the set {0,1,2} such that Tr(MTM)=5, we proceed as follows:
Let M=(aij)3×3 where aij∈{0,1,2} for 1≤i,j≤3.
The trace of the matrix MTM is given by the sum of the squares of all the elements of M:
Tr(MTM)=∑i=13∑j=13aij2
Let:
- x0 be the number of entries in M equal to 0,
- x1 be the number of entries in M equal to 1,
- x2 be the number of entries in M equal to 2.
Since M has 3×3=9 entries, we have:
x0+x1+x2=9
The condition Tr(MTM)=5 gives:
x0⋅(02)+x1⋅(12)+x2⋅(22)=5
x1+4x2=5
Since x1 and x2 are non-negative integers, we consider the possible values for x2:
-
Case 1: x2=1
x1+4(1)=5⟹x1=1
x0=9−1−1=7
In this case, the matrix contains one 2, one 1, and seven 0's.
The number of such matrices is the number of ways to arrange these entries in 9 positions:
N1=1!⋅1!⋅7!9!=9×8=72
-
Case 2: x2=0
x1+4(0)=5⟹x1=5
x0=9−5−0=4
In this case, the matrix contains five 1's and four 0's.
The number of such matrices is the number of ways to arrange these entries in 9 positions:
N2=5!⋅4!9!=(49)=4×3×2×19×8×7×6=126
Therefore, the total number of such matrices M is:
Total=N1+N2=72+126=198
Hence, the correct option is B.