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!)
A199495 Number of permutations of [n] starting and ending with an odd number. 2
0, 1, 0, 2, 4, 36, 144, 1440, 8640, 100800, 806400, 10886400, 108864000, 1676505600, 20118067200, 348713164800, 4881984307200, 94152554496000, 1506440871936000, 32011868528640000, 576213633515520000, 13380961044971520000, 267619220899430400000 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
From Alois P. Heinz, Nov 07 2011: (Start)
a(n) = 2*(n-2)! * [x^(n-2)] x/((1+x)^2*(1-x)^3) for n>=2, else a(n) = n.
a(n) = 2*A152887(n-2) for n>=2, else a(n) = n. (End)
MAPLE
a:= n-> `if`(n<2, n, ceil(n/2)*(ceil(n/2)-1)*(n-2)!):
seq(a(n), n=0..30); # Alois P. Heinz, Nov 07 2011
CROSSREFS
Sequence in context: A009090 A009295 A277091 * A182965 A189002 A304558
KEYWORD
nonn
AUTHOR
Olivier Gérard, Nov 07 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 April 19 02:28 EDT 2024. Contains 371782 sequences. (Running on oeis4.)