Skip to main content

AMC 12 Mock Exam 10 Problem 25

Problem 25 of 25

The integers 1,2,3,…,301,2,3,\ldots,30 are written on a blackboard. Rosa repeatedly does the following until the board is empty: she chooses one of the numbers still on the board uniformly at random, then erases that number together with every multiple of it that is still on the board. For example, if her first choice is 1010, she erases 1010, 2020, and 3030. What is the expected number of choices Rosa makes?

Answer choices

Show solution

Solution

A coupling. Before starting, shuffle the thirty numbers into a uniformly random order. Then let Rosa, at each step, choose the first number in this order that is still on the board. At every step, the numbers still on the board appear in the order in a uniformly random relative order, so the first of them is uniformly random among them. So this produces exactly Rosa's process, and we may analyze the shuffled order instead.

When is kk chosen? The number kk is erased exactly when kk or one of its proper divisors is chosen. Call dd the divisor of kk (possibly kk itself) that comes first in the shuffled order.

  • When the scan reaches dd, the number dd is still on the board. It could only have been erased by an earlier choice of a divisor of dd, which would also be a divisor of kk coming before dd.
  • So dd is chosen, and it erases kk.

Hence kk is chosen if and only if kk comes before all of its proper divisors. All divisors of kk are on the board, and each is equally likely to come first among them, so this has probability 1τ(k)\frac{1}{\tau(k)}, where τ(k)\tau(k) is the number of divisors.

Linearity, organized by the shape of kk. The expected number of choices is ∑k=1301τ(k)\sum_{k=1}^{30}\frac1{\tau(k)}. Group k≤30k\le30 by prime factorization: shapekτcount1111p2,3,5,7,11,13,17,19,23,29210p24,9,2533p3, pq8,27; 6,10,14,15,21,22,2649p41651p2q12,18,20,2864p3q, pqr24; 3082\begin{array}{l|l|c|c} \text{shape}&k&\tau&\text{count}\\\hline 1&1&1&1\\ p&2,3,5,7,11,13,17,19,23,29&2&10\\ p^2&4,9,25&3&3\\ p^3,\ pq&8,27;\ 6,10,14,15,21,22,26&4&9\\ p^4&16&5&1\\ p^2q&12,18,20,28&6&4\\ p^3q,\ pqr&24;\ 30&8&2 \end{array} (The counts total 3030.) The sum is 1+102+33+94+15+46+28=7+52+15+23=31130≈10.37.1+\frac{10}2+\frac33+\frac94+\frac15+\frac46+\frac28=7+\frac52+\frac15+\frac23=\boxed{\frac{311}{30}}\approx10.37. (The distractor 1111 assumes that exactly 11 and the ten primes get chosen; 1010 counts the primes alone.)

Tagged: expected number of moves in a random erasing game (coupling with a random permutation)