Consider the matrix $A \in \mathbb{R}^{n \times n}$ of all ones. Because there is only 1 linearly independent column, there are $n-1$ zero eigenvalues and 1 non-zero eigenvalue which is $n$.
So one eigenvector, $u_1$ can be determined by inspection of the definition of eigenvector: \begin{align*} Au_1 &= nu_1 \\ \therefore\qquad u_1 &= 1_n \end{align*}
Since $A$ is symmetric that means the eigenvectors corresponding to distinct eigenvalues are orthogonal. So that means all the eigenvectors ($n-1$ of them) corresponding to an eigenvalue of zero are orthogonal to $1_n$ (this implies this must all have zero mean).
My question is, how do we succinctly represent these $n-1$ orthogonal vectors? I also know that all of these $n-1$ eigenvectors are linearly independent. I just don't know how to properly represent them succinctly.
I think we can pick
\begin{align*} u_2 &= \begin{bmatrix}1 & -1 & 0 & \dots & 0\end{bmatrix}^T\\ u_3 &= \begin{bmatrix}1 & 0 & -1 & 0 & \dots & 0\end{bmatrix}^T\\ &\ \ \vdots\\ u_n &= \begin{bmatrix}1 & 0 & \dots & 0 & -1\end{bmatrix}^T \end{align*}
all of these are linearly independent. I just don't know how to represent them the formal way.