|
|
A116847
|
|
Number of permutations of length n which avoid the patterns 123, 51432.
|
|
1
|
|
|
1, 2, 5, 14, 41, 119, 336, 924, 2492, 6636, 17536, 46137, 121095, 317434, 831571, 2177734, 5702191, 14929519, 39087182, 102332996, 267912946, 701407172, 1836310110, 4807524929, 12586266701, 32951277474, 86267568321, 225851430414, 591286726197, 1548008751831
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1 - 5*x + 10*x^2 - 9*x^3 + 5*x^4 - x^5) / ((1 - x)^4*(1 - 3*x + x^2)).
a(n) = 1 - ((3-sqrt(5))/2)^n/sqrt(5) + ((3+sqrt(5))/2)^n/sqrt(5) - (4*n)/3 + n^2/2 - n^3/6. - Colin Barker, Oct 31 2017
|
|
PROG
|
(PARI) Vec(x*(1 - 5*x + 10*x^2 - 9*x^3 + 5*x^4 - x^5) / ((1 - x)^4*(1 - 3*x + x^2)) + O(x^40)) \\ Colin Barker, Oct 31 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|