Let $v\in \mathbb{R}^{n}$ be the vector of ones, $v=(1,1,1,\cdots,1).$
I need an orthogonal basis for the orthogonal complement $v^{\perp}$, the space of all vectors orthogonal to $v$. Of course, one can solve for such a basis using Gram-Schmidt, but I have an extra requirement: that the basis vectors are sparse.
Is there a standard such basis? I can start writing down basis vectors in an ad-hoc way, e.g.
\begin{align*} b_1 &= (1, -1, 0, 0, \cdots)\\ b_2 &= (0, 0, 1, -1, \cdots) \end{align*}
but obviously this pattern runs out after $n/2$ vectors.