OFFSET
0,3
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 0..460
Sergey Kitaev, Segmented partially ordered generalized patterns, Theoretical Computer Science 349(3) (2005), 420-428; see Proposition 7 (p. 424).
FORMULA
E.g.f.: x*exp(x/2) / (cos(sqrt(3)*x/2) - sin(sqrt(3)*x/2) / sqrt(3)) + 1.
a(n) ~ n! * exp(Pi/(3*sqrt(3))) * (3*sqrt(3)/(2*Pi))^n. - Vaclav Kotesovec, Aug 24 2014
EXAMPLE
For n = 4, we have a(4) = 20 because the only bad permutations are 1234, 1342, 1243 and 2341.
MATHEMATICA
CoefficientList[Series[x*E^(x/2)/(Cos[Sqrt[3]*x/2] - Sin[Sqrt[3]*x/2] / Sqrt[3]) + 1, {x, 0, 20}], x] * Range[0, 20]! (* Vaclav Kotesovec, Aug 24 2014*)
CROSSREFS
KEYWORD
nonn
AUTHOR
Signy Olafsdottir (signy06(AT)ru.is), May 09 2010, May 14 2010
EXTENSIONS
Offset corrected by Vaclav Kotesovec, Aug 24 2014
More terms from Vaclav Kotesovec, Aug 24 2014
STATUS
approved