login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
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).
From Colin Barker, Oct 06 2017: (Start)
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
Sequence in context: A294754 A116750 A116791 * A116786 A116748 A116812
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved