OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
D. Callan, T. Mansour, Enumeration of small Wilf classes avoiding 1324 and two other 4-letter patterns, arXiv:1705.00933 (2017), Table 2 No 42.
Lara Pudwell, Systematic Studies in Pattern Avoidance, 2005.
Index entries for linear recurrences with constant coefficients, signature (8,-26,44,-41,20,-4)
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
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved