AMC 12 Mock Exam 8 Problem 25
Problem 25 of 25
Let be the set of all positive integers that are the product of two distinct primes; for example, , , and are in , but , , and are not. How many subsets of , including the empty set, have the property that the product of their elements is a perfect square? (The product of the elements of the empty set is .)
Answer choices
Show solution
Solution
The set . Its elements are for the odd primes ; for the primes ; for the primes ; and , ( numbers). Since , there are no others, so . Call the elements not divisible by the odd elements; each is a product of two odd primes.
Reformulation. Every element is squarefree, so a product of elements of a subset is a perfect square exactly when every prime divides an even number of the elements of .
First insight: the odd elements can be chosen freely, and then everything else is forced. Fix any set of odd elements ( choices). For each odd prime , let be the number of elements of divisible by . The only other element of divisible by is , so for the exponent of to be even we must include exactly when is odd. Thus extends in at most one way, namely , and in every odd prime appears an even number of times.
Second insight: the prime takes care of itself. The exponent of in the product over is the number of odd primes with odd. But , since each odd element is divisible by exactly two odd primes, and this sum is even. So the number of odd is even (the handshake lemma), and the exponent of is even as well. Hence every extends in exactly one way.
The number of subsets with a square product is therefore .
(Equivalently: think of the primes as vertices and the elements of as edges of a connected graph; the answer is . The distractor forgets that the condition at the last prime is automatic, and counts all subsets.)
Tagged: square products of semiprimes: forcing by the prime 2 and the handshake lemma