OFFSET
0,3
LINKS
M. D. Atkinson, Restricted permutations, Discrete Math., 195 (1999), 27-38.
Christian Bean, Bjarki Gudmundsson, Henning Ulfarsson, Automatic discovery of structural rules of permutation classes, arXiv:1705.04109 [math.CO], 2017.
J. West, Generating trees and forbidden subsequences, Discrete Math., 157 (1996), 363-374.
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = 1+binomial(n,2)+binomial(n+2,5).
G.f.: 1-x*(x^5-4*x^4+7*x^3-8*x^2+4*x-1)/(x-1)^6. - Colin Barker, Aug 02 2012
a(n) = 1+A027658(n-2). - R. J. Mathar, Aug 19 2022
EXAMPLE
There are 13 permutations of length 4 which avoid these two patterns, so a(4)=13.
MATHEMATICA
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {1, 1, 2, 5, 13, 32}, 50] (* Harvey P. Dale, May 19 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincent Vatter, Jul 05 2010
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, Jul 05 2018
STATUS
approved