How do I characterise a progression of the form: $$ c+ba^{-(n-1)} $$
where integer $n > 0$.
My motivation is that I'm trying to find an efficient sum for this progression, to an arbitrary $n$. (The existing function sums by iterative addition, which is very inefficient for even moderately large $n$.)
From asking earlier I am informed this is not a geometric progression (and hence I can't use the sum formula for a geometric progression).
So, what kind of progression is this, and how do I efficiently sum it, ideally with arithmetic no more complex than exponentiation?
You have $$u_n = c + \frac{b}{a^{n-1}}$$ and you want to find $$S_n = \sum_{k=1}^{n}u_k = \sum_{k=1}^{n}\left( c + \frac{b}{a^{k-1}}\right) =cn+b\left(1+\frac{1}{a^2}+\cdots +\frac{1}{a^{n-1}}\right) $$ $$ = cn+\frac{b}{a^{n-1}}\left(\frac{a^n-1}{a-1}\right).$$