I am trying to compute all the 3x3 matrices that have an inverse in Z(N) where N is 5 and 13. Basicle I compute the determinant of the matrix modulo N, and if the result is