I'm currently learning exponential generating functions and am working on a problem that needs me to find the corresponding closed form expression to a given sequence.
I've been given the sequence $1,0,1,0,...$ and decided to use the EGF $e^x$ to find my solution by substituting $0$ in every odd term in the expression:
$e^x = \sum_{r=1}^\infty \frac{x^r}{r!} = 1 + \frac{x}{1!} + \frac{x^2}{2!} + \frac{x^3}{3!} + ...$
Doing so, I've arrived at this expression:
$1 + \frac{x^2}{2!} + \frac{x^4}{4!} + ...$
But I don't know where to go from here. Am I on the right track or is there a better way to find the closed form expression?
HINT: Have you considered $\frac{e^x+e^{-x}}{2}$.
ETA: And that is basically all there is. Let $(a_i)_{i=0}^{\infty}$ be a sequence. Then the exponential generating function $f$ for this sequence is by definition the function whose Taylor series is prescribed by $f(x) =$ $a_0 + \sum_{i=1}^{\infty} \frac{a_ix^i}{i!}$. If the sequence is $1,0,1,0,\ldots$ where every other term is $1$ and the remaining terms are $0$, or equivalently, if the generating sequence is $(a_i)_{i=0}^{\infty}$, where $a_i$ is $1$ iff $i$ is even and is $0$ otherwise, then by definition of exponential generating function is $f(x)=\frac{e^x+e^{-x}}{2}$, as this function has the Taylor series expansion $f(x)=1+\sum_{i=1}^{\infty} \frac{a_ix^i}{i!}$, where $a_i$ is $1$ iff $i$ is even, and $a_i =0$ otherwise.