返回题库

AIME 2026 I · 第 2 题

AIME 2026 I — Problem 2

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem 2

Find the number of positive integer palindromes written in base 1010, with no zero digits, and whose digits add up to 1313. For example, 4212442124 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, 11111111111111111111111111.

11 digits

We have 66 possibilities: 55 arrangements of 1111212111111112121111 and one arrangement of 1111131111111111311111.

9 digits

There are 1515 possibilities: 66 arrangements of 112212211112212211, 44 arrangements of 111313111111313111, 44 arrangements of 111232111111232111, and 11 arrangement of 111151111111151111.

7 digits

There are 2020 possibilities: 33 arrangements of 11414111141411, 11 arrangement of 22212222221222, 66 arrangements of 12313211231321, 33 arrangements of 31131133113113, 33 arrangements of 12232211223221, 33 arrangements of 11252111125211, and 11 arrangement of 11171111117111.

5 digits

There are 1515 possibilities: 22 arrangements of 1515115151, 22 arrangements of 4212442124, 11 arrangement of 3313333133, 22 arrangements of 1343113431, 22 arrangements of 3232332323, 22 arrangements of 1353113531, 11 arrangement of 2252222522, 22 arrangements of 1272112721, and 11 arrangement of 1191111911.

3 digits

There are 55 possibilities: 292292, 373373, 454454, 535535, and 616616.

Since there are no other possibilities, the total number of possibilities is 1+6+15+20+15+5=621 + 6 + 15 + 20 + 15 + 5 = \boxed{62}.

~ 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 1\overline{1}.

We define the following 2 moves:

AA: Increase the digits left-most and right-most digit by 11 each. Note that if we only have 11 digit, it is considered both the left-most and right-most digit, so we increase it by 22.

abccbaA(a+1)bccb(a+1)\overline{abc\dots cba} \stackrel{A}{\rightarrow}\overline{(a+1)bc\dots cb(a+1)} BB: Add two digits of 11 to surround our number.

abccbaB1abccba1\overline{abc\dots cba} \stackrel{B}{\rightarrow} \overline{1abc\dots cba1} AA and BB contribute 22 to a palindrome's sum. Therefore, we must apply AA or BB 66 times to create a palindrome whose digits sum to 1313.

For example, here is the palindrome created by AABBABAABBAB:

1A3A5B151B11511A21512B1215121\overline{1} \stackrel{A}{\rightarrow} \overline{3} \stackrel{A}{\rightarrow} \overline{5} \stackrel{B}{\rightarrow} \overline{151} \stackrel{B}{\rightarrow} \overline{11511}\stackrel{A}{\rightarrow} \overline{21512} \stackrel{B}{\rightarrow} \overline{1215121} The total number of distinct palindromes are the number of ways to choose AA or BB 66 times, which is 26=642^6 = 64 ways.

However, we must account for exceptions, namely when a digit exceeds 99 (number is no longer base 10) This will happen in two scenarios: AAAAAAAAAAAA and AAAAABAAAAAB.

Therefore, we will have a total of 642=6264-2 = \boxed{62} valid palindromes.

~Samueleb27

Solution 3

Let dd be the digit in the middle. The possible values are d=1,3,5,7,9d=1,3,5,7,9. Considering the digits to the right of the middle digit, they must sum to d=6,5,4,3,2d'=6,5,4,3,2 respectively. Notice this is the same as having dd' balls and putting a divider in any subset of the gaps between the balls, so in each case there are 2d12^{d'-1} possibilities. The answer is

25+24+23+22+21=622^5+2^4+2^3+2^2+2^1=\boxed{62}

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 dd, and let the number have 2n+12n + 1 digits. Note that the sum of the digits at either side of the central digit must be equal to 13d2\frac{13 - d}{2} Each of these configurations corresponds to a star-and-bars case with no nonzero components where there are 13d2\frac{13 - d}{2} stars and nn bars. Therefore, the number of ways to distribute them is (13d21n1){\frac{13-d}{2} - 1 \choose n - 1} The maximum value of 13d2\frac{13-d}{2} is equal to 66 where d=1d=1, and the total number of cases in the case where there are nn digits can be expressed as: (61n1)+(51n1)+...+(n1n1){6 - 1 \choose n - 1} + {5 - 1 \choose n - 1} + ... + {n - 1 \choose n - 1} This is the case for only one such dd for one such nn. The total number of valid palindromes for any given nn is equal to (6n){6 \choose n} by the Hockey-Stick Identity. The possible values of nn are 11 through 66 (the number can't be 1 - digit) However, the case where n=1n = 1 and d=11d = 11 is omitted because 1111 isn't a valid digit. Finally, we have a final total sum of (61)+(62)+...+(66)1=62{6 \choose 1} +{6 \choose 2} + ... + {6 \choose 6} - 1 = \boxed{62} palindromes

~tikachaudhuri

Solution 5

Any palindrome with an odd sum must have an odd number of digits. For a positive integer nn, the number of palindromic compositions of nn is

2n/22^{\lfloor n/2 \rfloor} For n=13n=13, this gives

213/2=26=64.2^{\lfloor 13/2 \rfloor} = 2^6 = 64. Since the digits are in base 1010, no part of the composition may be 1010 or greater. The digits on the sides cannot exceed 99, since the maximum possible sum on each side is

1312=6.\frac{13-1}{2} = 6. Thus, the only possible violations occur when the middle digit is at least 1010.

Because the total sum is 1313, the middle digit must be odd. The only invalid odd middle digits are 1111 and 1313, giving the following invalid palindromes: - (13)(13) - (1,11,1)(1,11,1)

Subtracting these from the total,

642=62.64 - 2 = 62. Therefore, the final answer is 62\boxed{62}.

~matchas (made by ninth graders if any issues feel free to edit)

Video Solution (Fast and Easy 🔥🚀)

2026 AIME I #2

By piacademyus.org