OFFSET
1,3
LINKS
FORMULA
a(n) = Sum_{i=1..floor((n-1)/2)} (n-i)^3 - i^3.
From Stefano Spezia, Oct 03 2020: (Start)
G.f.: x^3*(7 + 12*x + 16*x^2 + 6*x^3 + x^4)/((1 - x)^5*(1 + x)^3).
a(n) = 2*a(n-1) + 2*a(n-2) - 6*a(n-3) + 6*a(n-5) - 2*a(n-6) - 2*a(n-7) + a(n-8) for n > 8.
(End)
EXAMPLE
a(5) = 82; 5 has two partitions into two parts, (4,1) and (3,2). The sum of the positive differences of the cubed parts is then (4^3-1^3) + (3^3-2^3) = 63 + 19 = 82.
MATHEMATICA
Table[Sum[(n - i)^3 - i^3, {i, Floor[(n-1)/2]}], {n, 50}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Oct 03 2020
STATUS
approved
