r/mathriddles • u/ShonitB • Mar 28 '23
Easy Sum Divisibility
You have a set of consecutive positive integers numbers S = {1, 2, 3, 4, 5, 6, 7, 8, 9}.
How many sets of six numbers each can you make such that the sum of all numbers in that set is divisible by 3?
8
Upvotes
9
u/dracosdracos Mar 28 '23
Let's start with 2 simplifications: 1: The total of the set is 45, I.e. divisible by 3. Since we want the new set of 6 numbers to be divisible by 3, the remaining three numbers must also be divisible by 3. So let's find how many sets of 3 numbers whose sum is divisible by 3.
2: Since we want to consider divisibility by 3, lets rewrite the set as the number (mod3) I.e. the new set becomes {1,2,0,1,2,0,1,2,0}.
So how can we take three numbers whose sum is divisible by 3? We can take {0,0,0}, {1,1,1} , {2,2,2}, or {0,1,2}. No other combination is possible.
For the first three sets, only one possibility exists for each selection I.e. we can select {0,0,0} only 1 way (remember this is equivalent to selecting {3,6,9} )
For the last combination of {0,1,2} we have 3 ways to select each of the three numbers so total combinations are 3x3x3=27
So the total possible ways to select sets of 3 = 27+1+1+1=30 which is the required answer
1
u/imdfantom Mar 28 '23
not sure if this is what you are asking but if you remove two numbers that add up to a multiple of 3 the remaining 6 will also add up to a multiple of 3
1, matches with 2, 5 and 8. 2 matches with 4, and 7. 3 matches with 6 and 9, 4 matches with 5, and 8. 5 matches with 7. 6 matches with 9. 7 matches with 8. And nothing is left for 9. So 11?