I am trying to calculate the characteristic polynomial of the $n \times n$ matrix $A = \{ a_{ij} = 1 \}$.
Case $n=2$: I obtained $p(\lambda)=\lambda^2-2\lambda$ .
Case $n=3$: I obtained $p(\lambda)=-\lambda^3+3\lambda^2$.
Case $n=4$: I obtained $p(\lambda)=\lambda^4 - 4\lambda^3$.
I guess that for the general case, we have
$$p(\lambda)=(-1)^n\lambda^{n}+(-1)^{n-1}n\lambda^{n-1}$$
I tried to use induction, but it didn't work, unless I've done wrong. Can somebody help me? Or give me a hint?
The trace is $n$. The eigenvalue $0$ has multiplicity $n-1$. From this we can write down the characteristic polynomial without any computation. Or else we can pick up the eigenvalue of $n$ by noting that the all $1$'s vector times our matrix is the all $n$'s vector.