What are the eigenvalues of the following block matrix?
$$\begin{bmatrix} A & I_n & I_n \\ I_n & I_n & O_n \\ I_n & O_n & I_n \end{bmatrix}$$
Here, $A$ is any square matrix of order $n$ whose eigenvalues are denoted by $\lambda_1, \lambda_2, \dots, \lambda_n$, $I_n$ is an identity matrix of order $n$ and $O_n$ is a zero matrix of order $n$.
Call your matrix $M$. The eigenvalues of $M$ are the roots of $\det(tI_{3n}-M)$. You may evaluate $\det(tI_{3n}-B)$ in many ways:
So, we have $\det(tI_{3n}-M)=(t-1)^n\det\left(t^2I_n - t(A+I_n)+(A-2I_n)\right)$. By triangularising $A$, we see that the eigenvalues of $M$ are given by $n$ copies of $1$ as well as the roots of the quadratic polynomial $t^2-(\lambda+1)t+(\lambda-2)$ for every eigenvalue $\lambda$ of $A$.
You may verify the above results as follows. Let $\{e_1,e_2,\ldots,e_n\}$ be the standard basis of $F^n$ (where $F$ is the underlying field) and let $e=\sum_je_j$ (i.e. the all-one vector in $F^n$). If $\lambda$ is an eigenvalue of $A$ and $(t,v)$ is an eigenpair of the matrix $$ N(\lambda)=\pmatrix{\lambda&1&1\\ 1&1&0\\ 1&0&1}, $$ then $(t,v\otimes e)$ is an eigenpair of $M$. Hence the eigenvalues of $M$ are the roots of the characteristic polynomial $p_{N(\lambda)}(t)=(t-1)(t^2-(\lambda+1)t+(\lambda-2))$ for each $\lambda$. However, a more careful analysis is needed to reason about the multiplicities of the eigenvalues in this case.