OFFSET
1,2
LINKS
David Callan and Toufik Mansour, Enumeration of small Wilf classes avoiding 1324 and two other 4-letter patterns, arXiv:1705.00933 [math.CO] (2017), Table 2 No 160.
Lara Pudwell, Systematic Studies in Pattern Avoidance, 2005.
Index entries for linear recurrences with constant coefficients, signature (8,-22,22,-1,-6).
FORMULA
G.f.: -x*(4*x^4 + 5*x^3 - 12*x^2 + 6*x - 1)/((x - 1)*(3*x - 1)*(2*x - 1)*(x^2 + 2*x - 1)).
For n > 0, a(n) = 2^n + 2*3^(n-1) - ((1 + sqrt(2))^(n+2) + (1 - sqrt(2))^(n+2))/4 + 1/2. - Vaclav Kotesovec, Jan 19 2026
MATHEMATICA
LinearRecurrence[{8, -22, 22, -1, -6}, {1, 2, 6, 21, 75}, 40] (* Harvey P. Dale, Jul 25 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
EXTENSIONS
a(27)-a(29) from Stefano Spezia, Jan 19 2026
STATUS
approved
