The number of 3×2 matrices A=acebdf with a,b,c,d,e,f∈{−2,−1,0,1,2}, for which the sum of all the diagonal elements of ATA is 5, is \_\_\_\_.
Answer: 312
Solutions · 1
Official solution
ATA=(a2+c2+e2ab+cd+efab+cd+efb2+d2+f2), so the trace condition is
a2+b2+c2+d2+e2+f2=5.
Each square lies in {0,1,4} (values ±2→4, ±1→1, 0→0).
Case 1: one square is 4, one square is 1, and the remaining four squares are 0.
Choose which variable is ±2: 6 ways, with 2 sign choices =12; choose which of the remaining 5 variables is ±1: 5 ways, with 2 sign choices =10; the rest are forced to 0. Total =12×10=120.
Case 2: five squares equal 1 and one square equals 0.
Choose which variable is 0: (56)=6 ways to choose the five that are ±1 (equivalently (56) for the zero), and each of the five nonzero variables has 2 sign choices: 6×25=192.
Total number of matrices =120+192=312.