AMC 10 Step by Step

2024 AMC 10A Problem 20

P16-20~7 minPrint

Let SS be a subset of {1,2,3,…,2024}\{1, 2, 3, \dots, 2024\} such that the following two conditions hold:

  • If xx and yy are distinct elements of SS , then ∣x−y∣>2.|x-y| > 2.
  • If xx and yy are distinct odd elements of SS , then ∣x−y∣>6.|x-y| > 6.

What is the maximum possible number of elements in SS ?

Log in to save your progress.
Show solution without answering

Key insight

Ten numbers in a row hold at most 3 members; four would force two odd members 6 apart. The pattern 1, 4, 8 in each ten reaches 608.

Solution

Start small to see what goes wrong. The simplest idea is to take every third number: 1,4,7,10,13,…1, 4, 7, 10, 13, \ldots. But 11 and 77 are both odd and only 66 apart, which breaks the second rule. So we cannot pack members every 33 steps for long. The question is how often we can.

This is a "maximum" question, so it has two halves.

Part 1: no stretch of 1010 numbers in a row holds more than 33 members.

  1. Take any 1010 numbers in a row, from kk to k+9k + 9. Members must be at least 33 apart.
  2. Could 44 members fit? The first and the last would be at least 3+3+3=93 + 3 + 3 = 9 apart, and the stretch is only 99 long. So the only way is exactly k,k+3,k+6,k+9k, k + 3, k + 6, k + 9.
  3. But kk and k+6k + 6 are both odd or both even, and so are k+3k + 3 and k+9k + 9. One of kk and k+3k + 3 is odd. So one of these pairs is two odd members only 66 apart. Not allowed.
  4. So each block of 1010 numbers in a row holds at most 33 members.
  5. Cut 11 to 20242024 into 202202 blocks of ten (11 to 1010, 1111 to 2020, and so on up to 20112011 to 20202020) plus the leftover 2021,2022,2023,20242021, 2022, 2023, 2024. The leftover four numbers can hold at most 22 members (they must be 33 apart). So there are at most 202⋅3+2=608202 \cdot 3 + 2 = 608 members.

Part 2: 608608 members is possible.

  1. In each block of ten, take the numbers ending in 11, 44 and 88: that is 1,4,8,11,14,18,21,…,2011,2014,20181, 4, 8, 11, 14, 18, 21, \ldots, 2011, 2014, 2018. Then add 20212021 and 20242024.
  2. Check rule 1: the gaps go 3,4,3,3,4,3,…3, 4, 3, 3, 4, 3, \ldots and at the end 2018→2021→20242018 \to 2021 \to 2024 are gaps of 33. Every gap is more than 22.
  3. Check rule 2: the only odd members are the ones ending in 11: 1,11,21,…,20211, 11, 21, \ldots, 2021. They are 1010 apart, which is more than 66.
  4. Count: 202202 blocks with 33 each, plus 22, is 608608.

At most 608608 and exactly 608608 is possible, so the maximum is 608608.

The answer is (C) 608\boxed{\textbf{(C)}\ 608}.

Why this works

For "spread out as many as possible" problems, find a short stretch and ask how many members fit in it; that gives a limit you can repeat across the whole range. Try a few lengths until the rules really start to bite, which here happens at 1010. Then show a repeating pattern that meets the limit, and handle the leftover numbers at the end separately.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Upper bound. Take any 1010 consecutive integers. Elements of SS are pairwise at least 33 apart, so at most 44 of them lie in this stretch, and 44 is possible only if they are k,k+3,k+6,k+9k, k+3, k+6, k+9. But then k,k+6k, k+6 share a parity and so do k+3,k+9k+3, k+9; one of these pairs consists of two odd elements only 66 apart, contradicting the second condition. So every 1010 consecutive integers contain at most 33 elements of SS.

Cut {1,…,2024}\{1, \dots, 2024\} into 202202 blocks of ten (11–1010, …, 20112011–20202020) plus the leftover {2021,2022,2023,2024}\{2021, 2022, 2023, 2024\}, which holds at most 22 elements (they must be 33 apart). Hence ∣S∣≤202⋅3+2=608|S| \le 202\cdot 3 + 2 = 608.

Construction. In each block take 10k+1, 10k+4, 10k+810k+1,\ 10k+4,\ 10k+8 for k=0,1,…,201k = 0, 1, \dots, 201, and add 20212021 and 20242024. Consecutive elements differ by 3,4,3,3,4,3,…3, 4, 3, 3, 4, 3, \dots and finally 2018→2021→20242018 \to 2021 \to 2024 by 33, so all gaps exceed 22. The odd elements are exactly 1,11,21,…,20211, 11, 21, \dots, 2021, spaced 1010 apart, which exceeds 66. This SS has 608608 elements.

The answer is (C) 608\boxed{\textbf{(C)}\ 608}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.