Suppose we have the following matrix with real entries $k_i \geq 0$: $$ K=\begin{pmatrix} 0 & & \ldots & 0 & k_1 \\ k_2 & 0 & \ldots & 0 & 0 \\ 0 & k_3 &\ldots & 0 &0\\ \vdots & \vdots & \ddots & 0& \vdots \\ 0 & 0 & \ldots & k_N & 0 \end{pmatrix} $$ I want to show that $K^N = \kappa^N I$, where $\kappa = \left(\prod\limits_{i=1}^{N} k_i\right)^{(1/N)}$ is the geometric mean of the entries. In other words, the $N$-th power of the matrix $\frac{1}{\kappa}K$ is the identity matrix.
Using a few lines of code I can compute these matrices and check that this is true for any $N$ I have tried. Now I would like to prove it without the need of numerical computation.
What I've tried is to write the matrix entries as $K_{ij} = k_i (\delta_{i,j+1} + \delta_{i,j-N+1})$, do matrix multiplication with the Kronecker deltas and discard the entries that do not satisfy $1 \leq i,j \leq N$. However, after just a few multiplications the terms become too cumbersome to work with.
One property of the above matrix is that it is a generalized permutation matrix, but I do not know of any properties from such matrices that could be used to prove my statement.
I am also aware of this question on invertibility of a square matrix with integer entries. However, I do not only want to just prove invertibility but show that a particular power of a matrix is the identity.