For the matrix $A = \begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}$, find $A^2$, $A^3$, $A^4$. Find a general formula for $A^n$ for any positive integer $n$.
Solution