Sum of all diagonal elements is equal to sum of square of each element of the matrix.
i.e, A=⎡⎢⎣a1a2a3b1b2b3c1c2c3⎤⎥⎦
then tr(A,AT)
=a21+a22+a23+b21+b22+b23+c21+c22+c23
∴ai,bi,ci ϵ {–1, 0, 1} for i=1,2,3
∴ Exactly three of them are zero and rest are 1 or−1
Total number of possible matrices 9C3×26
=9×8×76×64
=5376
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 ATA is 6 is _