Let be the set of two-digit numbers that do not contain the digit 0. Two numbers in are called friends if their largest digits are equal, and if the difference between their smallest digits is equal to 1. For example, 68 and 85 are friends, 78 and 88 are friends, but 58 and 75 are not friends.
Determine the largest integer such that there exists a subset of with elements, such that any two elements of are not friends.
Solution
Answer: 45. We can take for the set of numbers whose smallest digit is odd.
Conversely, if with then and are friends. If with and even, then and are friends. We have thus found 36 disjoint pairs of friends. Consequently, among the 72 numbers can contain at most 36 numbers, so .
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.