OFFSET
1,1
COMMENTS
The product of the first parts of the partitions of 2n into exactly two parts plus the product of the second parts of the partitions of 2n into exactly two parts.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..370
FORMULA
a(n) = n! + (2n-1)!/(n-1)!.
E.g.f.: 1/(1 - x) + 1/(2*sqrt(1 - 4*x)) - 3/2. - Ilya Gutkovskiy, Dec 06 2016
EXAMPLE
a(3) = 66, since 2(3) = 6 has 3 partitions with exactly two parts: (5,1), (4,2), and (3,3). a(3) = 5*4*3 + 1*2*3 = 60 + 6 = 66.
MATHEMATICA
Table[n! + (2 n - 1)! / (n - 1)!, {n, 20}] (* Vincenzo Librandi, Feb 07 2018 *)
PROG
(Magma) [Factorial(n)+Factorial(2*n-1) div Factorial(n-1): n in [1..20]]; // Vincenzo Librandi, Feb 07 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jun 15 2013
STATUS
approved