Let $H$ be the subgroup of the group $G$ of all $2 \times 2$ non-singular matrices whose entries are integers modulo a given prime $p$ consisting of those and only those matrices in $G$ whose determinant is $1$.
What is the order of $H$? And how to find it?
I've already managed to find the order of $G$. It is $p^4 - p^3 - p^2 + p$.
Last but not least, I would also like to be able to compute the order of $G$ and that of $H$ in the general case corresponding to the $n \times n$ matrices for an arbitrary integer $n > 2$.