OFFSET
3,2
COMMENTS
LINKS
M. Griffiths, I. Mezo, A generalization of Stirling Numbers of the Second Kind via a special multiset, JIS 13 (2010) #10.2.5.
Index entries for linear recurrences with constant coefficients, signature (6,-11,6).
FORMULA
For a>=3, a(n) = 3^(n-2) - 3*2^(n-3) + 1.
E.g.f.: 3*e^(3x) - 3*e^(2x) + e^x (shifted).
O.g.f.: x^3*(1-2x+3x^2)/((1-x)*(1-2x)*(1-3x)).
a(n) = A126644(n-3). - R. J. Mathar, Dec 11 2009
EXAMPLE
The partitions of {1,1,2,3} into exactly three nonempty parts are {{1},{1},{2,3}}, {{1},{2},{1,3}}, {{1},{3},{1,2}} and {{2},{3},{1,1}}.
MAPLE
MATHEMATICA
f1[n_] := 3^(n - 2) - 3 2^(n - 3) + 1; Table[f1[n], {n, 3, 25}]
PROG
(Magma) [3^(n-2) - 3*2^(n-3) + 1: n in [3..35]]; // Vincenzo Librandi, Dec 12 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Martin Griffiths, Nov 30 2009
STATUS
approved