In lessons, we have been taught to find a general solution finding a matrix to the power n by diagonalising it but for an assignment have been asked to find a general formula for: $$\begin{bmatrix}2 & 1\\0 & 2\end{bmatrix} ^ n$$ By expending it by hand for the first few terms, I found this to be: $$\begin{bmatrix}2^n & u_n\\0 & 2^n\end{bmatrix}$$ where $u_n = 2u_{n-1} + 2^{n-1}$
How would I convert this to a general formula and is there a better way to solve this kind of question as several similar ones were set.