The subset dilemma

Determine the number of subsets of A = { 1 , 2 , , 10 } A=\{1, 2, \ldots, 10\} whose sum of elements are greater than or equal to 28 28 .


The answer is 512.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

7 solutions

Kristian Mamforte
May 20, 2014

Consider two disjoint subsets X and Y of A whose union is A. Then S(X) + S(Y) = 1 + 2 + ... + 10 = 55, where S(X) is the sum of all the elements of X. If S(X) < 28, then S(Y) > 27 or S(Y) >=28. Hence Y is one of the subsets we are looking for. On the other hand, if S(X) >= 28, then S(Y) < 28. Hence X is one of the subsets we are looking for. Hence for every pairing of disjoint subsets X and Y such that X U Y = A, exactly one of S(X) and S(Y) is greater than or equal to 28. Thus, since there are 2^10 subsets of A, there 2^9 = 512 subsets of A whose sum of its elements is greater than or equal to 28.

Russell Few
May 20, 2014

We would establish a bijective correspondence with the subsets S S of N N which have a sum of elements which is at least 28 and the subsets T T of N N which have a sum of elements which is lesser than 28. [Note: He used S S for both types of subsets. Using T T makes the proof unambiguous and easier to read. - Calvin]

For any subset S S of N N , we could pair it with the complement of S S , which we will denote as T S T_S . This is also a subset of N N . Since the sum of the elements of N N is 1 + 2 + . . . + 10 = 55 1 + 2 + ... + 10 = 55 , the sum of elements in T S T_S is less than 28, because if x < 28 x < 28 , then 55 x > 28. 55 - x > 28.

Every distinct subset S S of N N that has a sum of elements less than 28 has a distinct complement T S T_S , because the complement is all of the elements of N N after the elements in S S are removed, and if S S is different, the complement of S S would also be different.

This establishes a bijective correspondence with the subsets S S of N N and the subsets T T of N N . For each subset, we could choose whether or not to include each of the elements of 1, 2, ..., 10, so there are 2 10 = 1024 2^{10} = 1024 possible subsets. Since half of those subsets have a sum of elements which is at least 28, the number of subsets which has a sum that is at least 28 is 1024 2 = 512 \frac {1024 }{2} = 512 .

A common mistake made was to only explain the injection, or the surjection, but not both.

Calvin Lin Staff - 7 years ago
Kevin Lei
May 20, 2014

If S is a subset of A, then S' = A\S = {x|x in A and x not in S} is the complement of S. If the sum of the elements of S is k, then the sum of the elements of S' is 45-k. There is then a natural bijection between X = the subsets of A whose elements are greater than or equal to 23 and Y = the subsets of A whose elements are less than 23 by taking the function f:X->Y f(A) = A'. Furthermore, X and Y form a partition of A. Then the cardinality of X = the cardinality of Y = 1/2 the cardinality of A = 1/2 * 2^10 = 512.

Caleb Wagner
May 20, 2014

The first step is to calculate how many subsets we are dealing with here in total. For a set with n distinct elements, the number of subsets is calculated from the binomial sum and comes out to {2}^{n}.

Thus, in our set A there are {2}^{10} = 1024 distinct subsets.

The next step is to see how the sum of elements of these subsets are distributed. A starting point is to place bounds on the sums. The smallest is of course 0, given by the empty set \left{ \right}. And the largest is given by the sum of elements of the set itself. This is:

1+2+3+4+5+6+7+8+9+10 = 55

So the sum of elements ranges from 0 to 55. The final step is to recognize that exactly half the subsets have elements whose sum is greater than or equal to 28. We can see this from the fact that the requirement 28\leq sum splits the interval [0, 55] exactly in half, and from the fact that sums are distributed symmetrically about the midpoint of the interval [0,55].

So the number of subsets meeting the given requirement is half the total number of subsets:

\frac{1024}{2} = 512, which is our answer.

Jonathan Yu
May 20, 2014

Let S S be a subset of A A . Let S S' be the set of all elements in A A that are not in A A . If the sum of the elements of S S is k k , then the sum of the elements of S S' is 55 k 55 - k since 1 + 2 + + 10 = 55 1+2+ \cdots +10=55 . Therefore, there is a one-to-one correspondence between sets with sum k k s.t. 0 k 27 0 \leq k \leq27 and sets with sum k k s.t. 28 k 55 28 \leq k \leq 55 . It follows that the desired answer is the half of the total number of subsets of A A , or 2 10 2 = 512 \frac{2^{10}}{2} = 512 .

Calvin Lin Staff
May 13, 2014

The sum of all the elements of A A is 1 + 2 + + 10 = 10 × 11 2 = 55 1+2+\ldots +10 = \frac {10 \times 11}{2} = 55 . Let B B denote the set of subsets of A A whose sum of elements is greater than or equal to 28, and let C C denote the set of subset of A A whose sum of elements is less than or equal to 27. Since B C B \cup C represent all the subsets of A A , thus B + C = 2 10 |B| + |C| = 2^{10} .

Now, given S S a subset of A A , consider its complement S c S^c . Since the sum of elements in these 2 sets is 55, exactly one of these sets is in B B and exactly one of these sets is in C C . Hence, B = C |B|=|C| .

Thus, B = 2 9 = 512 |B|= 2^9 = 512 .

This question became easy solely because the numbers were set such. However, say A={1,2,3,4,5,6,7,8,.....40} and again I have to count the number of subsets of A such that the sum of numbers is >=28. Would it have been straightforward still? Is this generalizable for A={1,2,3........ N} ?

Yugesh Kothari - 4 years, 8 months ago

Log in to reply

What do you think? What have you tried?

Calvin Lin Staff - 4 years, 8 months ago
Yong See Foo
May 20, 2014

The answer is equal to ( 10 1 ) + ( 10 2 ) + ( 10 3 ) + ( 10 4 ) + ( 10 5 ) / 2 = 512 {10 \choose 1}+{10 \choose 2}+{10 \choose 3}+{10 \choose 4}+{10 \choose 5}/2=512 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...