Problem:
Let be integers selected from the set , uniformly and at random with replacement. Set
What is the expected value of the remainder when is divided by ?
Proposed by: Evan Chen
, 2016
Solution
Solution:
Consider in binary. Assume we start with , then add to , then add to , then add to , and so on. After the first addition, the first bit (defined as the rightmost bit) of is toggled with probability . After the second addition, the second bit of is toggled with probability . After the third addition, the third bit is toggled with probability , and so on for the remaining three additions. As such, the six bits of are each toggled with probability — specifically, the bit is toggled with probability at the addition, and is never toggled afterwards. Therefore, each residue from to has probability of occurring, so they are all equally likely. The expected value is then just .
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.