|
|
A116707
|
|
Number of permutations of length n which avoid the patterns 1342, 4213.
|
|
1
|
|
|
1, 2, 6, 22, 86, 338, 1318, 5106, 19718, 76066, 293398, 1131794, 4366374, 16846018, 64995254, 250765298, 967503814, 3732821922, 14401956182, 55565542354, 214382633062, 827129764994, 3191227078902, 12312373271986, 47503525349126, 183277819294562
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: -x*(x-1)*(2*x-1)^2 / (4*x^4-16*x^3+16*x^2-7*x+1).
a(n) = 7*a(n-1) - 16*a(n-2) + 16*a(n-3) - 4*a(n-4) for n>3. - Colin Barker, Oct 20 2017
|
|
MATHEMATICA
|
CoefficientList[Series[-(x - 1)*(2*x - 1)^2/(4*x^4 - 16*x^3 + 16*x^2 - 7*x + 1), {x, 0, 30}], x] (* Wesley Ivan Hurt, Sep 04 2022 *)
|
|
PROG
|
(PARI) Vec(x*(1 - x)*(1 - 2*x)^2 / (1 - 7*x + 16*x^2 - 16*x^3 + 4*x^4) + O(x^40)) \\ Colin Barker, Oct 20 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|