Browse · MathNet
PrintBelorusija 2012
Belarus 2012 counting and probability
Problem
Pirate Bob has 14 silver, 15 gold, and 16 platinum coins, and Pirate Bill has 16 silver, 15 gold, and 14 platinum coins. From time to time they exchange their coins using the following rule: one of the pirates gives to the other pirate two coins of the same metal and instead of them gets two coins from the other two metals. At some moment Bill has no gold coins. How many platinum coins can Bill have at this moment?
Solution
Let be the set of gold, silver and platinum coins of Bill at some moment. The initial set is . Note that Bob and Bill have together gold, silver and platinum coins. So, , , and at any moment. By condition, at any time. Therefore, if at some moment, then at the same moment, so .
By condition, after any interchange of coins the set can be one of the following sets 1) , 2) , 3) , 4) , 5) , 6) . It is easy to see that the difference in the old and in any new set are congruent modulo in any case. We have for the initial set, so at any time. For we have . We see that the numbers and are congruent modulo (among the numbers from to ). Therefore, when Bill has gold coins he can have only one of these five values of platinum coins. On the other hand, Bill can have any of these five numbers of platinum coins.
Indeed, if Bill gives two gold coins to Bill seven times successively, then . The first table shows how Bill can get the smallest number of platinum coins (), and the second table shows how Bill can get the greatest number of platinum coins (). We also see that Bill can also get coins.
By condition, after any interchange of coins the set can be one of the following sets 1) , 2) , 3) , 4) , 5) , 6) . It is easy to see that the difference in the old and in any new set are congruent modulo in any case. We have for the initial set, so at any time. For we have . We see that the numbers and are congruent modulo (among the numbers from to ). Therefore, when Bill has gold coins he can have only one of these five values of platinum coins. On the other hand, Bill can have any of these five numbers of platinum coins.
Indeed, if Bill gives two gold coins to Bill seven times successively, then . The first table shows how Bill can get the smallest number of platinum coins (), and the second table shows how Bill can get the greatest number of platinum coins (). We also see that Bill can also get coins.
| 23 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 0 | 1 | 2 | 0 | 1 | 2 | 0 | |
| 21 | 22 | 23 | 21 | 19 | 20 | 18 | 16 | 17 |
| 23 | 21 | 22 | 20 | 18 | 19 | 17 | 15 | 16 | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 0 | 1 | 2 | 0 | 1 | 2 | 0 | |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
Final answer
17, 20, 23, 26, 29
Techniques
Invariants / monovariantsModular Arithmetic