OFFSET
1,3
COMMENTS
a(n) = 0 if and only if n is an even power of 2.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
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 six odd parts, they are [15, 7, 5, 5, 3, 1], so a(15) = 6.
PROG
(PARI) A329321(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
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 10 2019
STATUS
approved