Browse · MathNet
Print55rd Ukrainian National Mathematical Olympiad - Third Round
Ukraine counting and probability
Problem
Let us call a year colored if the decimal representation of its number has no repeating digits. For example, all years from to are colored, unlike .
a) Find the nearest chain of seven consecutive colored years in the future.
b) Can a chain of more than seven consecutive years happen in the future?
a) Find the nearest chain of seven consecutive colored years in the future.
b) Can a chain of more than seven consecutive years happen in the future?
Solution
a) Let us show that the nearest sequence of colored years is . First, we prove that in this century no sequence of more than six colored years can happen any longer. We see that digits and cannot represent units or tens. Therefore, a chain is broken at each year ending in or , which gives us the only way to form a chain of years: Here, can only be equal to , but this is the current chain. In the next century, after , the first chain is easy to find: .
b) Years we deal with are written with at least four digits. A colored chain cannot contain numbers ending in , hence the number of hundreds doesn't change throughout the chain. This implies that there are only possible last digits. Assume some colored chain has numbers. We have two cases. 1. All years have the same number of tens. Then there are only options for the last digit. Contradiction. 2. The number of tens changes within the chain. In this case the tens digit cannot be equal to . Assume this digit changes from to . The chain has numbers, thus, it should have two numbers of the type For example, they might be and . But then the chain has at least years (for example, to ). Again, we have a contradiction.
b) Years we deal with are written with at least four digits. A colored chain cannot contain numbers ending in , hence the number of hundreds doesn't change throughout the chain. This implies that there are only possible last digits. Assume some colored chain has numbers. We have two cases. 1. All years have the same number of tens. Then there are only options for the last digit. Contradiction. 2. The number of tens changes within the chain. In this case the tens digit cannot be equal to . Assume this digit changes from to . The chain has numbers, thus, it should have two numbers of the type For example, they might be and . But then the chain has at least years (for example, to ). Again, we have a contradiction.
Final answer
a) 2103, 2104, 2105, 2106, 2107, 2108, 2109; b) No, a chain longer than seven consecutive colored years cannot occur.
Techniques
Pigeonhole principleColoring schemes, extremal arguments