Let . Then the number of elements in the setand the sum of all the elements of is not a multiple of 3 is
Solution
Core idea. Divisibility of a sum depends on how many elements of each remainder are taken.
Concept refresher. A sum is divisible by 3 exactly when the remainders of its terms add to a multiple of 3. If terms leave remainder 1 and terms leave remainder 2, the condition is
for a whole number .
Picture the situation. On division by 3 the elements 3, 6 and 9 leave remainder 0; 1 and 4 leave 1; and 2 and 5 leave 2. It is easier to count the subsets whose sum is a multiple of 3 and remove them from all the non-empty subsets. The elements with remainder 0 can be put in or left out freely.
Approach. Count the non-empty subsets with a sum divisible by 3 and subtract from all the non-empty subsets.
Step 1: Sum divisible by 3
Take elements of remainder 1 and of remainder 2, each from 0 to 2. The sum is a multiple of 3 when , giving choices. Any of 3, 6, 9 can be added, giving subsets, of which 47 are non-empty.
Step 2: Subtract
The set has non-empty subsets, so those whose sum is not a multiple of 3 number .
Answer. 80
Sanity check. Directly: the pairs with give choices, and .
Common wrong answers
- 79: Subtracting all 48 subsets with a sum divisible by 3, the empty set included, from 127 gives 79.
- 47: The value 47 counts the non-empty subsets whose sum is a multiple of 3, the opposite of what is asked.
Key takeaway
The trap. The empty set must be left out of both counts or of neither.
How toppers think. They check the result with a direct count of the wanted subsets.
Remember.
More on Combinations
- A box contains 5 blue, 6 yellow and 4 red balls. The number of ways, of drawing 8 balls containing at least…
- Two players A and B play a series of games of badminton. The player, who wins 5 games first, wins the…
- Let pn denote the total number of triangles formed by joining the vertices of an n -side regular polygon. If…
- All 59 on Combinations ›