OFFSET
1,3
COMMENTS
a(n)/ceiling(n/2), i.e., a(n) divided by the positive integers repeated, leads to another sequence of integer numbers [1, 1, 3, 11, 39, 235, 1243, 9979, ... ].
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..450
FORMULA
MAPLE
MATHEMATICA
A000240[n_] := Subfactorial[n] - (-1)^n;
T[n_, k_] := T[n, k] = Switch[k, 1, 1, n, A000240[n], _, k*T[n - 1, k - 1] + T[n - 1, k]];
a[n_] := Sum[T[n, k], {k, 1, n}];
Table[a[n], {n, 1, 22}] (* Jean-François Alcover, Nov 14 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Johannes W. Meijer, Jul 27 2011
STATUS
approved