|
|
A116798
|
|
Number of permutations of length n which avoid the patterns 1234, 1342, 1432.
|
|
1
|
|
|
1, 2, 6, 21, 76, 277, 1012, 3702, 13553, 49642, 181885, 666542, 2442922, 8954133, 32821408, 120310377, 441018216, 1616644946, 5926191305, 21723934190, 79634709513, 291922123258, 1070118922286, 3922810609205, 14380129657444, 52714290239405, 193238646748572
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1 - 2*x)*(1 - 3*x + x^2) / (1 - 7*x + 15*x^2 - 11*x^3 + 3*x^4).
a(n) = 7*a(n-1) - 15*a(n-2) + 11*a(n-3) - 3*a(n-4) for n>4. - Colin Barker, Oct 23 2017
|
|
PROG
|
(PARI) Vec(x*(1 - 2*x)*(1 - 3*x + x^2) / (1 - 7*x + 15*x^2 - 11*x^3 + 3*x^4) + O(x^30)) \\ Colin Barker, Oct 23 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|