The total number of 3×3 matrices A having entries from the set {0,1,2,3}, such that the sum of all the diagonal entries of AAT is 9, is equal to
Answer: 766
Solutions · 1
Official solution
trace(AAT) equals the sum of squares of all 9 entries of A, each entry from {0,1,2,3} (squares 0,1,4,9). We need the 9 squares to sum to 9.
Combinations of squares summing to 9 (each from {0,1,4,9}, 9 terms):
- Nine 1's: 1 arrangement.
- One 9, rest 0: (19)=9 arrangements.
- Two 4's + one 1 + six 0's: 2!1!6!9!=252 arrangements.
- Four 1's + one 4 + ... wait --- one 4 + five 1's + three 0's (4+5=9): 1!5!3!9!=504 arrangements.
Total =1+9+252+504=766.