OFFSET
1,3
LINKS
FORMULA
a(n) = ( (n-1)! * floor(n/2)! )/( n-1-floor(n/2) )!.
a(n) = P(n-1, floor(n/2)) * floor(n/2)!, where P(n,k) are the k-permutations of n objects. - Wesley Ivan Hurt, Jun 07 2013
a(n) = Product_{i=1..floor(n/2)} i * (n-i). - Wesley Ivan Hurt, Nov 14 2017
From Amiram Eldar, Mar 10 2022: (Start)
Sum_{n>=1} 1/a(n) = 3*cosh(1) - 2.
Sum_{n>=1} (-1)^(n+1)/a(n) = 2 - cosh(1). (End)
EXAMPLE
Define a(1):=1; a(2) = 1 since 2 = 1+1 and (1)*(1) = 1; a(3) = 2 since 3 = 2+1 and (2)*(1) = 2; a(4) = 12 since 4 = 3+1 = 2+2 and (3)*(1)*(2)*(2) = 12; a(5) = 24 since 5 = 4+1 = 3+2 and (4)*(1)*(3)*(2) = 24.
MAPLE
with(combinat, numbperm): seq(numbperm(k-1, floor(k/2))*floor(k/2)!, k = 1..25); # Wesley Ivan Hurt, Jun 07 2013
MATHEMATICA
Table[Times @@ Flatten[Select[Partitions[n], Length[#] == 2 &]], {n, 25}] (* T. D. Noe, Feb 11 2013 *)
Table[((n - 1)!*Floor[n/2]!)/(n - 1 - Floor[n/2])!, {n, 25}] (* Wesley Ivan Hurt, Oct 16 2014 *)
PROG
(Magma) [(Factorial(n-1) * Factorial(Floor(n/2)))/Factorial(n-1-Floor(n/2)) : n in [1..25]]; // Wesley Ivan Hurt, Oct 16 2014
(PARI) a(n) = prod(i=1, n\2, i*(n-i)); \\ Michel Marcus, Nov 14 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Feb 06 2013
STATUS
approved