Skip to main content

2025 AMC 10A Problem 24

Problem 24 of 25HarderAlgebraCounting & Probability

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,23, 196,196, and 1246312463 are fair, but 1546,1546, 320,320, and 3432134321 are not fair. How many fair positive integers are there?

Answer choices

Show solution

Solution

A fair number’s digits must increase up to its largest digit mm and then decrease. Indeed, the first ascent after any descent would begin at a digit smaller than both of its neighbors. For kk digits, choose the digit set from 11 to 99 in (9k)\binom{9}{k} ways. Each of the k1k-1 digits below mm independently goes on the increasing left side or the decreasing right side, after which its position is forced. Hence the total is k=19(9k)2k1\sum_{k=1}^{9}\binom{9}{k}2^{k-1} =12((1+2)91)= \tfrac12\big((1+2)^9-1\big) =3912= \tfrac{3^9-1}{2} =9841.=9841. Therefore, the answer is C.

More practice

Concepts: combinations · binomial theorem

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.