an exponential sum involving quadratics

161 Views Asked by At

Let $q$ be a prime and $a,b\in \mathbb{Z}$. Can we compute $$\sum_{k=1}^{q}e^{2\pi i\frac{ak^2+bk}{q}}$$ in terms of $a,b,q$? The sum is easy when $a=0$, but what about the case $a\neq 0$?