OFFSET
3,2
COMMENTS
2*a(n) is the number of ordered set partitions of an n-set into 3 nonempty sets such that the number of elements in the first two sets (in total) is at least three.
LINKS
Paolo Xausa, Table of n, a(n) for n = 3..1000
Index entries for linear recurrences with constant coefficients, signature (8,-24,34,-23,6).
FORMULA
G.f.: x^4*(12 - 31*x + 23*x^2 - 6*x^3)/((1 - x)^3*(1 - 2*x)*(1 - 3*x)). - Stefano Spezia, Jun 11 2023
EXAMPLE
2*a(5)=130 subtracting the 20 ordered set partitions of the type {1},{2},{3,4,5} from the 150 ordered set partitions of a 5-set into 3 parts.
MATHEMATICA
LinearRecurrence[{8, -24, 34, -23, 6}, {0, 12, 65, 255, 882}, 30] (* or *)
A363591[n_] := (3^n - 3*2^n - n^2 + n + 3)/2;
Array[A363591, 30, 3] (* Paolo Xausa, Aug 30 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Jun 10 2023
STATUS
approved