所有子集的“交错和”权重之和
Find the sum of the weights of all the subsets
题目详情
对集合 的每个子集,把元素按升序排列并交替加减求和(第一个加、第二个减、第三个加…),得到的整数称为该子集的权重。
求所有子集权重之和。
For every subset of , arrange the numbers in the increasing order and take the sum with alternating signs. The resulting integer is called the weight of the subset. Find the sum of the weights of all the subsets of .
解析
把不含 1 的子集 与含 1 的子集 成对。
可验证每一对满足
共有 对,因此总和为
Original Explanation
Let denote the weight of subset S. Every subset S of that does not contain element 1 can be uniquely paired with the subset that contains element 1. Since there are subsets of , there are such pairs. Note that ; that is, the combined weight of each pair is 1. For example,
Hence, the sum of weights of all the subsets is .