Given the matrix $$A= \left[ \begin{array}{ccc} 2&0&1\\ 1&1&a\\ 0&0&1 \end{array} \right] $$ Find all the eigenvalues of A.
My approach: $\det( λI-A) = 0 =$ $$ \begin{vmatrix} λ-2&0&-1\\ -1&λ-1&-a\\ 0&-a&λ-1 \end{vmatrix} $$ However, after solving it, $ λ^3 -4 λ^2+(5-a^2) λ+(2a^2-2-a)=0$. How do I proceed to solve it further to obtain my eigenvalues?
Assuming the matrix is correct, $$det(\lambda I-A)= \begin{vmatrix} λ-2&0&-1\\ -1&λ-1&-a\\ 0&0&λ-1 \end{vmatrix} =(\lambda-1)\begin{vmatrix} λ-2&0\\ -1&λ-1\end{vmatrix} =(\lambda-1)^2(\lambda-2) $$ and so, eigenvalues are $\lambda=2$ simple, and $\lambda=1$ double.