I want to estimate this sum $$\sum_{n = 0}^N \cos (\alpha n^2)$$ where $\alpha$ is a constant less than $1$ and $N$ is an integer. One of the things that I tried was using Taylor expansion for cosine and then using Stirling's approximation for the factorial in it but summing over the powers of integers involves Bernoulli numbers and it gets tricky quite quickly.
Is there a way to convert this sum into an integral (with an appropriate error term maybe)? If not, is there any other way to estimate this sum? If you could point me to the relevant literature, that would be useful as well.
$$\sum\limits_{k=0}^{n}\cos(kx)=\frac{1}{2}+\frac{\sin(\frac{2n+1}{2}x)}{2\sin(x/2)}$$
– Axion004 Nov 17 '19 at 07:32