How to find the inverse of the matrix over $\mathbb Z_5$
$$ \left( \begin{matrix} 1 & 2& 0\\ 0 &2& 4 \\ 0& 0& 3\\ \end {matrix} \right) $$
How to find the inverse of the matrix over $\mathbb Z_5$
$$ \left( \begin{matrix} 1 & 2& 0\\ 0 &2& 4 \\ 0& 0& 3\\ \end {matrix} \right) $$
Hint: One can proceed as usual by taking the given matrix $A$ and row-reducing the adjoined matrix $[\,A\,|\,\mathbb{I}\,]$. Note that the matrix is upper triangular, which makes available a very efficient method, because it implies the following about the inverse: (1) the inverse is upper triangular, and (2) the diagonal entries of the inverse are reciprocals of the diagonal entries of $A$. In other words, so the inverse has the form $$\begin{pmatrix}1 & a & b \\ 0 & 3 & c \\ 0 & 0 & 2\end{pmatrix}.$$ Then, one can simply expand the appropriate components of the equation $A A^{-1} = 0$ to solve for the three remaining unknown components $a, b, c$.