I have the following recurrence:
$a_0 = \frac{1}{2} $, $a_n = 1 - \frac{2}{3}\sum_{k=0}^{n-1} a_k$ for $n \ge 1$
My steps so far:
$$A(x) = \sum_{n=0}^\infty a_nx^n$$
$$a_n = 1 - \frac{2}{3}\sum_{k=0}^{n-1}a_k$$ $$ a_n = 3 - 2\sum_{k=0}^{n-1}a_k $$
$$\sum_{n=1}^\infty a_nx^n = \sum_{n=1}^\infty 3x^n -\sum_{n=1}^\infty \sum_{k=0}^{n-1} 2a_kx^n$$
$$A(x) - \frac{1}{2} = 3 \cdot (\frac{x}{1-x}) - \sum_{n=1}^\infty \sum_{k=0}^{n-1} 2a_kx^n $$
But now I don't know what to do with the double summation? How do I simplify it?
// Edit Thanks to Anshumaan Mishra answer I made a few more steps
$$A(x) = \sum_{n=0}^\infty a_nx^n$$
$$ 3a_{n+1} = a_n$$
$$ \sum_{n=1}^{\infty}a_nx^n = 3 \sum_{n=1}^{\infty}a_{n+1}x^n $$
I'm not sure how to further convert that.
$$ 3 \sum_{n=1}^{\infty}a_{n+1}x^n $$ Do we want to subtract the first term like:
$$ \stackrel{?}{=} 3 \sum_{n=1}^{\infty}(a_{n}x^n) - \frac{1}{2} $$
I believe the question can be better interpreted if we manipulate the general term expression by expressing $\sum_{k=0}^{n-1} a_{k} $ in terms of $a_{k-1}$ as: $$a_{n} = 1-\frac{2}{3}\sum_{k=0}^{n-1}a_{k}$$ $$1-a_{n} = \frac{2}{3}\sum_{k=0}^{n-1}a_{k}$$ $$\frac{3}{2}(1-a_{n}) =\sum_{k=0}^{n-1}a_{k}$$ We will use this to evaluate the value of $\sum_{k=0}^{n}a_{k} $ $$\sum_{k=0}^{n}a_{k} = a_n + \sum_{k=0}^{n-1}a_{k}$$ $$\sum_{k=0}^{n}a_{k} = a_n + \frac{3}{2}(1-a_{n}) $$ $$\sum_{k=0}^{n}a_{k} = \frac{3}{2}-\frac{1}{2}a_{n} $$ Now putting the values in the general term for $a_{n+1}$ $$a_{n+1} = 1-\frac{2}{3}\sum_{k=0}^{n}a_{k}$$ $$a_{n+1} = 1-\frac{2}{3}(\frac{3}{2}-\frac{1}{2}a_{n})$$ $$a_{n+1} = \frac{1}{3}a_{n}$$
Now this series can be converted into a GP. But since we used the value of $a_{n-1}$ in the expression for $a_n$, the sum should be evaluated from $1$ to $n$ and the value of $a_0$ should be added as required.
Sorry for latex errors as I am not well versed in the language.
Edit: From my understanding of generative functions: $$f(x)= \frac{1}{2}+\frac{2x}{3}+\frac{2x^2}{3^2}\cdots\frac{2x^n}{3^n}$$ $$f(x)= 2+\frac{2x}{3}+\frac{2x^2}{3^2}\cdots\frac{2x^n}{3^n}-\frac{3}{2}$$ $$f(x)=2\sum_{r=0}^{n}{(\frac{x}{3})^r}-\frac{3}{2}$$ $$f(x)=2\frac{1-\frac{x^{n+1}}{3^{n+1}}}{1-\frac{x}{3}}-\frac{3}{2}$$