Maths Olympiad Prep

Library / /60 of 62

, 2020

Combinatorics Difficulty 7.0 National Olympiad Prove it United States

Problem:

Sean enters a classroom in the Memorial Hall and sees a 11 followed by 20202020 00's on the blackboard. As he is early for class, he decides to go through the digits from right to left and independently erase the nnth digit from the left with probability n1n\frac{n-1}{n}. (In particular, the 11 is never erased.) Compute the expected value of the number formed from the remaining digits when viewed as a base-33 number. (For example, if the remaining number on the board is 10001000, then its value is 2727.)

Solution

Solution:

Suppose Sean instead follows this equivalent procedure: he starts with M=100M = 10\ldots 0 on the board, as before. Instead of erasing digits, he starts writing a new number on the board. He goes through the digits of MM one by one from left to right, and independently copies the nnth digit from the left with probability 1n\frac{1}{n}. Now, let ana_{n} be the expected value of Sean's new number after he has gone through the first nn digits of MM. Note that the answer to this problem will be the expected value of a2021a_{2021}, since MM has 20212021 digits.

Note that a1=1a_{1} = 1, since the probability that Sean copies the first digit is 11.

For n>1n > 1, note that ana_{n} is 3an13 a_{n-1} with probability 1n\frac{1}{n}, and is an1a_{n-1} with probability n1n\frac{n-1}{n}. Thus,
E[an]=1nE[3an1]+n1nE[an1]=n+2nE[an1]. \mathbb{E}[a_{n}] = \frac{1}{n} \mathbb{E}[3 a_{n-1}] + \frac{n-1}{n} \mathbb{E}[a_{n-1}] = \frac{n+2}{n} \mathbb{E}[a_{n-1}].
Therefore,
E[a2021]=425320232021=2022202323=3372023=681751 \mathbb{E}[a_{2021}] = \frac{4}{2} \cdot \frac{5}{3} \cdots \frac{2023}{2021} = \frac{2022 \cdot 2023}{2 \cdot 3} = 337 \cdot 2023 = 681751

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.