Consider a real and symmetric tridiagonal matrix with zero diagonals and where subdiagonals and superdiagonals are equal to 1 except the (1,2)-th component being equal to $a$, i.e.,
$$\begin{bmatrix}0 & a & 0 & 0 & \cdots & 0\\1 & 0 & 1 & \cdots & 0\\ 0 & 1 & 0 & 1 & \cdots & 0\\ & & & \ddots \\0 & \cdots & 0 & 0 & 1 & 0\end{bmatrix}.$$
For $a=1$ the spectrum is 2 $\cos (\pi j / (n+1)), j=1, \ldots, n$. I want to determine its spectrum for $a \neq 1$.
Thanks in advance!