Maths Olympiad Prep

Library / /1242 of 1394

, 2022

Combinatorics Difficulty 5.9 AIME, harder Prove it United States

Problem:

Random sequences a1,a2,a_{1}, a_{2}, \ldots and b1,b2,b_{1}, b_{2}, \ldots are chosen so that every element in each sequence is chosen independently and uniformly from the set {0,1,2,3,,100}\{0,1,2,3, \ldots, 100\}. Compute the expected value of the smallest nonnegative integer ss such that there exist positive integers mm and nn with
s=i=1mai=j=1nbj. s=\sum_{i=1}^{m} a_{i}=\sum_{j=1}^{n} b_{j} .

Solution

Solution:

Let's first solve the problem, ignoring the possibility that the aia_{i} and bib_{i} can be zero. Call a positive integer ss an AA-sum if s=i=1mais=\sum_{i=1}^{m} a_{i} for some nonnegative integer mm (in particular, 0 is always an AA-sum). Define the term BB-sum similarly. Let EE be the expected value of the smallest positive integer that is both an AA-sum and a BB-sum.

The first key observation to make is that if ss is both an AA-sum and a BB-sum, then the distance to the next number that is both an AA-sum and a BB-sum is EE. To see this, note that if
s=i=1mai=j=1nbi s=\sum_{i=1}^{m} a_{i}=\sum_{j=1}^{n} b_{i}
the distance to the next number that is both an AA-sum and a BB-sum is the minimal positive integer tt so that there exist mm^{\prime} and nn^{\prime} so that
t=i=1mam+i=j=1nbn+i t=\sum_{i=1}^{m^{\prime}} a_{m+i}=\sum_{j=1}^{n^{\prime}} b_{n+i}
This is the same question of which we defined EE to be the answer, but with renamed variables, so the expected value of tt is EE. As a result, we conclude that the expected density of numbers that are both AA-sums and BB-sums is 1E\frac{1}{E}.

We now compute this density. Note that since the expected value of aia_{i} is 1012\frac{101}{2}, the density of AA-sums is 2101\frac{2}{101}. Also, the density of BB-sums is 2101\frac{2}{101}. Moreover, as nn goes to infinity, the probability that nn is an AA-sum approaches 2101\frac{2}{101} and the probability that nn is a BB-sum approaches 2101\frac{2}{101}. Thus, the density of numbers that are simultaneously AA-sums and BB-sums is 41012\frac{4}{101^{2}}, so E=10124E=\frac{101^{2}}{4}.

We now add back the possibility that some of the aia_{i} and bib_{i} can be 0. The only way this changes our answer is that the ss we seek can be 0, which happens if and only if a1=b1=0a_{1}=b_{1}=0. Thus our final answer is
110120+10121101210124=101214=2550 \frac{1}{101^{2}} \cdot 0+\frac{101^{2}-1}{101^{2}} \cdot \frac{101^{2}}{4}=\frac{101^{2}-1}{4}=2550

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.