OFFSET
0,4
FORMULA
E.g.f.: (1/(1 - x) - exp(2*x)*(1 - x))/2. - Stefano Spezia, Jun 05 2024
EXAMPLE
a(0)=0 due to the sole permutation in S_0 being the empty permutation, with 0 non-fixed point cycles, not an odd number.
a(1)=0 due to the sole permutation in S_1 being the fixed point (1), with 0 non-fixed point cycles, not an odd number.
a(2)=1 due to 1 permutation in S_2 with an odd number of non-fixed point cycles: (12), with 1 non-fixed point cycle.
a(3)=5 due to 5 permutations in S_3 with an odd number of non-fixed point cycles: (12)(3),(13)(2),(23)(1),(123),(132), all with 1 non-fixed point cycle.
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