login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A152886 Number of descents beginning and ending with an even number in all permutations of {1,2,...,n}. 2
0, 0, 0, 6, 24, 360, 2160, 30240, 241920, 3628800, 36288000, 598752000, 7185024000, 130767436800, 1830744115200, 36614882304000, 585838116864000, 12804747411456000, 230485453406208000, 5474029518397440000 (list; graph; refs; listen; history; internal format)
OFFSET

1,4

FORMULA

a(2n)=(2n-1)!*binom(n,2); a(2n+1)=(2n)!*binom(n,2).

EXAMPLE

a(7)=2160 because (i) the descent pairs can be chosen in binom(3,2)=3 ways, namely (4,2), (6,2), (6,4); (ii) they can be placed in 6 positions, namely (1,2),(2,3),(3,4),(4,5),(5,6),(6,7); (iii) the remaining 5 entries can be permuted in 5!=120 ways; 3*6*120=2160.

MAPLE

a := proc (n) if `mod`(n, 2) = 0 then factorial(n-1)*binomial((1/2)*n, 2) else factorial(n-1)*binomial((1/2)*n-1/2, 2) end if end proc: seq(a(n), n = 1 .. 22);

CROSSREFS

A152885, A152887

Sequence in context: A052733 A010567 A097171 * A128614 A139240 A052524

Adjacent sequences:  A152883 A152884 A152885 * A152887 A152888 A152889

KEYWORD

nonn

AUTHOR

Emeric Deutsch (deutsch(AT)duke.poly.edu), Jan 19 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 02:30 EST 2012. Contains 205860 sequences.