OFFSET
0,5
LINKS
FORMULA
G.f.: 1/(1 - Sum_{k>=1} x^(k*(k+1)/2)/(1 + x^(k*(k+1)/2))).
EXAMPLE
a(12) = 6 because we have [3, 6, 3], [3, 1, 3, 1, 3, 1], [1, 10, 1], [1, 6, 1, 3, 1], [1, 3, 1, 6, 1] and [1, 3, 1, 3, 1, 3].
MATHEMATICA
nmax = 52; CoefficientList[Series[1/(1 - Sum[x^(k (k + 1)/2)/(1 + x^(k (k + 1)/2)), {k, 1, nmax}]), {x, 0, nmax}], x]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 22 2018
STATUS
approved