|
|
A116704
|
|
Number of permutations of length n which avoid the patterns 2341, 4312.
|
|
1
|
|
|
1, 1, 2, 6, 22, 86, 338, 1318, 5110, 19770, 76466, 295810, 1144530, 4428622, 17136186, 66306722, 256565926, 992749334, 3841316550, 14863484902, 57512368162, 222536820262, 861078033110, 3331832349354, 12892103081874, 49884359171762
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (x^5-5*x^4+13*x^3-12*x^2+6*x-1) / (4*x^5-13*x^4+22*x^3-17*x^2+7*x-1). (corrected by Jay Pantone, Feb 18 2016)
a(n) = 7*a(n-1) - 17*a(n-2) + 22*a(n-3) - 13*a(n-4) + 4*a(n-5) for n>6. - Colin Barker, Oct 25 2017
|
|
PROG
|
(PARI) Vec((1 - 6*x + 12*x^2 - 13*x^3 + 5*x^4 - x^5) / (1 - 7*x + 17*x^2 - 22*x^3 + 13*x^4 - 4*x^5) + O(x^30)) \\ Colin Barker, Oct 25 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|