OFFSET
0,5
FORMULA
E.g.f.: (1/(1 - x) + exp(2*x)*(1 - x))/2. - Stefano Spezia, Jun 05 2024
EXAMPLE
a(1)=a(2)=a(3)=1 due to S_1,S_2,S_3 containing 1 permutation with an even number of non-fixed point cycles: the identity permutation, with 0 non-fixed point cycles.
a(4)=4 due to S_4 containing 4 permutations with an even number of non-fixed point cycles: the 3 (2,2)-cycles (12)(34),(13)(24),(14)(23); and the identity permutation (1)(2)(3)(4).
PROG
(PARI) a(n) = n!/2 - (n-2)*2^(n-2); \\ Michel Marcus, Jun 05 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Julian Hatfield Iacoponi, Jun 01 2024
STATUS
approved