Find the functional equation for the generating function whose coefficients satisfy $$ a_n = \sum_{i=1}^{n-1}2^ia_{n-i}, \text{ for } n\ge 2, a_0 = a_1 = 1 $$
This is what I've tried so far:
$$ \begin{align} g(x) -1 -x &= \sum_{n\ge2} \sum_{i=1}^{n-1} 2^i a_{n-i}\\ &=\sum_{n\ge2} \sum_{i=1}^n 2^i a_{n-i}x^n\\ \end{align} $$ at which point I'm stuck. How do I proceed?
HINT: Note that the inner sum looks an awful lot like the coefficient of $x^n$ in the Cauchy product of $$g(x)=\sum_{n\ge 0}a_nx^n$$ and the known series
$$f(x)=\sum_{n\ge 0}2^nx^n\;.$$
It’s missing a couple of terms, but we can adjust for that. First note that because $\sum_{k=1}^{n-1}2^ka_{n-k}=0$ when $n<2$, the recurrence is actually $$a_n=\sum_{k=1}^{n-1}2^ka_{n-k}+[n=0]+[n=1]\;,$$ where the last two terms are Iverson brackets. Thus,
$$\begin{align*} f(x)g(x)&=\sum_{n\ge 0}\sum_{k=0}^n2^ka_{n-k}x^n\\\\ &=1+3x+\sum_{n\ge 2}\left(2^0a_n+\sum_{k=1}^{n-1}2^ka_{n-k}+2^na_0\right)x^n\\\\ &=1+3x+\sum_{n\ge 2}(a_n+a_n+2^n)x^n\\\\ &=1+3x+\sum_{n\ge 2}(2a_n+2^n)x^n\\\\ &=1+3x+2g(x)+f(x)-(3+4x)\\\\ &=2g(x)+f(x)-x-2\;. \end{align*}$$
Since you presumably know a closed form for $f(x)$, it should now be easy to get what you want.