Skip to main content
OlympiadHQ

Browse · MathNet

Print

Hong Kong Preliminary Selection Contest

Hong Kong counting and probability

Problem

If a sequence of positive integers (where is a positive integer) has the property that the last digit of is the same as the first digit of (here and we define ), then the sequence is said to be a 'dragon sequence'. For example, , and are all 'dragon sequences'. At least how many two-digit numbers must be chosen at random to ensure that a 'dragon sequence' can be formed among some of the chosen numbers?
Solution
If we take any 46 two-digit numbers, then only 44 two-digit numbers are not chosen. Hence we either have one of the 36 pairs where , or one of the 9 numbers . In either case, we get a 'dragon sequence' by definition.

Next, suppose we only pick those two-digit numbers whose units digit is smaller than whose tens digit. There are altogether 45 such numbers. If we get a 'dragon sequence' among these numbers, say , then , which is a contradiction. So these 45 numbers contain no 'dragon sequence'. It follows that the answer is 46.
Final answer
46

Techniques

Pigeonhole principleColoring schemes, extremal arguments