I have some coefficients $(a_n)_{n \leq N} \subset \mathbb{R}$ such that $a_n \geq 0$ and their average value is one, i.e. $\frac{1}{N} \sum_{n \leq N} a_n = 1$. Suppose that $$ \Bigl| \sum_{n \leq N} a_n e(n/N) \Bigr| > N^{\varepsilon}, $$ where $e(x):= e^{2\pi i x}$. I want to make some deductions about the coefficients $(a_n)$. A simple example is that the largest $a_n$ must be $\geq 1$, which follows purely from the average result and the pigeonhole principle. We can't improve on this much using the above inequality, since it's possible to have $a_n = 2$ for $n \leq N/2$, $a_n = 0$ otherwise, and the sum is $\gg N$. However, such an example imparts a lot of structure on the coefficients.
Deriving a quantitative statement about the structure of $a_n$ would be very useful. Any references to where an inverse problem of this type has been studied before would also be greatly appreciated. Even a statement like there must be an $a_n$ larger than $1 + f(N, \varepsilon)$ may be of use.