Maths Olympiad Prep

Library / /296 of 740

, 2022

Number theory Difficulty 4.9 AIME Find the answer United States

Problem:
A group of 101 Dalmathians participate in an election, where they each vote independently on either candidate AA or BB with equal probability. If XX Dalmathians voted for the winning candidate, the expected value of X2X^{2} can be expressed as ab\frac{a}{b} for positive integers a,ba, b with gcd(a,b)=1\operatorname{gcd}(a, b)=1. Find the unique positive integer k103k \leq 103 such that 103abk103 \mid a-b k.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:
Claim: with 101 replaced with 2k+12k+1, the expectation of X2X^{2} is
(2kk)22k+1(2k+1)2+(2k+1)(2k+2)4. \frac{\binom{2k}{k}}{2^{2k+1}}(2k+1)^{2}+\frac{(2k+1)(2k+2)}{4}.
The answer is this value taken modulo 103, which can be calculated by noting that the integers modulo 103 form a finite field. Note that the multiplicative inverse of 4 is 26, the multiplicative inverse of 21012^{101} is 2 by Fermat's little theorem, and the multiplicative inverse of 102!102! is 102 by Wilson's theorem.

Now we will justify the Claim. Let IiI_{i} be the indicator random variable of the ii-th Dalmathian voting for the winning candidate (Ii=1I_{i}=1 if ii votes for the winning candidate, and Ii=0I_{i}=0 otherwise). Then we want to find
E[(I1++I2k+1)2]. \mathbb{E}\left[\left(I_{1}+\cdots+I_{2k+1}\right)^{2}\right].
By symmetry and linearity, this is
(2k+1)E[I12]+(2k+1)(2k)E[I1I2]. (2k+1) \mathbb{E}\left[I_{1}^{2}\right]+(2k+1)(2k) \mathbb{E}\left[I_{1} I_{2}\right].
Now, we note that E[I12]=E[I1]\mathbb{E}\left[I_{1}^{2}\right]=\mathbb{E}\left[I_{1}\right] is just the probability that Dalmathian 1 votes for the winning candidate. WLOG, say that they vote for AA. Then we want to find the probability that at least kk of the remaining 2k2k Dalmathians also vote for AA. By symmetry, this is equal to the probability that exactly kk vote for AA, plus half of the remaining probability. This is:
12+(2kk)22k+1 \frac{1}{2}+\frac{\binom{2k}{k}}{2^{2k+1}}
Next, we must calculate E[I1I2]\mathbb{E}\left[I_{1} I_{2}\right]. In order for I1I2I_{1} I_{2} to be 1, they must Dalmathians vote for the same candidate (1/21/2 chance), and then this candidate has to win (at least k1k-1 out of the remaining 2k12k-1 Dalmathians vote for that candidate). Overall, this occurs with probability
12(12+(2k1k1)22k1) \frac{1}{2}\left(\frac{1}{2}+\frac{\binom{2k-1}{k-1}}{2^{2k-1}}\right)
Now when we add the two terms together, we get
(12+(2kk)22k+1)(2k+1)+(2k+1)(2k)(14+(2k1k1)22k). \left(\frac{1}{2}+\frac{\binom{2k}{k}}{2^{2k+1}}\right)(2k+1)+(2k+1)(2k)\left(\frac{1}{4}+\frac{\binom{2k-1}{k-1}}{2^{2k}}\right).
With some simplification, you get the expression in the Claim.

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.