AIME 2026 I · 第 2 题
AIME 2026 I — Problem 2
题目详情
Problem 2
Find the number of positive integer palindromes written in base , with no zero digits, and whose digits add up to . For example, has these properties. Recall that a palindrome is a number whose representation reads the same from left to right as from right to left.
解析
Solution 1
To count possible numbers in a structured manner, we can split the casework depending on how many digits the number has. Only numbers with an odd number of digits are possible, because numbers with an even number of digits will have digits adding up to an even number, and 13 is odd.
13 digits
There is one case for this, .
11 digits
We have possibilities: arrangements of and one arrangement of .
9 digits
There are possibilities: arrangements of , arrangements of , arrangements of , and arrangement of .
7 digits
There are possibilities: arrangements of , arrangement of , arrangements of , arrangements of , arrangements of , arrangements of , and arrangement of .
5 digits
There are possibilities: arrangements of , arrangements of , arrangement of , arrangements of , arrangements of , arrangements of , arrangement of , arrangements of , and arrangement of .
3 digits
There are possibilities: , , , , and .
Since there are no other possibilities, the total number of possibilities is .
~ Logibyte, ~gb1falcon
Solution 2
In order for the sum of the digits of a palindrome to be odd, there must be an odd number of digits, and the middle digit must be odd.
We can construct all palindromes whose digits sum to 13 in the following way:
Start with the digit .
We define the following 2 moves:
: Increase the digits left-most and right-most digit by each. Note that if we only have digit, it is considered both the left-most and right-most digit, so we increase it by .
: Add two digits of to surround our number.
and contribute to a palindrome's sum. Therefore, we must apply or times to create a palindrome whose digits sum to .
For example, here is the palindrome created by :
The total number of distinct palindromes are the number of ways to choose or times, which is ways.
However, we must account for exceptions, namely when a digit exceeds (number is no longer base 10) This will happen in two scenarios: and .
Therefore, we will have a total of valid palindromes.
~Samueleb27
Solution 3
Let be the digit in the middle. The possible values are . Considering the digits to the right of the middle digit, they must sum to respectively. Notice this is the same as having balls and putting a divider in any subset of the gaps between the balls, so in each case there are possibilities. The answer is
Solution 4
The conclusions made at the beginning of Solution 2 are noted here: the number must have an odd number of digits and an odd number at its center. Let the central digit be , and let the number have digits. Note that the sum of the digits at either side of the central digit must be equal to Each of these configurations corresponds to a star-and-bars case with no nonzero components where there are stars and bars. Therefore, the number of ways to distribute them is The maximum value of is equal to where , and the total number of cases in the case where there are digits can be expressed as: This is the case for only one such for one such . The total number of valid palindromes for any given is equal to by the Hockey-Stick Identity. The possible values of are through (the number can't be 1 - digit) However, the case where and is omitted because isn't a valid digit. Finally, we have a final total sum of palindromes
~tikachaudhuri
Solution 5
Any palindrome with an odd sum must have an odd number of digits. For a positive integer , the number of palindromic compositions of is
For , this gives
Since the digits are in base , no part of the composition may be or greater. The digits on the sides cannot exceed , since the maximum possible sum on each side is
Thus, the only possible violations occur when the middle digit is at least .
Because the total sum is , the middle digit must be odd. The only invalid odd middle digits are and , giving the following invalid palindromes: - -
Subtracting these from the total,
Therefore, the final answer is .
~matchas (made by ninth graders if any issues feel free to edit)
Video Solution (Fast and Easy 🔥🚀)
2026 AIME I #2
By piacademyus.org