.
Find the number of subsets of
S = {1, 3, 8, 17, 30, 36, 47, 58},
so that the sum of the elements in the subset is less than 20.
(Note that for the empty subset, we take the sum of the elements as 0.)
~~~~~~~~~~~~~~~~~~~~~~~
Looking into the given set, we see that all numbers 30, 36, 47, 58 can be excluded
from consideration, since each of them is just greater than 20.
So, the original set of 8 numbers can be reduced to the set of 4 numbers {1, 3, 8, 17}.
For this set of 4 numbers, the number of all its subsets is = 16.
But not all of these 16 subsets fit the condition.
We should exclude the subsets that produce the sum 20 or greater.
So, the subsets to exclude are these 6 subsets
{1, 3, 8, 17}, {1, 3, 17}, {1, 8, 17}, {3, 8, 17}, {3,17}, {8,17}.
The rest of the subsets, 16 - 6 = 10, fit the condition.
ANSWER. There are 10 subsets that fit the condition.
Solved.