Gauss sum is a sum of $p$ roots of unity with magnitude $\sqrt{p}$. Does another sum with such property exist?
More exactly. Let $p$ be a prime number. $\zeta^p=1,\;\zeta\ne 1$. Causs sum: $G=\sum_{i=0}^{p-1}\zeta^{i^2}$. We know that $|G|=\sqrt p$. I am looking for $a_0,\ldots,a_{p-1}\in N_0$: $∑a_i=p;|\sum_{i=0}^{p−1}a_i\zeta^i|=\sqrt p$
I would be surprised if this problem had not previously been studied. Has anybody seen it before?