Difference between revisions of "1983 AIME Problems/Problem 13"
Sevenoptimus (talk | contribs) m (Fixed the problem statement) |
Sevenoptimus (talk | contribs) (Cleaned up the solutions) |
||
Line 2: | Line 2: | ||
<!-- don't remove the following tag, for PoTW on the Wiki front page--><onlyinclude>For <math>\{1, 2, 3, \ldots, n\}</math> and each of its non-empty subsets a unique '''alternating sum''' 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 <math>\{1, 2, 3, 6,9\}</math> is <math>9-6+3-2+1=5</math> and for <math>\{5\}</math> it is simply <math>5</math>. Find the sum of all such alternating sums for <math>n=7</math>.<!-- don't remove the following tag, for PoTW on the Wiki front page--></onlyinclude> | <!-- don't remove the following tag, for PoTW on the Wiki front page--><onlyinclude>For <math>\{1, 2, 3, \ldots, n\}</math> and each of its non-empty subsets a unique '''alternating sum''' 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 <math>\{1, 2, 3, 6,9\}</math> is <math>9-6+3-2+1=5</math> and for <math>\{5\}</math> it is simply <math>5</math>. Find the sum of all such alternating sums for <math>n=7</math>.<!-- don't remove the following tag, for PoTW on the Wiki front page--></onlyinclude> | ||
− | == Solution 1== | + | == Solution == |
+ | |||
+ | === Solution 1 === | ||
Let <math>S</math> be a non-[[empty set | empty]] [[subset]] of <math>\{1,2,3,4,5,6\}</math>. | Let <math>S</math> be a non-[[empty set | empty]] [[subset]] of <math>\{1,2,3,4,5,6\}</math>. | ||
− | Then the alternating sum of <math>S</math> plus the alternating sum of <math>S</math> | + | Then the alternating sum of <math>S</math>, plus the alternating sum of <math>S \cup \{7\}</math>, is <math>7</math>. This is because, since <math>7</math> is the largest element, when we take an alternating sum, each number in <math>S</math> ends up with the opposite sign of each corresponding element of <math>S\cup \{7\}</math>. |
− | |||
− | |||
− | |||
− | |||
− | + | Because there are <math>2^{6} - 1 = 63</math> of these pairs of sets (subtracting <math>1</math> to exclude the empty set), the sum of all possible subsets of our given set is <math>63 \cdot 7</math>. However, we forgot to include the subset that only contains <math>7</math>, so the answer is <math>64 \cdot 7=\boxed{448}</math>. | |
− | ==Solution | + | === Solution 2 (almost the same as Solution 1) === |
− | + | Consider a given subset <math>T</math> of <math>S</math> that contains <math>7</math>; then there is a subset <math>T'</math> which contains all the elements of <math>T</math> except for <math>7</math>, and only those elements . Since each element of <math>T'</math> has one fewer element preceding it than it does in <math>T</math>, their signs are opposite. Thus the sum of the alternating sums of <math>T</math> and <math>T'</math> is equal to 7. There are <math>2^6</math> subsets containing 7, so our answer is <math>7 * 2^6 = \boxed{448}</math>. | |
− | + | === Solution 3 === | |
− | + | Denote the desired total of all alternating sums of an <math>n</math>-element set as <math>S_n</math>. We are looking for <math>S_7</math>. Notice that all alternating sums of an <math>n</math>-element set are also alternating sums of an <math>n+1</math>-element set. However, when we go from an <math>n</math> to <math>n+1</math> element set, for each subset with the new element, we are adding the new element and subtracting one of the alternating sums of the <math>n</math>-element set. There are <math>2^n</math> subsets of an <math>n+1</math>-element set that includes the new element, giving us the relationship <math>S_{n+1} = S_n + 2^n(n+1) - S_n = 2^n(n+1)</math>. When <math>n = 6</math>, we therefore get <math>S_ 7 = 2^6(7) = \boxed{448}</math>. | |
== See Also == | == See Also == |
Revision as of 19:02, 15 February 2019
Contents
Problem
For and each of its non-empty subsets a unique alternating sum 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 is and for it is simply . Find the sum of all such alternating sums for .
Solution
Solution 1
Let be a non- empty subset of .
Then the alternating sum of , plus the alternating sum of , is . This is because, since is the largest element, when we take an alternating sum, each number in ends up with the opposite sign of each corresponding element of .
Because there are of these pairs of sets (subtracting to exclude the empty set), the sum of all possible subsets of our given set is . However, we forgot to include the subset that only contains , so the answer is .
Solution 2 (almost the same as Solution 1)
Consider a given subset of that contains ; then there is a subset which contains all the elements of except for , and only those elements . Since each element of has one fewer element preceding it than it does in , their signs are opposite. Thus the sum of the alternating sums of and is equal to 7. There are subsets containing 7, so our answer is .
Solution 3
Denote the desired total of all alternating sums of an -element set as . We are looking for . Notice that all alternating sums of an -element set are also alternating sums of an -element set. However, when we go from an to element set, for each subset with the new element, we are adding the new element and subtracting one of the alternating sums of the -element set. There are subsets of an -element set that includes the new element, giving us the relationship . When , we therefore get .
See Also
1983 AIME (Problems • Answer Key • Resources) | ||
Preceded by Problem 12 |
Followed by Problem 14 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |