I'm trying to calculate the powers of a 2 by 2 matrix with entries in $\mathbb{Z} \left[ t,t^{-1} \right]$.
The matrix is \begin{bmatrix} 0 & 1 \\ 1 & t \end{bmatrix}
I tought of writing my matrix in the following form $$ \begin{bmatrix} 0 & 1 \\ 1 & t \end{bmatrix} = t \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} + \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} $$ Now we get $$ \begin{bmatrix} 0 & 1 \\ 1 & t \end{bmatrix} ^n = \sum_{k=0}^n \binom{n}{k} t^{n-k} \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix}^{n-k} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}^{k} $$
The only issue is that if $\mathcal{M}_n(\mathbb{Z} \left[ t,t^{-1} \right])$ is not isomorphic to $\mathcal{M}_n(\mathbb{Z}) \left[ t,t^{-1} \right] $ then my logic will be wrong.
I also thought of diagonalizing the matrix, but I found no algorithme to get it done.
Thanks in advance for your help.