login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A308678 Kuba-Panholzer Table 2 pattern 231, 132 for Stirling permutation k = 2. 0
0, 4, 0, 5, 26, 135, 685, 3453, 17379, 87503, 441101, 2226900, 11260144, 57023761, 289204167, 1468757683, 7468800180, 38024694279, 193801106977, 988750469868, 5049220893012, 25807115270500, 132009416652052, 675765729570936, 3461711974830844, 17744712728166057 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A108174 A134530 A351571 * A184365 A126813 A056141
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Jun 16 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 07:41 EDT 2024. Contains 371964 sequences. (Running on oeis4.)