OFFSET
1,2
LINKS
D. Callan, T. Mansour, Enumeration of small Wilf classes avoiding 1324 and two other 4-letter patterns, arXiv:1705.00933 (2017), Table 2 No 10.
Lara Pudwell, Systematic Studies in Pattern Avoidance, 2005.
Index entries for linear recurrences with constant coefficients, signature (3,-1,0,-2,-4,-1,2,3,1).
FORMULA
G.f.: x (2x^10 +4x^9 +9x^8 +9x^7 +4x^6 -18x^5 -15x^4 -5x^3 -x^2+x-1)/((x-1) (x^3+x^2+x-1) (x^5+3x^4+2x^3+x^2+x-1))
MAPLE
cn := [-1, 2, 0, -1, -7, -19, -19, 6, 12, 10, 4, 2] ;
p := add(cn[i]*x^(i-1), i=1..nops(cn)) ;
q := (x-1)*(x^5+3*x^4+2*x^3+x^2+x-1)*(x^3+x^2+x-1) ;
taylor(p/q, x=0, 40) ;
gfun[seriestolist](%) ; # R. J. Mathar, Nov 07 2017
MATHEMATICA
Join[{1, 2}, LinearRecurrence[{3, -1, 0, -2, -4, -1, 2, 3, 1}, {6, 21, 70, 199, 502, 1232, 2962, 6970, 16138}, 30]] (* Harvey P. Dale, Nov 18 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved