Sum of a subset (source code)

= Sum of a subset

= Sums of subsets
{synonym}

Given numbers $s_1,\ldots,s_n$, the sum associated with a subset $A$ of indices is $\sum_{i\in A}s_i$. The empty subset gives zero. The set of all these values is the <sumset> $\{0,s_1\}+\cdots+\{0,s_n\}$.