Solveeit Logo

Question

Mathematics Question on Matrices

Let S be the set containing all 3 × 3 matrices with entries from {-1, 0, 1}. The total number of matrices A ∈ S such that the sum of all the diagonal elements of A T A is 6 is ________.

Answer

The correct answer is 5376
Sum of all diagonal elements is equal to sum of square of each element of the matrix.
i.e.,A=i.e., A = [a1a2a3 b1b2b3 c1c2c3 ]\begin{bmatrix} a_1 & a_2 & a_3 \\\ b_1 & b_2 & b_3 \\\ c_1 & c_2 & c_3 \\\ \end{bmatrix}
then tr(A.AT)t_r(A.A^T)
=a12+a22+a32+b12+b22+b32+c12+c22+c32= a^{2}_{1}+a^{2}_{2}+a^{2}_{3}+b^{2}_{1}+b^{2}_{2}+b^{2}_{3}+c^{2}_{1}+c^{2}_{2}+c^{2}_{3}
ai,bi,ci1,0,1∵ a_i, b_i, c_i ∈{-1,0,1} for i=1,2,3i = 1,2,3
∴ Exactly three of them are zero and rest are 1 or – 1.
Total number of possible matrices
9C3×26^9C_3×2^6
=9×8×76×64= \frac{9×8×7}{6}×64
= 5376