For even $n$ (only!), let $e_n$ stand for the number of permutations with all cycle of even length. Let $E(x)$ be the exponential generating functions. Prove that $E(x) = (1 - x^2)^{-\frac12}.$
I tried to find the generating function as a formal sum, but it didn't work out.
The egf for the number of ways to put $n$ elements into an even length cycle is \begin{align} \sum_{n=1}^\infty (2n-1)!\frac{x^{2n}}{(2n)!} &=\frac{x^2}{2}+\frac{x^4}{4}+\frac{x^6}{6}+\dots \\&=\frac12(-\log(1-x)-\log(1+x)) \\&=\log\big((1-x^2)^{-1/2}\big). \end{align} The second equality follows from $\log(1+x)=x-x^2/2+x^3/3-x^4/4+\dots$
A permutation with only even cycles is formed by partitioning $\{1,2,\dots,n\}$ into disjoint nonempty components and turning each part into an even length cycle. Therefore, by the exponential formula, the egf for even cycle only permutations is $$ \exp\log\big((1-x^2)^{-1/2}\big)=(1-x^2)^{-1/2} $$