This is a problem from Loren Larson's "Problem solving through problems", 2.5.13, page 78.
Let $S_{n}=${$1,2,...,n$}. A derangement of $S_{n}$ is a permutation with no fixed points. Let $g_{n}$ be the number of derangements, and $f_{n}$ the number of permutations of $S_{n}$ with exactly one fixed point. Show that $|f_{n}-g_{n}|=1$
I proved that $g_{n}=(n-1)(g_{n-1}+g_{n-2})$, and by analyzing the number of permutations for $S_{3}$ and $S_{4}$ I've conjectured that $g_{2n}=f_{2n}+1$, and $g_{2n+1}=f_{2n+1}-1$, although I don't know how to prove it. I also found that $f_{n+1}=(n+1)g_{n}$.
HINT: Let $\pi$ be a permutation of $S_n$ with exactly one fixed point. Let $k$ be the fixed point; then $\pi\upharpoonright(S_n\setminus\{k\})$ is a derangement of $S_n\setminus\{k\}$. Let
$$s:S_n\setminus\{k\}\to S_{n-1}:\ell\mapsto\begin{cases} \ell,&\text{if }\ell<k\\ \ell-1,&\text{if }\ell>k\;; \end{cases}\tag{1}$$
$s$ is a bijection, and $s\circ\big(\pi\upharpoonright(S_n\setminus\{k\})\big)\circ s^{-1}$ is a derangement of $S_{n-1}$. Conversely, if $\pi$ is a derangement of $S_{n-1}$, $k\in S_n$, and $s$ is defined by $(1)$, then $s^{-1}\circ\pi\circ s$ is a permutation of $S_n$ having exactly one fixed point, $k$. Thus, $f_n=ng_{n-1}$. If you combine this with your recurrence for $g_n$, you should be able to finish the proof (and incidentally prove your observation about odd/even subscripts), but feel free to leave a question if you get stuck.