Skip to main content
OlympiadHQ

Browse · MathNet

Print

China Western Mathematical Olympiad

China counting and probability

Problem

Let . Find the number of all nonempty subsets of such that and , where is the sum of all elements of .
Solution
Define . Let , , . For , let , , , then



So if and only if . It follows that

The number of nonempty subsets so that is

If and , then . Since , so the value is 15 or 30 (if and ).

Furthermore, So the number of such that , , and is 17.

The answer is .
Final answer
70

Techniques

Inclusion-exclusionCounting two waysLeast common multiples (lcm)Other