第 651 题:(2023 AIME II, 2)
Recall that a palindrome is a number that reads the same forward and backward. Find the greatest integer less than $1000$ that is a palindrome both when written in base ten and when written in base eight, such as $292 = 444_{\text{eight}}.$
- Numbers from $512$ to $999$ have four base-eight digits, and a base-eight palindrome $\overline{abba}_8=513a+72b$ with $a=1$ (since $2\cdot513>999$).
- The candidates are $513+72b$ for $b=0,\dots,6$, namely $513,585,657,729,801,873,945$. Only $585$ is a decimal palindrome.
- So the greatest is $585=1111_8$ (any answer below $512$ is smaller). The answer is $\boxed{585}$.
Recall that a palindrome is a number that reads the same forward and backward. Find the greatest integer less than $1000$ that is a palindrome both when written in base ten and when written in base nine, such as $656 = 808_{\text{nine}}.$