I'm trying to find a closed form of $ S(n)= \sum_{i=0}^n a^{q^i} $ for positive constant params $a, q, n$. I searched it in google but I couldn't find any. I searched it in wolframalpha, but I didn't get any result.I thought there is some set like geometric progression but no results in google.
I tried finding more fundamental properties for the set $a_1,a_2...,a_n$ as $a_{k+1} = a_k^q$, but with not much of a success.
The one thing I managed to find is the sum $A(n) = \sum_{i=0}^n log(a^{q^i})$ which was trivial but still couldn't get any results with this sum in wolframalpha for some reason...
So my question is : Is it possible to find closed form of $S(n)$ and if so what method should I use to find it?
EDIT:
A theory of mine: If there is closed form function: $f(\sum_{i=0}^n x_i^q) = \sum_{i=0}^n x_i^{q^2} $ then $S(n+1) = f(S(n))+a$ however there might be set $Y$ where: $S(n) =\sum_{i=0}^n y_i^{q^n}$ then $S(n+1) = f(S(n)) + a$ is different from the old $S(n+1)$. So in order for $f(x)$ to exist $X$ must be a set of $a_1,a_2...,a_n$ elements and as such $f(x)$ can't be closed form and $S(n)$ respectively.