Skip to main content

2023 AIME II Problem 2

Problem 2 of 15EasierNumber TheoryArithmeticProblem-Solving Techniques

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.

Your answer

Integer from 0 to 999
Show solution

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.
AoPS wiki

Tagged: palindrome · number base · systematic listing

More practice