Browse · MathNet
PrintIranian Mathematical Olympiad
Iran counting and probability
Problem
is a positive integer. Consider all sequences of numbers and with length . At first, some of these numbers are marked. Two sequences are called neighbors if they have the same value in all their digits except for one. In each step, a non-marked sequence that has at least two marked neighbors is also marked. The goal is to have all the sequences to be marked at the end. Find the least number of initially marked sequences such that the goal is achievable.
Solution
First, we make an example. Assume these vertices where 's are marked vertices and 's are unmarked vertices. (in case of odd two vertices have an in common) If we initially mark them, then after one minute all vertices with one will be marked. So after two minutes all vertices with two s will be marked, and so on. So after minutes all vertices will be marked.
Now we have to prove that if we initially mark vertices, and after a while all vertices get marked, then .
Consider the connected components of marked vertices every minute. We claim that every marked-connected component with initially marked vertices has diameter at most . We prove our claim by induction. First step is easy to prove. Now assume that after minutes, the claim is true. After minutes, if two (or more) marked connected components with initially marked vertices merge, then the diameter of the new merged marked component will be at most So by this claim, after a while we have one connected component having all vertices. This connected component has initially marked vertices and diameter . Therefore, we have which concludes our bound. ■
Now we have to prove that if we initially mark vertices, and after a while all vertices get marked, then .
Consider the connected components of marked vertices every minute. We claim that every marked-connected component with initially marked vertices has diameter at most . We prove our claim by induction. First step is easy to prove. Now assume that after minutes, the claim is true. After minutes, if two (or more) marked connected components with initially marked vertices merge, then the diameter of the new merged marked component will be at most So by this claim, after a while we have one connected component having all vertices. This connected component has initially marked vertices and diameter . Therefore, we have which concludes our bound. ■
Final answer
⌊n/2⌋ + 1
Techniques
Invariants / monovariantsInduction / smoothingGames / greedy algorithms