Q.
Let $S = \left\{\begin{pmatrix}a_{11}&a_{12}\\ a_{21}&a_{22}\end{pmatrix} : a_{ij} \in \left\{0,1,2\right\} , a_{11} = a_{22}\right\} $
Then the number of non-singular matrices in the set S is :
Solution: