Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A152668
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A152668 Number of runs of even entries in all permutations of {1,2,...,n} (the permutation 274831659 has 3 runs of even entries: 2, 48 and 6). +0
2
2, 6, 36, 192, 1440, 10800, 100800, 967680, 10886400, 127008000, 1676505600, 22992076800, 348713164800, 5492232345600, 94152554496000, 1673823191040000, 32011868528640000, 633834996867072000, 13380961044971520000 (list; graph; listen)
OFFSET

2,1

COMMENT

a(n)=Sum(k*A152667(n,k),k=1..floor(n/2)).

FORMULA

a(2n) = (n+1)(2n)!/2;

a(2n+1) = n(n+2)(2n)!

EXAMPLE

a(3)=6 because each of the permutations 123,132,213,231,312,321 has exactly 1 run of even entries.

MAPLE

ae := proc (n) options operator, arrow: (1/2)*factorial(2*n)*(n+1) end proc: ao := proc (n) options operator, arrow: n*(n+2)*factorial(2*n) end proc: a := proc (n) if `mod`(n, 2) = 0 then ae((1/2)*n) else ao((1/2)*n-1/2) end if end proc; seq(a(n), n = 2 .. 20);

CROSSREFS

A152667, A052618.

Sequence in context: A130874 A019020 A101609 this_sequence A086325 A074424 A002868

Adjacent sequences: A152665 A152666 A152667 this_sequence A152669 A152670 A152671

KEYWORD

nonn

AUTHOR

Emeric Deutsch (deutsch(AT)duke.poly.edu), Dec 14 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 20 16:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research