Skip to main content
OlympiadHQ

Browse · MathNet

Print

Iranian Mathematical Olympiad

Iran counting and probability

Problem

A partial sum of real numbers is the sum of some of them; that is, , where for each , is either 0 or 1 and at least one of them is nonzero. Now, having these partial sums, we want to find the numbers.

Years ago a valuable list containing real (not necessarily distinct) numbers and all their partial sums was shown to the public in a museum. Some strange creatures from the planet Hot Dog (after being defeated in solving the Rotund Polygon problem!) have stolen our original numbers and the only thing that is left are those partial sums.

a) Prove that if all the partial sums are positive, all the stolen numbers can be determined uniquely.

b) Suppose that some of the partial sums are positive and some of them negative, but none of them zero. Prove that still all the stolen numbers can be determined uniquely.

c) Prove that for , an example can be constructed to show it's not possible to determine all of the stolen numbers uniquely, by only having their partial sums.
Solution
a) Let be the stolen numbers. Since all the partial sums are positive, all the stolen numbers must be positive. Obviously is the smallest number among the partial sums. Suppose that numbers have been determined. Omit all the partial sums of from the partial sums of . The smallest number among the remaining numbers, must be , so all the numbers will be determined uniquely.

b) Suppose that are the stolen numbers and are the partial sums. Note that if , the problem is already solved in part (a). Therefore, we can assume that . We have Obviously, is the sum of negative numbers . Multiplying the above equation by implies Hence we can say that we have the partial sums of stolen numbers , and by part a, it is possible to find them uniquely. Finally, we must show that can be uniquely written as a product of 's. If there were two ways to do this, we would obtain a partial sum of 's equal to 0, which leads to a contradiction.

c) The partial sums of two sets and are the same, so adding 1389 0's to these sets will not change the partial sums.

Techniques

Generating functionsGames / greedy algorithms