To find the number of matrices A=[acbd] in S satisfying the given conditions, we process the matrix equation and trace condition step-by-step.
Step 1: Simplify the Matrix Equation
We are given that a,b,c,d∈{0,1,2,3,4}, the sum of the diagonal elements (trace) is:
tr(A)=a+d=4⟹d=4−a
Now, compute A2:
A2=[acbd][acbd]=[a2+bcc(a+d)b(a+d)d2+bc]
Since a+d=4, this simplifies to:
A2=[a2+bc4c4bd2+bc]
Substitute A2, A, and I into the matrix equation A2−4A+3I=0:
[a2+bc4c4bd2+bc]−4[acbd]+[3003]=[0000]
Equating the corresponding entries:
- Off-diagonal elements: 4b−4b=0 and 4c−4c=0 (holds for all b,c).
- Top-left diagonal element:
a2+bc−4a+3=0⟹bc=4a−a2−3=a(4−a)−3=ad−3
- Bottom-right diagonal element:
d2+bc−4d+3=0⟹bc=4d−d2−3=d(4−d)−3=ad−3
Hence, the given conditions reduce to:
ad−bc=3anda+d=4
Step 2: Cases for (a,d)
Since a,d∈{0,1,2,3,4} and a+d=4, we analyze all possible pairs (a,d):
-
Case 1: a=0,d=4
bc=ad−3=(0)(4)−3=−3
Since b,c∈{0,1,2,3,4}, bc≥0. Thus, there are no solutions.
-
Case 2: a=4,d=0
bc=ad−3=(4)(0)−3=−3
Similarly, there are no solutions.
-
Case 3: a=1,d=3
bc=ad−3=(1)(3)−3=0
We need b⋅c=0 where b,c∈{0,1,2,3,4}:
- If b=0, then c∈{0,1,2,3,4} (5 possibilities).
- If b∈{1,2,3,4}, then c=0 (4 possibilities).
Total pairs for (b,c)=5+4=9.
-
Case 4: a=3,d=1
bc=ad−3=(3)(1)−3=0
By symmetry with Case 3, there are 9 possibilities for (b,c).
-
Case 5: a=2,d=2
bc=ad−3=(2)(2)−3=1
Since b,c∈{0,1,2,3,4}, bc=1 gives only 1 possibility: b=1,c=1.
Step 3: Total Count
Summing up the valid matrices from all cases:
Total number of matrices=0+0+9+9+1=19
Thus, the correct option is D.