Infinite sum over $e^{i \frac{\pi (n-x)^2}{a}}$

60 Views Asked by At

I would like to evaluate the infinite sum $$\sum_n \exp \left( \frac{i\pi}{a} (n-x)^2\right)$$ where $x,a\in \mathbb R$.

For certain values of $a$ it becomes a Delta comb of various frequencies, however I can't figure out a general expression