login
A116756
Number of permutations of length n which avoid the patterns 1234, 3421, 4312.
0
1, 2, 6, 21, 70, 177, 333, 538, 792, 1095, 1447, 1848, 2298, 2797, 3345, 3942, 4588, 5283, 6027, 6820, 7662, 8553, 9493, 10482, 11520, 12607, 13743, 14928, 16162, 17445, 18777, 20158, 21588, 23067, 24595, 26172, 27798, 29473, 31197, 32970, 34792, 36663, 38583
OFFSET
1,2
FORMULA
G.f.: x*(9*x^6-24*x^5-23*x^4-8*x^3-3*x^2+x-1)/(x-1)^3.
For n >= 5, a(n) = (49*n^2 - 325*n + 540)/2. - Franklin T. Adams-Watters, Sep 16 2006
MAPLE
cn := [1, -2, 2, 2, 8, 23, 24, -9] ;
p := add(cn[i]*x^(i-1), i=1..nops(cn)) ;
q := (1-x)^3 ;
taylor(p/q, x=0, 40) ;
gfun[seriestolist](%) ; # R. J. Mathar, Nov 07 2017
CROSSREFS
Sequence in context: A294708 A294709 A116774 * A116813 A116765 A116815
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
EXTENSIONS
More terms from Jason Yuen, Sep 17 2025
STATUS
approved