I have a homework question that is stumping me, and I am looking for an entry point. It goes like this:
Suppose $p$ is prime. Prove that the largest set $S\subseteq\{0,1,\dots, p-1\}$ such that $S-S$ contains no nonzero quadratic residues must have cardinality less than $\sqrt p$.
I use $S-S$ to mean the difference set modulo $p$; that is $\{a-b\in\mathbb{Z}_p: a,b\in S\}$.
The question also comes with the suggestion of looking for a combinatorial argument. Since we have an inquality, I naturally tried to find an injection. Nothing was immediately obvious in the problem that had size $\sqrt p$, so I considered $S^2$. The advantage of this is that there is a function that we know something about: $f: S^2\to\mathbb{Z}_p\setminus Q_p$ such that $(a,b)\mapsto a-b$. Here the $Q_p$ is meant to be the quadratic residues, not including $0$.
If I could show that $f$ was at-most-two-to-one except on the diagonal, this would be good enough. But I strongly suspect that this is false. Unfortunately, with some fiddling it becomes clear that any counterexample would have to be with quite large $p$ and I am not sure how one might be found.
What has me really stumped is how to use the primeness of $p$. My best guess is that for some reason we are particularly worried that $0$ may be a square number nontrivially, which can be avoided because $\mathbb{Z}_p$ is a field?