Skip to main content

1989 AIME Problem 13

Problem 13 of 15HarderCombinatoricsProblem-Solving Techniques

Let SS be a subset of {1,2,3,…,1989}\{1,2,3,\ldots,1989\} such that no two members of SS differ by 44 or 7.7. What is the largest number of elements SS can have?

Your answer

Integer from 0 to 999
Show solution

Solution

On any eleven consecutive integers, join two numbers when their difference is 44 or 7.7. Because 7=11−4,7=11-4, this graph is an 1111-cycle, whose largest independent set has size 5.5. Similarly, any ten consecutive integers induce a path on ten vertices and contribute at most 5.5. Since 1989=179⋅11+2⋅10,1989=179\cdot11+2\cdot10, this gives ∣S∣≤179(5)+2(5)=905.|S|\leq179(5)+2(5)=905. This bound is attained by taking every integer whose residue modulo 1111 is 1,1, 3,3, 4,4, 6,6, or 9.9. No two selected residues differ by 44 or 77 modulo 11,11, and each of these five residues occurs 181181 times from 11 through 1989.1989. Thus the maximum is 5(181)=905.5(181)=905.
AoPS wiki

Tagged: extremal argument · graph theory · subsets

More practice