2025 AMC 10A Problem 21

Below is the professionally curated solution for Problem 21 of the 2025 AMC 10A, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2025 AMC 10A solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:subsetsextremal argumentpairing and grouping

Difficulty rating: 2120

21.

A set of numbers is called sum-free if whenever xx and yy are (not necessarily distinct) elements of the set, x+yx + y is not an element of the set. For example, {1,4,6}\{1, 4, 6\} and the empty set are sum-free, but {2,4,5}\{2, 4, 5\} is not. What is the greatest possible number of elements in a sum-free subset of {1,2,3,,20}?\{1, 2, 3, \ldots, 20\}?

88

99

1010

1111

1212

Solution:

We can reach 10.10. The odds {1,3,5,,19}\{1, 3, 5, \ldots, 19\} are sum-free, since two odds sum to an even. So is {11,12,,20},\{11, 12, \ldots, 20\}, since any two of those sum past 20.20. Each has 1010 elements. Now we show you can't beat 10.10. Let mm be the largest element of a sum-free subset. Pair up 1,2,,m11, 2, \ldots, m-1 as {i,mi}.\{i, m-i\}. A pair can't contribute both elements, or their sum mm would be in the set. There are (m1)/2\lfloor (m-1)/2 \rfloor such pairs, so the subset has at most (m1)/2+119/2+1=10\lfloor (m-1)/2 \rfloor + 1 \le \lfloor 19/2 \rfloor + 1 = 10 elements. Thus, C is the correct answer.

Problem 21 in Other Years