3

I am trying to solve this problem for homework but unable to get anything. The question is to find the number of invertible 2x2 matrices in mod p? Each entry can be from the set {0,1,2....(p-1)} where p is prime.

J. W. Tanner
  • 60,406

1 Answers1

7

The answer is $(p^2-1)(p^2-p)$, since there are $(p^2-1)$ ways to choose the first column such that it is non-zero, then the second column can be chosen in any way out of the $p$ multiples of the first column.

Jack D'Aurizio
  • 353,855
  • What about if there is an additional constraint that the matrices be unimodular? My estimate is $(p^2-1)*2p$. – stillanoob Feb 24 '17 at 05:01