2023 AIME II Problem 2

Attempt Problem 2 of the 2023 AIME II below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2023 AIME II solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

2.

Recall that a palindrome is a number that reads the same forward and backward. Find the greatest integer less than 10001000 that is a palindrome both when written in base ten and when written in base eight, such as 292=4448.292 = 444_8.
Answer: 585
Concepts:palindromenumber basesystematic listing
Small hint:
Any base-eight palindrome between 512512 and 999999 has four base-eight digits and looks like 1bb1‾8=513+72b\overline{1bb1}_8 = 513 + 72b
Big hint:
Three-digit base-eight numbers are at most 511,511, so just test b=6,5,4,…b = 6, 5, 4, \ldots for a base-ten palindrome
Solution:
A four-digit base-eight number lies between 512512 and 4095,4095, so a base-eight palindrome less than 10001000 with four digits must have leading (and trailing) digit 1:1: it has the form 1bb1‾8=512+64b\overline{1bb1}_8 = 512 + 64b +8b+1{}+ 8b + 1 =513+72b.= 513 + 72b. Keeping this below 10001000 requires b≤6,b \le 6, giving the candidates 513,585,657,729,801,873,945.513, 585, 657, 729, 801, 873, 945.
Checking from the top, the only one of these that is also a palindrome in base ten is 585=11118.585 = 1111_8. Every base-eight palindrome with at most three digits is at most 7778=511<585,777_8 = 511 \lt 585, so the answer is 585.585.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.