OFFSET
1,2
COMMENTS
a(n) is n times the number of partitions of n into an odd number of consecutive parts.
FORMULA
a(n) = n*A082647(n).
EXAMPLE
For n = 15 the partitions of 15 into an odd number of consecutive parts are [15], [6, 5, 4] and [5, 4, 3, 2, 1], so a(15) = 15 + 6 + 5 + 4 + 5 + 4 + 3 + 2 + 1 = 15*3 = 45.
PROG
(PARI) a(n) = my(q = sqrt(2*n)); n*sumdiv(n, d, (d%2) && (d < q)); \\ Michel Marcus, Mar 11 2022; after A082647
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Mar 09 2022
STATUS
approved