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!)
A332305 Number of compositions (ordered partitions) of n into distinct parts such that number of parts is even. 11
1, 0, 0, 2, 2, 4, 4, 6, 6, 8, 32, 34, 58, 84, 132, 158, 230, 280, 376, 450, 570, 1388, 1556, 2398, 3310, 4920, 6600, 9674, 12122, 16684, 21340, 28110, 34974, 45392, 55208, 69274, 124498, 143676, 204012, 270758, 377966, 493024, 690304, 895434, 1223826, 1562948 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
G.f.: Sum_{k>=0} (2*k)! * x^(k*(2*k + 1)) / Product_{j=1..2*k} (1 - x^j).
a(n) = A032020(n) - A332304(n).
EXAMPLE
a(5) = 4 because we have [4, 1], [3, 2], [2, 3] and [1, 4].
MAPLE
b:= proc(n, i, p) option remember; `if`(i*(i+1)/2<n, 0, `if`(n=0,
irem(p+1, 2)*p!, add(b(n-i*j, i-1, p+j), j=0..min(1, n/i))))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..55); # Alois P. Heinz, Feb 09 2020
MATHEMATICA
nmax = 45; CoefficientList[Series[Sum[(2 k)! x^(k (2 k + 1))/Product[1 - x^j, {j, 1, 2 k}], {k, 0, nmax}], {x, 0, nmax}], x]
CROSSREFS
Sequence in context: A259881 A238132 A278296 * A340282 A008642 A001364
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 09 2020
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 25 06:14 EDT 2024. Contains 371964 sequences. (Running on oeis4.)