返回题库

AIME 1983 · 第 13 题

AIME 1983 — Problem 13

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

For {1,2,3,,n}\{1, 2, 3, \ldots, n\} and each of its non-empty 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,3,6,9}\{1, 2, 3, 6,9\} is 96+32+1=59-6+3-2+1=5 and for {5}\{5\} it is simply 55. Find the sum of all such alternating sums for n=7n=7.

解析

Solution

Solution 1

Let SS be a non- empty subset of {1,2,3,4,5,6}\{1,2,3,4,5,6\}.

Then the alternating sum of SS, plus the alternating sum of S{7}S \cup \{7\}, is 77. This is because, since 77 is the largest element, when we take an alternating sum, each number in SS ends up with the opposite sign of each corresponding element of S{7}S\cup \{7\}.

Because there are 26=642^{6}=64 of these pairs of sets, the sum of all possible subsets of our given set is 64764 \cdot 7, giving an answer of 448\boxed{448}.

Solution 2 (almost the same as Solution 1)

Consider a given subset TT of SS that contains 77; then there is a subset TT' which contains all the elements of TT except for 77, and only those elements . Since each element of TT' has one fewer element preceding it than it does in TT, their signs are opposite. Thus the sum of the alternating sums of TT and TT' is equal to 7. There are 262^6 subsets containing 7, so our answer is 726=4487 \cdot 2^6 = \boxed{448}.

Solution 3

Denote the desired total of all alternating sums of an nn-element set as SnS_n. We are looking for S7S_7. Notice that all alternating sums of an nn-element set are also alternating sums of an n+1n+1-element set. However, when we go from an nn to n+1n+1 element set, for each subset with the new element, we are adding the new element and subtracting one of the alternating sums of the nn-element set. There are 2n2^n subsets of an n+1n+1-element set that includes the new element, giving us the relationship Sn+1=Sn+2n(n+1)Sn=2n(n+1)S_{n+1} = S_n + 2^n(n+1) - S_n = 2^n(n+1). When n=6n = 6, we therefore get S7=26(7)=448S_ 7 = 2^6(7) = \boxed{448}.

Solution 4

We analyze all the numbers from 1 to 7 separately to see where the number contributes its positive or negative to the sum of the alternating sums. Whenever 7 appears, which it does 64 times, it contributes a positive because it is always first. This gives a net gain of 764=4487 \cdot 64=448.

If we look at when 6 appears, which it also does 64 times, whether it comes as positive or negative depends on the presence of 7. Half of the subsets with 6 have 7 resulting in subtracting 6 each time, while the other half does not have 7 adding 6 each time, so these contributions of sixes cancel each other out giving a net gain of 0.

The same thing happens to any positive integer less than 7. This is because the determination of a positive or negative contribution is dependent on the number of larger numbers in front of it(For example, the sign of 3 is dependent on the presence of 4, 5, 6, and 7 in the subset). If the number of larger numbers is even, it gives in a positive copy while odd produces its negative. We know that the frequencies of these two cases occurring are the same because 0=(11)n=(n0)(n1)+(n2)...(nn)0=(1-1)^{n}=\binom{n}{0}-\binom{n}{1}+\binom{n}{2}-...\binom{n}{n} via the Binomial Theorem. Therefore, all positive integers less than 7 will not have any effect and our sum will be 448\boxed{448}.

Solution 5

Let Nn:={1,2,3,n}\mathbb{N}_n := \{1, 2, 3, \dots n\}. Let the alternating sum of a certain subset of SS of Nn\mathbb{N}_n be ξ(S),\xi(S), and let

A(Nn):=SNnξ(S).\mathcal{A}(\mathbb{N}_n) := \sum_{S \subseteq \mathbb{N}_n} \xi(S). We see that

A(Nn)=SNnξ(S)=nS,SNnξ(S)+SNn1ξ(S)=A(Nn1)+nS,SNn(nξ(S{n})),\mathcal{A}(\mathbb{N}_n) = \sum_{S \subseteq \mathbb{N}_n} \xi(S) = \sum_{n \in S, S \subseteq \mathbb{N}_n} \xi(S) + \sum_{S \subseteq \mathbb{N}_{n-1}} \xi(S) = \mathcal{A}(\mathbb{N}_{n-1}) + \sum_{n \in S, S \subseteq \mathbb{N}_n} \left( n - \xi(S - \{n\}) \right), as if nS,n \in S, nn is the largest element in S.S. Now, we know that

nS,SNnnξ(S{n})=SNn1nξ(S)=n2n1SNn1ξ(S)=n2n1A(Nn1),\sum_{n \in S, S \subseteq \mathbb{N}_n} n - \xi(S - \{n\}) = \sum_{S \subseteq \mathbb{N}_{n-1}} n - \xi(S) = n \cdot 2^{n-1} - \sum_{S \subseteq \mathbb{N}_{n-1}} \xi(S) = n \cdot 2^{n-1} - \mathcal{A}(\mathbb{N}_{n-1}), so

A(Nn)=n2n1.\mathcal{A}(\mathbb{N}_{n}) = n \cdot 2^{n-1}. Thus, our answer (which is the n=7n = 7 case) is A(N7)=726=448.\mathcal{A}(\mathbb{N}_{7}) = 7 \cdot 2^6 = \boxed{448}.

Solution 6 (Lucky Guess, Not Recommended)

Computing the first few SnS_n gives, S1S_1 == 11, S2S_2 == 44, S3S_3 == 1212, and S4S_4 == 3232. From this, we think the formula for SnS_n must be an exponential function in terms of 2n2^n because the amount of subsets that a set with nn elements has is 2n2^n and this is a question about subsets so we try SnS_n = 2n(x)2^n(x). Trying this formula for the first few SnS_n, gives away xx to be n/2n/2 or more simply SnS_n = 2n1(n)2^{n-1}(n) (try proving this by induction) . Substuiting n=7n = 7 gives the requested answer of S7=26(7)=448S_ 7 = 2^6(7) = \boxed{448}.

Sidenote

This solution is not a proof and since the AIME does not require proof, it is okay to finsh the answer like this. If you would like to see why the formula holds, please observe Solution 3.

-ThemathCanadian