login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A116727 Number of permutations of length n which avoid the patterns 321, 2134, 3412. 1
1, 2, 5, 12, 22, 32, 42, 52, 62, 72, 82, 92, 102, 112, 122, 132, 142, 152, 162, 172, 182, 192, 202, 212, 222, 232, 242, 252, 262, 272, 282, 292, 302, 312, 322, 332, 342, 352, 362, 372, 382, 392, 402, 412, 422, 432, 442, 452, 462, 472, 482, 492, 502, 512, 522 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
G.f.: x*(1 + 2*x^2 + 4*x^3 + 3*x^4) / (1 - x)^2.
For n >= 4, a(n) = 10*n - 28. - Franklin T. Adams-Watters, Sep 16 2006
a(n) = 2*a(n-1) - a(n-2) for n=5. - Colin Barker, Oct 24 2017
MATHEMATICA
Join[{1, 2, 5}, LinearRecurrence[{2, -1}, {12, 22}, 100]] (* Jean-François Alcover, Oct 12 2020 *)
PROG
(PARI) Vec(x*(1 + 2*x^2 + 4*x^3 + 3*x^4) / (1 - x)^2 + O(x^70)) \\ Colin Barker, Oct 24 2017
CROSSREFS
Sequence in context: A182201 A106331 A368969 * A116729 A048840 A116718
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 10:09 EDT 2024. Contains 371812 sequences. (Running on oeis4.)