Let A be a $n \times n$ matrix such that:
1) all the diagonal elements are $0$,
2) all other elements are either $1$ or $-1$
3) number of $1$'s in a row are equal to number of $-1$'s in the row, i.e. the row-sum is $0$ for all rows.
It is obvious that $n$ is odd here. I have done some experiments and found that the rank of such an $A$ is always $n-1$. Can someone help me with a proof? I can only see that
\begin{bmatrix} 1 \\ 1\\ \vdots\\ 1\\ 1\\ \end{bmatrix}
is an eigen vector with eigen value =0.