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!)
A178594 Number of permutations of length n avoiding each length 5 pattern p with p(1)=5 and (p(5)=4 or p(4)=4). 1
0, 1, 2, 6, 24, 108, 516, 2556, 12972, 66996, 350628, 1854252, 9888924, 53107236, 286882740, 1557510012, 8492587596, 46483203348, 255273601860, 1406078670924, 7765563869436, 42991470093060, 238528474655316, 1326059132006556 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Elena Barcucci, Vincent Vajnovszki, Generalized Schroeder permutations, Theoretical Computer Science, Volume 502, 2 September 2013, Pages 210-216.
FORMULA
Generating function: (1+2*x+3*x*(-x+1-(1-6*x+x^2)^(1/2))/(x+(1-6*x+x^2)^(1/2)))*x.
Recurrence (for n>=5): (n-2)*a(n) = 3*(4*n - 11)*a(n-1) - (37*n - 131)*a(n-2) + 6*(n-5)*a(n-3). - Vaclav Kotesovec, Nov 20 2012
a(n) ~ 3*sqrt(3*sqrt(2)-4)*(3+2*sqrt(2))^n/(n^(3/2)*sqrt(Pi)). - Vaclav Kotesovec, Nov 20 2012
MATHEMATICA
CoefficientList[Series[x(1 + 2x + 3x(-x + 1 - (1 - 6x + x^2)^(1/2))/(x + (1 - 6x + x^2)^(1/2))), {x, 0, 23}], x] (* Robert G. Wilson v, Jun 28 2010 *)
PROG
(PARI) x='x+O('x^50); concat([0], Vec((1+2*x+3*x*(-x+1-(1-6*x+x^2)^(1/2))/(x+(1-6*x+x^2)^(1/2)))*x)) \\ G. C. Greubel, Mar 24 2017
CROSSREFS
Sequence in context: A163824 A356782 A094433 * A277248 A189840 A189255
KEYWORD
nonn
AUTHOR
Vincent Vajnovszki (vvajnov(AT)u-bourgogne.fr), May 30 2010
EXTENSIONS
a(19) onward from Robert G. Wilson v, Jun 28 2010
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 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)