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 51.
Lara Pudwell, Systematic Studies in Pattern Avoidance, 2005.
Index entries for linear recurrences with constant coefficients, signature (7,-18,22,-14,3).
FORMULA
G.f.: x*(1 - 5*x + 10*x^2 - 7*x^3 + 3*x^4 - x^5) / ((1 - 3*x + x^2)*(1 - 4*x + 5*x^2 - 3*x^3)).
a(n) = 6*a(n-1) - 11*a(n-2) + 4*a(n-3) + 8*a(n-4) - 11*a(n-5) + 3*a(n-6) for n>6. - Colin Barker, Oct 23 2017
MATHEMATICA
LinearRecurrence[{7, -18, 22, -14, 3}, {1, 2, 6, 21, 72, 232}, 30] (* Harvey P. Dale, Dec 20 2018 *)
PROG
(PARI) Vec(x*(1 - 5*x + 10*x^2 - 7*x^3 + 3*x^4 - x^5) / ((1 - 3*x + x^2)*(1 - 4*x + 5*x^2 - 3*x^3)) + O(x^30)) \\ Colin Barker, Oct 23 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved