I have the following question in an assignment paper.
Let $$A=\begin{bmatrix} 0 & a & 0\\ 1 & 0 & a\\ a & 1 & 0\end{bmatrix}$$ For what values of $a$ is $A$ diagonalisable?
Simply put, I don't know how to do it. In the $2 \times 2$ case we were asked, I completed the square of the characteristic polynomial and found that in all but $1$ choice of the unknown entry you got distinct eigenvalues and, therefore, distinct eigenvectors. At which point I just had to consider the one case for which I had eigenvalue of algebraic multiplicity $2$ and show that the geometric multiplicity of the eigenvector associated with it was $1$, I was done.
Any tips would be hugely appreciated, I've said it an assignment so reservation on full solution I understand but some hints would be amazing. Thank you.