Compute the eigenvalues of the $n\times n$ matrix M defined by $$(m_{ij}) = \begin{cases} 1 - 1/n & \text{ if } i = j \\ -1/n & \text{ otherwise.} \end{cases} $$
Using Wolfram Alpha, I found a pattern: for an $n \times n$ matrix, the eigenvalues are $0$ (with multiplicity $1$) and $1$ (with multiplicity $ n - 1)$. But how can I prove this fact? I didn't get anywhere with induction.
For example, in the $n = 2$ case, we have that $\text{trace M } = 1$, and $\text{det} M = 0$. So the product of the eigenvalues is $0$ (which means one eigenvalue is $0$) and the sum is $1$, so the other one must be $1$. This doesn't really work for higher orders though.