login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A340761
Number of partitions of n into 4 parts whose 'middle' two parts have the same parity.
0
0, 0, 0, 0, 1, 1, 1, 2, 4, 4, 5, 7, 10, 11, 13, 16, 21, 23, 26, 31, 38, 41, 46, 53, 62, 67, 74, 83, 95, 102, 111, 123, 138, 147, 159, 174, 192, 204, 219, 237, 259, 274, 292, 314, 340, 358, 380, 406, 436, 458, 484, 514, 549, 575, 605, 640, 680, 710, 745, 785, 830, 865, 905, 950, 1001
OFFSET
0,8
FORMULA
a(n) = Sum_{k=1..floor(n/4)} Sum_{j=k..floor((n-k)/3)} Sum_{i=j..floor((n-j-k)/2)} [(j mod 2) = (i mod 2)], where [ ] is the Iverson bracket.
MATHEMATICA
Table[Sum[Sum[Sum[KroneckerDelta[Mod[i, 2], Mod[j, 2]], {i, j, Floor[(n - j - k)/2]}], {j, k, Floor[(n - k)/3]}], {k, Floor[n/4]}], {n, 0, 80}]
CROSSREFS
Sequence in context: A256984 A111138 A349462 * A035625 A219875 A132128
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jan 19 2021
STATUS
approved