Clear Notion Academy

Permutations and Combinations (Beyond Advanced) Practice: How many 4 -element subsets of 1,2, ,12 have a sum divisible by 3 ?

Question

How many 44-element subsets of {1,2,…,12}\{1,2,\ldots,12\} have a sum divisible by 33?

Answer

Answer: 165

Hint

Only residues mod 33 matter. Each residue class has exactly four members, so choose how many elements come from each class.

Solution

Residue classes mod 33: {3,6,9,12}\{3,6,9,12\}, {1,4,7,10}\{1,4,7,10\}, {2,5,8,11}\{2,5,8,11\}, each of size 44. Let a,b,ca,b,c be the numbers chosen from the classes with residues 0,1,20,1,2; a+b+c=4a+b+c=4. The sum is ≡b+2c≡b−c(mod3)\equiv b+2c\equiv b-c\pmod3, so we need b≡c(mod3)b\equiv c\pmod 3. Possible (a,b,c)(a,b,c): (4,0,0)(4,0,0): 11. (2,1,1)(2,1,1): (42)⋅4⋅4=96\binom42\cdot4\cdot4=96. (0,2,2)(0,2,2): (42)(42)=36\binom42\binom42=36. (1,3,0)(1,3,0): 4⋅4=164\cdot4=16. (1,0,3)(1,0,3): 1616. Total 1+96+36+16+16=1651+96+36+16+16=165.

More questions from Permutations and Combinations (Beyond Advanced) Practice

Practise the full set: Permutations and Combinations — Beyond Advanced