Let be a set of intervals defined recursively as follows: Initially, is the only interval in . If and , then both . An integer is chosen uniformly at random from the range . What is the expected number of intervals in which contain ?
Solution
The answer is given by computing the sum of the lengths of all intervals in and dividing this value by 1000, where the length of an interval is given by . An interval may be categorized based on how many times must be split to attain it. An interval that is derived from splitting times will be called a -split. The only 0-split is , with a total length of 1000. The 1-splits are and , with a total length of 1000. As long as none of the -splits have length 1, the -splits will have the same total length. Since the length of the intervals is reduced by half each time (rounded down), we find that the sum of the lengths of the -splits is 1000 for . Note that the 9-splits consist of intervals of length 1 and intervals of length 2. Then the 10-splits consist of intervals of length 1, with total length . The total interval length across all splits is equal to , so our answer is