To find the number of matrices in the set A, let a general 3×3 symmetric matrix A be represented as:
A=abcbdecef
where all entries a,b,c,d,e,f∈{0,1}.
The matrix consists of:
- 3 diagonal entries: a,d,f, which each appear once in the matrix.
- 3 pairs of off-diagonal entries: (b,b), (c,c), (e,e), where each pair contributes two identical entries to the matrix.
The total number of 1's in the matrix is 5, so the sum of all elements in the matrix must be 5:
(a+d+f)+2(b+c+e)=5
Let Sdiag=a+d+f and Soff=b+c+e.
Since a,d,f,b,c,e∈{0,1}, we have:
Sdiag∈{0,1,2,3}andSoff∈{0,1,2,3}
The equation becomes:
Sdiag+2Soff=5
Since 2Soff is an even integer, Sdiag must be an odd integer. Hence, Sdiag can only be 1 or 3.
Case 1: Sdiag=1
1+2Soff=5⟹Soff=2
- Number of ways to choose the diagonal elements (a,d,f) such that their sum is 1:
(13)=3
- Number of ways to choose the off-diagonal elements (b,c,e) such that their sum is 2:
(23)=3
- Total matrices in this case:
3×3=9
Case 2: Sdiag=3
3+2Soff=5⟹Soff=1
- Number of ways to choose the diagonal elements (a,d,f) such that their sum is 3:
(33)=1
- Number of ways to choose the off-diagonal elements (b,c,e) such that their sum is 1:
(13)=3
- Total matrices in this case:
1×3=3
Adding the matrices from both cases:
Total number of matrices=9+3=12
Therefore, the correct option is (A).