Maths Olympiad Prep

Library / /1280 of 1394

, 2020

Combinatorics Difficulty 6.0 AIME, harder Prove it United States

Problem:

Anne-Marie has a deck of 16 cards, each with a distinct positive factor of 20022002 written on it. She shuffles the deck and begins to draw cards from the deck without replacement. She stops when there exists a nonempty subset of the cards in her hand whose numbers multiply to a perfect square. What is the expected number of cards in her hand when she stops?

Solution

Solution:

Note that 2002=2711132002 = 2 \cdot 7 \cdot 11 \cdot 13, so that each positive factor of 20022002 is included on exactly one card. Each card can be identified simply by whether or not it is divisible by each of the 4 primes, and we can uniquely achieve all of the 242^{4} possibilities. Also, when considering the product of the values on many cards, we only care about the values of the exponents in the prime factorization modulo 22, as we have a perfect square exactly when each exponent is even.

Now suppose Anne-Marie has already drawn kk cards. Then there are 2k2^{k} possible subsets of cards from those she has already drawn. Note that if any two of these subsets have products with the same four exponents modulo 22, then taking the symmetric difference yields a subset of cards in her hand where all four exponents are 0(mod2)0 \pmod{2}, which would cause her to stop. Now when she draws the (k+1)(k+1)th card, she achieves a perfect square subset exactly when the exponents modulo 22 match those from a subset of the cards she already has. Thus if she has already drawn kk cards, she will not stop if she draws one of 162k16 - 2^{k} cards that don't match a subset she already has.

Let pkp_{k} be the probability that Anne-Marie draws at least kk cards. We have the recurrence
pk+2=162k16kpk+1 p_{k+2} = \frac{16 - 2^{k}}{16 - k} p_{k+1}
because in order to draw k+2k+2 cards, the (k+1)(k+1)th card, which is drawn from the remaining 16k16 - k cards, must not be one of the 162k16 - 2^{k} cards that match a subset of Anne-Marie's first kk cards. We now compute

p1=1p2=1516p3=1415p2=78p4=1214p3=34p5=813p4=613,p6=0\begin{aligned} & p_{1} = 1 \\ & p_{2} = \frac{15}{16} \\ & p_{3} = \frac{14}{15} p_{2} = \frac{7}{8} \\ & p_{4} = \frac{12}{14} p_{3} = \frac{3}{4} \\ & p_{5} = \frac{8}{13} p_{4} = \frac{6}{13}, \\ & p_{6} = 0 \end{aligned}

The expected number of cards that Anne-Marie draws is
p1+p2+p3+p4+p5=1+1516+78+34+613=837208 p_{1} + p_{2} + p_{3} + p_{4} + p_{5} = 1 + \frac{15}{16} + \frac{7}{8} + \frac{3}{4} + \frac{6}{13} = \frac{837}{208}

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.