2025 AMC 12A Problems/Problem 23
- The following problem is from both the 2025 AMC 10A #24 and 2025 AMC 12A #23, so both problems redirect to this page.
Problem
Call a positive integer fair if no digit is used more than once, it has no
s, and no digit is adjacent to two greater digits. For example,
and
are fair, but
and
are not. How many fair positive integers are there?
Solution 1
To satisfy the conditions, a
integer must have no digit be a local minimum. Let's say we have
distinct digits, with each digit being a number from
to
. To create a
integer, we begin by placing the largest digit. For the second-largest digit, we can either place this digit to the right or to the left of the string already created. We have these
options for the third-largest digit, and so on. Therefore, there are
valid permutations to create a
integer.
We must also choose which digits will be in the permutation. If you are creating an
-digit long
integer, there are
ways to pick which digits will be in the number.
Therefore, for each
, the number of fair integers of length
is:
Summing over all
:
Note that the Binomial Theorem was used to equate
~lprado
Solution 2
Note every
number will have an increasing string of digits, a maximum digit, then a decreasing string of digits. This is because if it decreases then increases, then the digit in the middle will be less than its adjacent digits.
Let
be the maximum digit. For each number
, we may either place
before
, after
, or choose not to include it. Note this process will result in a unique number for every case, as the numbers before
must be in increasing order, and the numbers after
must be in decreasing order. Therefore, for each number
, we have
cases.
Since
, we have:
~SilverRush
Solution 2.5 (Cheese)
If you consider options D and E too large, and A and B too small, then C is your answer.
- Ameen Patel IrvingtonHighSchoolMathGeeks
Solution 3 (Recursion)
Let
be the number of fair integers given an arbitrary set of
digits. Let
be the smallest of these digits. Notice that
is either the first or last digit, as if it were any other digit, the two digits surroudning it would both be greater. Then, notice that if the remaining
slots form a fair number, so does the number when
is appended. Therefore,
. From here, we may proceed with the calculation in Solution
to get the answer of
~ Shadowleafy
Solution 4 (Two for one)
For any fair integer
, we write some
-digit base-
number(s)
from left to right as follows:
if
is not in
;
if
is the to the left of all digits greater than
in
;
if
is the to the right of all digits greater than
in
.
Note that the fairness ensured one and only one of the above three cases happens.
Now if
is the largest digit in
then
can be either
or
.
An example: If
, then
or
.
It's easy to see that there is a
-to-
mapping from all fair integers to all
-digit base-
nonzero numbers. Therefore the answer is
.
~ asops
Video Solution 1 (In 2 Mins)
https://youtu.be/hYZkrBtIFvI?si=dMOaGsXSpxYV17PO ~ Pi Academy
Video Solution 2 by OmegaLearn
Video Solution 3 by StressedPineapple
https://youtube.com/watch?v=NWBPm3lThH4&t=457s
Video Solution 4 by SpreadTheMathLove
https://www.youtube.com/watch?v=dAeyV60Hu5c
See Also
| 2025 AMC 10A (Problems • Answer Key • Resources) | ||
| Preceded by Problem 23 |
Followed by Problem 25 | |
| 1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
| All AMC 10 Problems and Solutions | ||
| 2025 AMC 12A (Problems • Answer Key • Resources) | |
| Preceded by Problem 22 |
Followed by Problem 24 |
| 1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | |
| All AMC 12 Problems and Solutions | |
These problems are copyrighted © by the Mathematical Association of America.