By the adjoint matrix calculate the inverse matrix (if it exists) to the following matrices over $$\mathbb R$$ and also over $$\mathbb Z_5$$.

• #### Variant 1

$$\begin{pmatrix} 1 & 0 & 1 \\ -2 & 1 & 0 \\ 0 & 1 & 1 \\ \end{pmatrix}$$

• #### Variant 2

$$\begin{pmatrix} 1 & 0 & 2 \\ 1 & 2 & 0 \\ 0 & 1 & 1 \\ \end{pmatrix}$$

• #### Variant 3

$$\begin{pmatrix} 1 & 2 & 4 \\ 2 & 1 & 1 \\ 1 & 0 & 1 \\ \end{pmatrix}$$