Find the characteristic polynomial of the matrix with zeros on the diagonal and ones elsewhere.
I've been able (I believe) to guess how it looks like (by considering matrices of small orders): $(x-n+1)(x-1)^{n-1}$. I suppose I should prove it by induction. But I don't know how to obtain the characteristic polynomial of a matrix of order $n+1$ from that of a matrix of order $n$ (i.e., how to make the inductive step).
Other methods of solution are also welcome. (Is it possible to use row reduction?)
Let $M$ be the matrix in question. Then $M=J-I$ where $J$ is the all-ones matrix. Then $$\chi_M(t)=\det(tI-M)=\det(tI+I-J)=\chi_J(t+1).$$ We just need to compute the characteristic polynomial of $J$, But $J^2=nJ$, so the eigenvalues of $J$ are in the set $\{0,n\}$. The trace of $J$ is $n$, so that one eigenvalue of $J$ is $n$ and the other $n-1$ are all zero. That is, $\chi_J(t)=t^{n-1}(t-n)$. Then $$\chi_M(t)=(t+1)^{n-1}(t-n+1).$$