OFFSET
0,2
LINKS
Markus Kuba, Alois Panholzer, Stirling permutations containing a single pattern of length three, Australasian Journal of Combinatorics (2019) Vol. 74, No. 2, 216-239.
FORMULA
For k = 2, a(n) = Sum_{j = 0..(n - 1)} (binomial(n - 1, j) * (k^2 * binomial(n + j (k - 1) + k - 4, n - j - 4) + (k - 1) * binomial(n + j (k - 1) + k - 3, n - j - 2) + binomial(n + j (k - 1) + k - 2, n - j - 1) - (2 k - 1) * binomial(n + j (k - 1) - 3, n - j - 2) - binomial(n + j (k - 1) - 2, n - j - 1)))
MATHEMATICA
With[{k = 2}, Table[Sum[Binomial[n - 1, j] (k^2*Binomial[n + j (k - 1) + k - 4, n - j - 4] + (k - 1) Binomial[n + j (k - 1) + k - 3, n - j - 2] + Binomial[n + j (k - 1) + k - 2, n - j - 1] - (2 k - 1) Binomial[n + j (k - 1) - 3, n - j - 2] - Binomial[n + j (k - 1) - 2, n - j - 1]), {j, 0, n - 1}], {n, 0, 25}]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Jun 16 2019
STATUS
approved