I'm trying to find the closed form of the ordinary generating function for the following sequences:
(1) $2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0,\dotsc.$
(2) $0, 0, 1, 3, 9, 27, 81, 243,\dotsc$
Here is my work. I think I've figured out the sequences. My problem is, how do I get these into closed form? From class, I'm used to seeing closed form in other ways; for example, the geometric series would be $1/(1-x)$; binomial theorem would be $(1+z)^n$. But how would I write these in closed form? Also, am I correct in thinking that these numbers are meant to represent coefficients?
Your second sequence as a generating function is $$ z^3+3z^4+9z^5+\dotsb=z^3(1+3z+9z^2+\dotsb)=\frac{z^3}{1-3z}. $$ while your first is $$ 2z+2z^5+2z^9+\dotsb=2z(1+z^4+z^8+\dotsb)=\frac{2z}{1-z^4}. $$ These answers are based on the fact that your indexing starts at $1$.