Maths Olympiad Prep

Library / /959 of 1394

, 2016

Combinatorics Difficulty 5.5 AIME, harder Prove it United States

Problem:
Let a,b,c,d,e,fa, b, c, d, e, f be integers selected from the set {1,2,,100}\{1,2, \ldots, 100\}, uniformly and at random with replacement. Set
M=a+2b+4c+8d+16e+32f M = a + 2b + 4c + 8d + 16e + 32f
What is the expected value of the remainder when MM is divided by 6464?
Proposed by: Evan Chen

Solution

Solution:
Consider MM in binary. Assume we start with M=0M = 0, then add aa to MM, then add 2b2b to MM, then add 4c4c to MM, and so on. After the first addition, the first bit (defined as the rightmost bit) of MM is toggled with probability 12\frac{1}{2}. After the second addition, the second bit of MM is toggled with probability 12\frac{1}{2}. After the third addition, the third bit is toggled with probability 12\frac{1}{2}, and so on for the remaining three additions. As such, the six bits of MM are each toggled with probability 12\frac{1}{2} — specifically, the kthk^{th} bit is toggled with probability 12\frac{1}{2} at the kthk^{th} addition, and is never toggled afterwards. Therefore, each residue from 00 to 6363 has probability 164\frac{1}{64} of occurring, so they are all equally likely. The expected value is then just 632\frac{63}{2}.

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.