OFFSET
1,10
COMMENTS
The first sums of a nonempty sequence (a, b, c, d, ...) are (a+b, b+c, c+d, ...).
EXAMPLE
The multiset {2,3,3} is not the first sums of any multiset, so it is counted under a(8). Note the first sums of (1,1,2,1) are (2,3,3), but (1,1,2,1) is not a multiset.
The a(6) = 1 through a(12) = 6 multisets:
{3,3} . {2,3,3} {3,3,3} {5,5} {2,4,5} {2,5,5}
{2,4,4} {3,3,5} {3,3,6}
{3,3,4} {2,3,3,3} {2,2,4,4}
{2,2,3,3} {2,3,3,4}
{3,3,3,3}
{2,2,2,3,3}
MATHEMATICA
uncha[tar_, ini_]:=(cur={ini}; Do[AppendTo[cur, tar[[k]]-If[k==1, ini, cur[[k]]]], {k, 1, Length[tar]}]; cur);
greseq[m_]:=Select[Table[uncha[m, i], {i, 1, Max[m]}], LessEqual@@#&]!={};
Table[Length[Select[Reverse/@IntegerPartitions[n], FreeQ[#, 1]&&!greseq[#]&]], {n, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 19 2025
STATUS
approved
