2025 AMC 10A Problem 24

Below is the professionally curated solution for Problem 24 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:combinationsbinomial theorem

Difficulty rating: 2380

24.

Call a positive integer fair if no digit is used more than once, it has no 00s, and no digit is adjacent to two greater digits. For example, 23,196,23, 196, and 1246312463 are fair, but 1546,320,1546, 320, and 3432134321 are not. How many fair positive integers are there?

511511

2,5842{,}584

9,8419{,}841

17,71117{,}711

19,68219{,}682

Solution:

In a fair number the digits climb up to the largest digit mm and then fall; otherwise some digit would be trapped between two bigger ones. So count by size. For kk digits, pick the digit set from 11 to 99 in (9k)\binom{9}{k} ways. The largest is m,m, and each of the remaining k1k - 1 digits chooses to sit left or right of mm (2k12^{k-1} ways), which pins down the number. Sum over kk: k=19(9k)2k1=12((1+2)91)=3912=9841.\sum_{k=1}^{9}\binom{9}{k}2^{k-1} = \tfrac12\big((1 + 2)^9 - 1\big) = \tfrac{3^9 - 1}{2} = 9841. Therefore, the answer is C.

Problem 24 in Other Years