Inverse of a matrix and matrix relation Let $A$ be the matrix  $$ A= \begin{pmatrix}
2 & -1 & -1\\
0 & -2 & -1 \\
0 & 3 & 2 \\
\end{pmatrix} $$ I am trying to find $A^{-1}$ as a relation of $I_{3}, A$ and $A^{2}$ and also to prove that $A^{2006}-2A^{2005}=A^{2}-2A$.  For the first one I noticed that $$A^{n}= \begin{pmatrix}
2^{n} & -(2^{n}-1) & -(2^{n}-1)\\
0 & -2 & -1 \\
0 & 3 & 2 \\ \end{pmatrix} , A^{k}= \begin{pmatrix}
2^{k} & -(2^{k}-1) & -(2^{k}-1)\\
0 & 1 & 0 \\
0 & 0 &  1\\ \end{pmatrix}$$ for $n$ odd and $k$ even but I don't know how to proceed from here. Also the the equality  $A^{2006}-2A^{2005}=A^{2}-2A$ leads to $A^{2004}(A-2I_{3})=A-2I_{3}$ but again I don't know what to do next since $(A-2I_{3})$ is not invertible. Any help?

In this case it is not necessary to calculate the characteristic polynomial of $\;A\;$ and apply the Cayley-Hamilton theorem.
Since $\;A=\begin{pmatrix}
2 & -1 & -1\\
0 & -2 & -1 \\
0 & 3 & 2 \\
\end{pmatrix}\;$ and $\;A^2=\begin{pmatrix}
4 & -3 & -3\\
0 & 1 & 0 \\
0 & 0 & 1 \\
\end{pmatrix}\;,\;$ the first column of the matrix $\;A-2I_3\;$ only contains zeros, moreover the second and the third row of the matrix $\;A^2-I_3\;$ only contain zeros, therefore
$\left(A-2I_3\right)\left(A^2-I_3\right)=0\;,$
$A^3-A-2A^2+2I_3=0\;,$
$I_3=\frac{1}{2}A+A^2-\frac{1}{2}A^3\;,$
and, by multiplying both sides of the previous equality by $\;A^{-1}$, we get that
$A^{-1}=\frac{1}{2}I_3+A-\frac{1}{2}A^2\;.$
