I am trying to find a closed form for
$$ Y(n) = Y(n-1) -2Y(n-2) + 4^{n-2} \text{ with initial conditions } Y(0) = 2,Y(1) = 1 $$
using generating functions. However, I am still not entirely sure how the process works. Will I always want to choose some series $A(x) = \sum a_nx^n$ to substitute for $Y(n)$ and remove successive terms as necessary to get the $Y(n-1)$ and $Y(n-2)$ terms? Are there other choices for functions, or other tricks to be aware of?