Problem:
A group of 101 Dalmathians participate in an election, where they each vote independently on either candidate or with equal probability. If Dalmathians voted for the winning candidate, the expected value of can be expressed as for positive integers with . Find the unique positive integer such that .
, 2022
Solution
Solution:
Claim: with 101 replaced with , the expectation of is
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 is 2 by Fermat's little theorem, and the multiplicative inverse of is 102 by Wilson's theorem.
Now we will justify the Claim. Let be the indicator random variable of the -th Dalmathian voting for the winning candidate ( if votes for the winning candidate, and otherwise). Then we want to find
By symmetry and linearity, this is
Now, we note that is just the probability that Dalmathian 1 votes for the winning candidate. WLOG, say that they vote for . Then we want to find the probability that at least of the remaining Dalmathians also vote for . By symmetry, this is equal to the probability that exactly vote for , plus half of the remaining probability. This is:
Next, we must calculate . In order for to be 1, they must Dalmathians vote for the same candidate ( chance), and then this candidate has to win (at least out of the remaining Dalmathians vote for that candidate). Overall, this occurs with probability
Now when we add the two terms together, we get
With some simplification, you get the expression in the Claim.