Variance of distinct subset sums #
This file proves the first and second moment identities for subset sums and combines them with the discrete variance bound to obtain Leo Moser's exact finite sum-of-squares inequality.
The image of the subset-sum map has cardinality 2 ^ A.card when the
subset sums of A are distinct.
Leo Moser's finite variance inequality. If a finite set of natural
numbers has distinct subset sums, then
4 ^ |A| - 1 ≤ 3 * ∑ a ∈ A, a ^ 2.
This is Theorem 2 of Richard K. Guy's 1982 account, where it is attributed to Leo Moser.