Browse · MathNet
PrintJapan Mathematical Olympiad
Japan counting and probability
Problem
Let be an integer. Arrange black stones and white stones in a row, and repeat the following operation 5 times: Divide the row of stones into groups of 5 stones from left to right. For each group, replace the 5 stones in the group with one stone of the color that appears more frequently among them. Find the smallest possible value of for which the single remaining stone at the end is always black regardless of the initial arrangement of stones.
Solution
2883
Let be a positive integer. Consider arranging black and white stones in a single row, with a total of stones. Define a bad arrangement as one where, after repetitions of an operation, the last remaining stone is white.
Define as the minimum non-negative integer such that a bad arrangement can be formed with black stones and white stones. Obviously, . If , then there exists a bad arrangement with black stones and white stones.
Now, if , then there are at most white stones, and since no bad arrangement exists, the last remaining stone must be a black stone. Conversely, if , then there are or more white stones, and there exists an arrangement where the last remaining stone is a white stone. Therefore, the desired value is . Thus, we will consider expressing in terms of for .
Consider a bad arrangement with black stones and white stones. Now, arrange black stones in the beginning, followed by three instances of , forming a row of stones. The number of white stones in this row is . After repetitions of the operation, the final arrangement consists of black, black, white, white, white stones, ensuring that the last remaining stone is white. Therefore, .
Conversely, consider a row of stones where there are at most white stones. Divide this row into sets of stones each. Since there are fewer than white stones, there can be at most 2 sets with or more white stones. From the minimality of , after repetitions of the operation, there can be at most 2 white stones among the last 5 remaining stones. Thus, the last remaining stone is black, implying .
Hence, we have . Since , the desired value is .
Let be a positive integer. Consider arranging black and white stones in a single row, with a total of stones. Define a bad arrangement as one where, after repetitions of an operation, the last remaining stone is white.
Define as the minimum non-negative integer such that a bad arrangement can be formed with black stones and white stones. Obviously, . If , then there exists a bad arrangement with black stones and white stones.
Now, if , then there are at most white stones, and since no bad arrangement exists, the last remaining stone must be a black stone. Conversely, if , then there are or more white stones, and there exists an arrangement where the last remaining stone is a white stone. Therefore, the desired value is . Thus, we will consider expressing in terms of for .
Consider a bad arrangement with black stones and white stones. Now, arrange black stones in the beginning, followed by three instances of , forming a row of stones. The number of white stones in this row is . After repetitions of the operation, the final arrangement consists of black, black, white, white, white stones, ensuring that the last remaining stone is white. Therefore, .
Conversely, consider a row of stones where there are at most white stones. Divide this row into sets of stones each. Since there are fewer than white stones, there can be at most 2 sets with or more white stones. From the minimality of , after repetitions of the operation, there can be at most 2 white stones among the last 5 remaining stones. Thus, the last remaining stone is black, implying .
Hence, we have . Since , the desired value is .
Final answer
2883
Techniques
Coloring schemes, extremal argumentsInduction / smoothing