Let S=p1,p2…,p10 be the set of first ten prime numbers. Let A=S∪P, where P is the set of all possible products of distinct elements of S. Then the number of all ordered pairs (x,y),x∈S, y∈A, such that x divides y, is \_\_\_\_\_\_\_\_ .
Answer: 5120
Solutions · 1
Official solution
Fix x=pi∈S. For x∣y with y∈A, y must be a product including pi as a factor, i.e. y=pi⋅λ where λ is a product of any subset of the remaining 9 primes (including the empty subset, giving y=pi itself).
Number of such λ: k=0∑9(k9)=29=512.
Since this holds for each of the 10 choices of x:
\[10 \times 512 = 5120\]