Let $S_n=\{1,2,\ldots,n\}$ be natural numbers up to $n$. Say that a subset $S \subseteq S_n$ square-represents $S_n^2$ if every square $1^2,2^2,\ldots,n^2$ can be represented by adding or subtracting at most one copy of squares of elements of $S$.
Example. For $n=7$, the set $S$ of $|S|=5$ numbers $\{1, 2, 3, 5, 7\}$ square-represents $S_7^2$ because $4^2 = 5^2 - 3^2$ and $6^2 = 7^2 - 2^2 - 3^2$.
The "at most one copy" condition means that one could represent each square missing from $S$ by a two-pan balance. My question is:
Q. What is the minimum size $|S|$ to square-represent $S_n^2$ as $n$ gets large? In particular, is this size sublinear, $o(n)$?
In some sense this asks for the frequency of occurrences of Pythagorean triples, quadruples, and other analogous solutions of equations of the form $a^2 = b^2 \pm c^2 \pm d^2 \pm \cdots$ with $a,b,c,d,\ldots$ distinct. This may be well-known to the experts, in which case I apologize for asking a naive question.