OFFSET
0,4
COMMENTS
a(n) is the number of ordered set partitions of an n-set into 3 sets such that the first and second sets have an odd number of elements and an element is selected from the third.
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-7,-12,17,6,-9).
FORMULA
a(n) = n*A081251(n-2) for n >= 3.
a(n) = n*(3^(n-1) + (-1)^(n-1) - 2)/4.
G.f.: 2*x^3*(3 - 6*x - x^2)/((1 - x)^2*(1 + x)^2*(1 - 3*x)^2). - Stefano Spezia, Jan 23 2023
EXAMPLE
The first 4 cases are shown below for a(4)=24 (where the element selected from the third set is in parenthesis):
{1}, {2}, {(3), 4}
{1}, {2}, {3, (4)}
{2}, {1}, {(3), 4}
{2}, {1}, {3, (4)}.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Jan 22 2023
STATUS
approved