OFFSET
0,4
COMMENTS
a(n) is the number of ordered set partitions of an n-set into 3 sets such that the first set has an even number of elements greater than or equal to two, the second set has either one or no elements, and the third set has no restrictions.
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-13,12,-4).
FORMULA
a(n) = 2^(n-1) + n*2^(n-2) - n - 1 for n >= 2.
G.f.: x^2*(1 - 4*x^2 + 2*x^3)/((1 - x)^2*(1 - 2*x)^2). - Stefano Spezia, Mar 04 2023
a(n) = (n + 2)*2^(n-2) - n - 1 = A129953(n) - n - 1 for n >= 2. - Stefano Spezia, Mar 05 2023
EXAMPLE
The 19 set partitions for n=4 are the following:
{1,2,3,4}, { }, { } (one of these);
{1,2}, { }, {3,4} (6 of these);
{1,2}, {3}, {4} (12 of these).
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Feb 26 2023
STATUS
approved