login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
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
Sequence in context: A116782 A112091 A108146 * A279560 A116821 A116772
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved