# Problem 26 *
(a) $\ $ Let $G$ be the group of all $2 \times 2$ matrices $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ where $a$, $b$, $c$, $d$ are integers modulo $p$, $p$ a prime number, such that $ad-bc \neq 0$. $G$ forms a group relative to matrix multiplication. What is $o(G)$?
(b) $\ $ Let $H$ be the subgroup of the $G$ of part (a) defined by $$ H = \left\{ \begin{pmatrix} a & b \\ c & d \end{pmatrix} : ad-bc = 1 \right\}. $$ What is $o(H)$?
Please verify my solution to part (b). To solve the problem I took different cases -
EDIT - Some people are asking to me how I arrived at each of these cases -
$ad = 0$. It restrict $bc = −1$. $(2p − 1)(p − 1)$ is the total number of cases. EDIT - The number ways of choosing $a$, $d$ for which $ad = 0$ is: $2p − 1$. On the other hand, the number of ways of choosing $b$, $c$ for which $bc = −1$ is: $p − 1$. Thus when $ad = 0$, we can choose $a$, $b$, $c$, $d$ in $(2p − 1)(p − 1)$.
Similar number of cases are for $ad = 1$ and $bc = 0$. EDIT - Analogous to previous case, we get number of ways of choosing $a$, $b$, $c$, $d$ as $(2p − 1)(p − 1)$.
Number of cases for which $ad$ and $bc$ are not equal to zero. I solved it and I got $((p-1)(p-1) - (p-1))(p-1)$. EDIT - $(p-1)(p-1)$ is the number of ways in which we can choose $ad$ not equal to zero and we subtract $(p-1)$ so that we eliminate the cases in which $ad = 1$ and then I multiply by $(p-1)$ (number of cases in which we can choose $b$).
The problem is from Topics in Algebra by Herstein.
EDIT: you got it right I just messed up seeing that your expression and mine coincided. Apologies.
You got your first two cases correct I believe, giving you 2(2p-1)(p-1). But I think you strayed with your last case.
First, choose $ad$. It can't be $1$ and it can't be $0$, or we're back with your previous cases, so you have $p-2$ choices for $ad$. Then, choose $a$ in any of $p-1$ ways, and then $d$ is fixed. Now, $bc$ is fixed by $ad$, $b$ can be chosen in any of $p-1$ ways, and $c$ is fixed by $b$ and $bc$, so we have
$$(\text{choices for }\ ad)(\text{choices for }\ a)(\text{choices for }\ b) = (p-2)(p-1)(p-1).$$
Add that to what you've already got and you should be good to go.
nb I see elements with order p, p-1 and 2 in your group, so be sure your sum is divisible by those.