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!)
A186362 Number of non-up-down cycles in all permutations of {1,2,...,n}. A cycle (b(1), b(2), ...) is said to be up-down if, when written with its smallest element in the first position, it satisfies b(1)<b(2)>b(3)<... . 2
0, 0, 0, 1, 8, 59, 458, 3865, 35688, 360127, 3956214, 47096633, 604722604, 8337692687, 122932350162, 1930964182649, 32201197533072, 568323756438079, 10585305178638446, 207520767220183033, 4272031355927379828, 92145190111463378863, 2078280173125850650890 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
E. Deutsch and S. Elizalde, Cycle up-down permutations, arXiv:0909.5199 [math.CO], 2009.
FORMULA
E.g.f.: log( (1-sin(z))/(1-z) ) / (1-z).
a(n) = Sum(k*A186361(n,k), k>=0).
a(n) = n!*Sum(((j-1)!-E(j-1))/j!, j=1..n), where E(i)=A000111(i) are the Euler (or up-down) numbers.
a(n) ~ n! * (log(n) + gamma + log(1-sin(1))), where gamma is the Euler-Mascheroni constant (A001620). - Vaclav Kotesovec, Oct 02 2013
EXAMPLE
a(3) = 10 because the permutations (1)(2)(3), (12)(3), (13)(2), (1)(23), (132), and (123) have a total of 3 + 2 + 2 + 2 + 0 + 1 = 10 up-down cycles.
MAPLE
g := ln((1-sin(z))/(1-z))/(1-z): gser := series(g, z = 0, 25): seq(factorial(n)*coeff(gser, z, n), n = 0 .. 22);
MATHEMATICA
CoefficientList[Series[Log[(1-Sin[x])/(1-x)]/(1-x), {x, 0, 20}], x]* Range[0, 20]! (* Vaclav Kotesovec, Oct 02 2013 *)
PROG
(PARI) x='x+O('x^30); concat(vector(3), Vec(serlaplace(log((1-sin(x))/(1-x))/(1-x)))) \\ G. C. Greubel, Aug 30 2018
CROSSREFS
Sequence in context: A112424 A190977 A254662 * A285231 A264817 A032365
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Feb 28 2011
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 July 20 16:16 EDT 2024. Contains 374459 sequences. (Running on oeis4.)