OFFSET
0,6
LINKS
FORMULA
G.f.: x^3*(1 + x + x^2 + x^3 + x^4)/((1 - x)^3*(1 + x)*(1 + x + x^2)^2).
a(n) = a(n-2) + 2*a(n-3) - 2*a(n-5) - a(n-6) + a(n-8).
a(n) = Sum_{j=1..floor(n/3)} floor((n-j)/2).
a(n) = floor(n/3)*(2*n-1-floor(n/3))/4+floor((n-2)/3)/2-floor((n-2)/2)/2.
EXAMPLE
a(10) = 11; The partitions of 10 into 3 parts grouped by smallest part: {(8,1,1),(7,2,1),(6,3,1),(5,4,1)}, {(6,2,2),(5,3,2),(4,4,2)}, {(4,3,3)}. The sum of the maximum values of all the middle parts in each set is 4+4+3 = 11.
MATHEMATICA
CoefficientList[Series[x^3*(1 + x + x^2 + x^3 + x^4)/((1 - x)^3*(1 + x)*(1 + x + x^2)^2), {x, 0, 80}], x]
LinearRecurrence[{0, 1, 2, 0, -2, -1, 0, 1}, {0, 0, 0, 1, 1, 2, 4, 5}, 80]
Table[Floor[n/3] (2 n - 1 - Floor[n/3])/4 + Floor[(n - 2)/3]/2 - Floor[(n - 2)/2]/2, {n, 0, 80}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Feb 01 2026
STATUS
approved
