Determine the number of matrices in ${\Bbb Z}_3^{2 \times 2}$ with determinant $1$.
I know that the elements in ${\Bbb Z}_3$ are $\{0,1,2\}$ now possibly determinant can be $1$ in this case
$$ \begin {bmatrix} 1&2\\ 0&1\\ \end{bmatrix} $$
and there can be many more but how to find the exact number of such matrices? I know that the answer is $24$.
Let your matrix be $$\pmatrix{a & b\cr c & d\cr}$$ If $b c = 0$ you want $ad = 1$. How many possibilities for that?
If $b c = 2$ you want $ad = 0$. How many possibilities for that?
If $b c = 1$ you want $ad = 2$. How many possibilities for that?