|
|
A116775
|
|
Number of permutations of length n which avoid the patterns 1234, 2341, 4132.
|
|
1
|
|
|
1, 2, 6, 21, 72, 221, 605, 1517, 3574, 8065, 17671, 37953, 80424, 168885, 352481, 732581, 1518074, 3139033, 6480187, 13360153, 27514476, 56610861, 116377941, 239059421, 490715582, 1006612721, 2063574895, 4227833137, 8657015344, 17716708965, 36238752201
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1 - 6*x + 16*x^2 - 19*x^3 + 13*x^4 - 11*x^5 - 5*x^6 + 4*x^7) / ((1 - x)^4*(1 - 2*x)^2).
a(n) = (6*(-44+21*2^n) + (-56+9*2^n)*n + 12*n^2 - 28*n^3) / 24 for n>2.
a(n) = 8*a(n-1) - 26*a(n-2) + 44*a(n-3) - 41*a(n-4) + 20*a(n-5) - 4*a(n-6) for n>8.
(End)
|
|
PROG
|
(PARI) Vec(x*(1 - 6*x + 16*x^2 - 19*x^3 + 13*x^4 - 11*x^5 - 5*x^6 + 4*x^7) / ((1 - x)^4*(1 - 2*x)^2) + O(x^50)) \\ Colin Barker, Oct 06 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|