login
A116765
Number of permutations of length n which avoid the patterns 1234, 2431, 4312.
0
1, 2, 6, 21, 70, 195, 458, 942, 1752, 3016, 4886, 7539, 11178, 16033, 22362, 30452, 40620, 53214, 68614, 87233, 109518, 135951, 167050, 203370, 245504, 294084, 349782, 413311, 485426, 566925
OFFSET
1,2
FORMULA
G.f.: A(x) = -{(3x^6+6x^5-9x^4+5x^3-9x^2+4x-1)x}/{(x-1)^6}
For n >= 2, a(n) = (n^5 + 75n^4 - 715n^3 + 2685n^2 - 4446n + 2880)/120. - Franklin T. Adams-Watters, Sep 16 2006
MAPLE
cn := [1, -5, 11, -11, 10, 3, -5, -3] ;
p := add(cn[i]*x^(i-1), i=1..nops(cn)) ;
q := (1-x)^6 ;
taylor(p/q, x=0, 40) ;
gfun[seriestolist](%) ; # R. J. Mathar, Nov 07 2017
CROSSREFS
Sequence in context: A116774 A116756 A116813 * A116815 A116804 A116832
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved