Let $M$ be a matrix with the entries $a_{1}, \dots , a_{n}$ on the secondary diagonal (the one that ranges from $m_{n1}$ to $m_{1n}$) with all other entries being $0$. Find under which conditions the matrix is similar to a diagonal matrix.
If the matrix is similar to a diagonal matrix, it follows that $M = PAP^{-1}$ where $A$ is a diagonal matrix (namely the one with the eigenvectors of $M$) and for a matrix $P$. In other words, this means that it will be a diagonalizable matrix.
I tried to first compute the characteristic polynomial of the matrix $M$, but I don't find that helpful as we would have the determinant of a matrix with terms in its main and second diagonal, making the determinant having a complicated form (I'm sure it can be done though).
What would be the way to determine under which conditions this matrix is diagonalizable or not? I'm currently lost at this step.