I am trying to find the eigenvalues of the following two $n \times n$ symmetric tri-diagonal Toeplitz matrices (let us call them $A$ and $B$ respectively):
Note that the standard way of computing the eigenvalues is by computing the characteristic polynomial and then finding the roots of the same. This seems to be done in this paper, in Lemma $43$ --- moreover the characteristic polynomial of one of these matrices seems to be a function of the characteristic equation of another --- but the steps are not clear.

