OFFSET
1,2
REFERENCES
Kremer, Darla; and Shiu, Wai Chee; Finite transition matrices for permutations avoiding pairs of length four patterns. Discrete Math. 268 (2003), no. 1-3, 171-183. MR1983276 (2004b:05006). See Table 1.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
M. H. Albert, M. D. Atkinson, and R. Brignall, The enumeration of permutations avoiding 2143 and 4231
Index entries for linear recurrences with constant coefficients, signature (13,-71,213,-386,438,-311,133,-31,3).
FORMULA
G.f.: (x-11*x^2+51*x^3-127*x^4+186*x^5-165*x^6+87*x^7-23*x^8+3*x^9) / ((1-3*x)*(1-x)^4*(1-3*x+x^2)^2). - Vincent Vatter, Jun 21 2011
EXAMPLE
There are 22 permutations of length 4 which avoid these two patterns, so a(4)=22.
MATHEMATICA
CoefficientList[Series[(x-11*x^2+51*x^3-127*x^4+186*x^5-165*x^6+87*x^7 -23*x^8+3*x^9)/((1-3*x)*(1-x)^4*(1-3*x+x^2)^2), {x, 0, 50}], x] (* G. C. Greubel, Oct 22 2018 *)
PROG
(PARI) Vec(x*(1 - 11*x + 51*x^2 - 127*x^3 + 186*x^4 - 165*x^5 + 87*x^6 - 23*x^7 + 3*x^8) / ((1 - x)^4*(1 - 3*x)*(1 - 3*x + x^2)^2) + O(x^30)) \\ Colin Barker, Oct 31 2017
(Magma) m:=50; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((x -11*x^2+51*x^3-127*x^4+186*x^5-165*x^6+87*x^7 -23*x^8+3*x^9)/((1-3*x)* (1-x)^4*(1-3*x+x^2)^2))); // G. C. Greubel, Oct 22 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincent Vatter, Sep 21 2009
EXTENSIONS
More terms from Vincent Vatter, Jun 21 2011
STATUS
approved