Skip to main content

1983 AIME Problem 13

Problem 13 of 15HarderAlgebraCombinatorics

For {1,2,3,…,n}\{1,2,3,\ldots,n\} and each of its nonempty subsets a unique alternating sum is defined as follows: Arrange the numbers in the subset in decreasing order and then, beginning with the largest, alternately add and subtract successive numbers. (For example, the alternating sum for {1,2,4,6,9}\{1,2,4,6,9\} is 9−6+4−2+1=69-6+4-2+1=6 and for {5}\{5\} it is simply 5.5.) Find the sum of all such alternating sums for n=7.n=7.

Your answer

Integer from 0 to 999
Show solution

Solution

Fix k.k. Once kk is included, the k−1k-1 smaller elements may be chosen arbitrarily, contributing a factor of 2k−1.2^{k-1}. If exactly jj of the 7−k7-k larger elements are chosen, the sign of kk is (−1)j.(-1)^j. Therefore the coefficient of kk in the total is 2k−1∑j=07−k(−1)j(7−kj)=2k−1(1−1)7−k. \begin{aligned} &2^{k-1}\sum_{j=0}^{7-k} (-1)^j\binom{7-k}{j}\\ &\qquad=2^{k-1}(1-1)^{7-k}. \end{aligned} This is 00 for k<7k<7 and 262^6 for k=7.k=7. Hence the total is 7⋅26=448.7\cdot2^6=448.
AoPS wiki

Tagged: subsets · double counting · binomial theorem

More practice