What is the order of the multiplicative group $$G = \left\{ \begin{pmatrix} a & b \\ c & d \end{pmatrix} : a,b,c,d \in \mathbb{Z}/31\mathbb{Z} , \, ad - bc \neq 0 \text{ in } \mathbb{Z}/31\mathbb{Z}\right\} \, \text{?}$$
I thought it was natural to phrase the problem in terms of congruences: count the number of lists $(a, b, c, d)$ of integers in $ \{0, 1, \dots, 30\}$ such that $ad \not \equiv bc \, \pmod{31}$. But I'm having trouble going further from here.