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”).

A329322
a(n) is the total number of even parts in all partitions of n into consecutive parts.
2
0, 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 2, 1, 3, 5, 1, 1, 4, 1, 4, 6, 3, 1, 2, 3, 3, 6, 4, 1, 7, 1, 1, 6, 3, 7, 6, 1, 3, 6, 4, 1, 7, 1, 5, 12, 3, 1, 2, 5, 6, 6, 5, 1, 9, 8, 4, 6, 3, 1, 9, 1, 3, 14, 1, 8, 9, 1, 5, 6, 9, 1, 7, 1, 3, 13, 5, 11, 10, 1, 4, 10, 3, 1, 9, 8, 3, 6, 6, 1, 18
OFFSET
1,6
LINKS
FORMULA
a(n) = A204217(n) - A329321(n).
EXAMPLE
For n = 15 there are four partitions of 15 into consecutive part, they are [15], [8, 7], [6, 5, 4], [5, 4, 3, 2, 1]. In total there are five even parts, they are [8, 6, 4, 4, 2], so a(15) = 5.
PROG
(PARI) A329322(n) = { my(i=2, t=!(n%2)); n--; while(n>0, if(!(n%i), t += (!((n/i)%2)+i)\2); n-=i; i++); t }; \\ (After David A. Corneth's program for A204217) - Antti Karttunen, Dec 09 2021
CROSSREFS
Cf. A204217 (total number of parts).
Sequence in context: A364812 A129453 A129455 * A067924 A344912 A056670
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 10 2019
STATUS
approved