1983 AIME Problem 13

Attempt Problem 13 of the 1983 AIME below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1983 AIME solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

13.

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.
Answer: 448
Concepts:subsetsdouble countingbinomial theorem
Small hint:
Add the contribution of each number separately over all subsets
Big hint:
The sign of kk depends only on whether the subset contains an even or odd number of elements greater than kk
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.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.