I have a matrix:
$$ A=\begin{bmatrix}1 & a \\ 0 & 1\end{bmatrix} $$
which satisfies: $A\left( e_{1}\right)=e_{1},A\left( e_{2}\right)=ae_{1}+e_{2}, a\neq 0$
I need compute all powers $A^{n}, n\in \mathbb{Z}$ and find their matrices.
$$ A^n= \begin{bmatrix}1 & na \\ 0 & 1\end{bmatrix} $$
Is it true?
Is there a basis of $V$ (if $V$ is a 2-dimensional real vector space with basis $\left\{e_{1},e_{2}\right\}$) so that the matrix of $A$ is diagonal?
Write $$ A = I+ N = \pmatrix{1 & 0 \\ 0 & 1} + \pmatrix{ 0 & a \\ 0 & 0 }. $$ Then $N$ is nilpotent and $N^2=0$. Now $$ A^n = \sum_{k=0}^n {n\choose k} N^k = I+ {n\choose1} N = I + nN =\pmatrix{1&na\\0&1} , $$ where I used the convention $N^0=I$.