OFFSET
0,3
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, the second set has an odd number of elements, and an element is selected from the third (see example).
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,2,-12,-9).
FORMULA
a(n) = n*A015518(n-1) for n > 0.
a(n) = n*(3^(n-1) - (-1)^(n-1))/4.
G.f.: 2*x^2*(1 - x)/((1 + x)^2*(1 - 3*x)^2). - Stefano Spezia, Jan 23 2023
EXAMPLE
For n = 3, the 6 cases are (where the element selected from the third set is in parenthesis):
{}, {1}, {(2), 3}
{}, {1}, {2, (3)}
{}, {2}, {(1), 3}
{}, {2}, {1, (3)}
{}, {3}, {(1), 2}
{}, {3}, {1, (2)}.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Jan 22 2023
STATUS
approved