OFFSET
1,4
FORMULA
a(1) = 1, and for n >= 2, a(n) = Sum_{k=1..floor(n/2)} k = A000217(floor(n/2)) if b(n) := floor(n/2) - delta(n) = A219839(n) = 0, where delta(n) = A055034(n), and if b(n) > 0, i.e., n = n(j) = A111774(j), for j >= 1, then a(n) < A000217(floor(n/2)), determined by a(n) = A000217(delta(n)) + R(n), with R(n) = Sum_{k = delta(n)+1..floor(n/2)} (1 + degree(S(k-1, x) evaluated with C(n, x) = 0)), where the C polynomial coefficients are given in A187360.
EXAMPLE
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Jan 15 2021
STATUS
approved