Maths Olympiad Prep

Library / /62 of 86

Number theory Difficulty 7.2 National Olympiad, round 2 Prove it United States

Problem:

Call a year ultra-even if all of its digits are even. Thus 20002000, 20022002, 20042004, 20062006, and 20082008 are all ultra-even years. They are all 22 years apart, which is the shortest possible gap. 20092009 is not an ultra-even year because of the 99, and 20102010 is not an ultra-even year because of the 11.

a. In the years between the years 11 and 1000010000, what is the longest possible gap between two ultra-even years? Give an example of two ultra-even years that far apart with no ultra-even years between them. Justify your answer.

b. What is the second-shortest possible gap (that is, the shortest gap longer than 22 years) between two ultra-even years? Again, give an example, and justify your answer.

Solution

Solution:

a. The longest possible gap has length 11121112. There are four valid examples of two ultra-even years that far apart with no ultra-even years between them: 888888 to 20002000, 28882888 to 40004000, 48884888 to 60006000, or 68886888 to 80008000. (88888888 to 1000010000 is not acceptable as 1000010000 is not ultra-even).

To see that no longer gap is possible, note that if AA and BB are ultra-even years between 11 and 1000010000 with no ultra-even year between them, and BA1000B-A \geq 1000, then AA and BB must have different digits in their "thousands place". Since both of these digits must be even, that means there must be at least one odd digit dd in between them, and so all the years between d000d000 and d999d999 must be in the gap between AA and BB. But the smallest ultra-even year greater than d999d999 is e000e000 (where e=d+1e = d+1, of course), and the largest ultra-even year less than d000d000 is c888c888 (where c=d1c = d-1), so this gap must be of length exactly 11121112.

Another approach is to consider the increasing sequence of ultra-even years: 22 (the smallest ultra-even year), 888888, 20002000, 28882888, 40004000, 60006000, 68886888, 80008000, 88888888 (the largest ultra-even year less than 1000010000). Every ultra-even year is either in this sequence or lies between two elements of this sequence, so any two ultra-even years with no ultra-even years between them must have a difference that is less than or equal to a difference between two consecutive elements of this set; but the largest such difference is 11121112.

b. The second-shortest possible gap is 1212. Examples include 88 to 2020, 42684268 to 42804280, etc.

To see that this really is the second-shortest possible gap, note that every gap must be even, since the difference between any two ultra-even years is even. There are certainly many gaps of length 22 (from 40224022 to 40244024, for example). We must show that there are no gaps with lengths 4,6,84, 6, 8, or 1010. Any ultra-even year whose units digit is 0,2,40, 2, 4, or 66 is 22 less than another ultra-even year (since adding 22 to this year won't change any other digit). So if an ultra-even year is the lower year of a gap longer than 22 years, its units digit must be 88. However, if year AA is ultra-even, and has a units digit of 88, adding 2,4,6,82, 4, 6, 8, or 1010 to it will result in a year whose tens digit is one greater than the tens digit of year AA, which will mean the new number is not ultra-even. So 1212 is the smallest possible value for the gap between such years AA and the next largest ultra-even number.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.