AMC 12 Mock Exam 10 Problem 25
Problem 25 of 25
The integers 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 , she erases , , and . 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 chosen? The number is erased exactly when or one of its proper divisors is chosen. Call the divisor of (possibly itself) that comes first in the shuffled order.
- When the scan reaches , the number is still on the board. It could only have been erased by an earlier choice of a divisor of , which would also be a divisor of coming before .
- So is chosen, and it erases .
Hence is chosen if and only if comes before all of its proper divisors. All divisors of are on the board, and each is equally likely to come first among them, so this has probability , where is the number of divisors.
Linearity, organized by the shape of . The expected number of choices is . Group by prime factorization: (The counts total .) The sum is (The distractor assumes that exactly and the ten primes get chosen; counts the primes alone.)
Tagged: expected number of moves in a random erasing game (coupling with a random permutation)