OFFSET
1,2
LINKS
Jay Pantone, The Enumeration of Permutations Avoiding 3124 and 4312, arXiv:1309.0832 [math.CO], (2013)
Index entries for linear recurrences with constant coefficients, signature (4,-3,-4,3,2).
FORMULA
G.f.: (x-2*x^2-5*x^3+12*x^4+x^5-8*x^6-3*x^7)/((1-2*x)*(1-x-x^2)^2).
MATHEMATICA
Join[{1, 2}, LinearRecurrence[{4, -3, -4, 3, 2}, {0, 2, 4, 10, 21}, 40]] (* Jean-François Alcover, Jul 22 2018 *)
PROG
(PARI) x='x+O('x^66); Vec((x-2*x^2-5*x^3+12*x^4+x^5-8*x^6-3*x^7)/((1-2*x)*(1-x-x^2)^2)) \\ Joerg Arndt, Jun 19 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Jay Pantone, Jun 06 2013
STATUS
approved