I recently came across this question: suppose we have an $n$ by $n$ matrix whose diagonal values ($a_{i,i}$) are 1 and 2 of the secondary diagonal values ($a_{i,n+1-i}$) are $r$, and all other values are 0. what are the eigenvalues.
This question looks similar to some other questions such as this one Suppose A is an n-by-n matrix with its diagonal entries are n and other entries are one. Find determinant of A..
I've tried several approaches. I am thinking whether we can find the eigenvalues recursively. For example, when $n=$2, the eigenvalues are $1-r$ and $1+r$. However, I found it hard for general cases when $n>2$. To fix the idea, what I was thinking is that we just assume the two $r$'s occur on the first value and the third value. However, how do we use $n-1$ by $n-1$ such matrix to express such $n$ by $n$ matrix? And if there is any better way to approach this question?