Is it possible to simplify the following expression in a form without the sum? $$\sum_{i=0}^n(e^x)^i(e^y)^{i^2}$$ equivalent to $$\sum_{i=0}^na^ib^{i^2}$$ where $a=e^x, b=e^y$ If it's not possible, is it nevertheless possible to do so if we take the limit $n\to\infty$ or if we put some constraints on $x$ and $y$?
I've tried rewriting it as a simpler sum first, but couldn't come up with anything.
Edit: so there is no closed form solution. Does this change when we let $a=1$, so that the summation simply becomes the following? $$\sum_{i=0}^nb^{i^2}$$