Skip to main content

2001 AIME II Problem 1

Problem 1 of 15EasierNumber TheoryProblem-Solving Techniques

Let NN be the largest positive integer with the following property: reading from left to right, each pair of consecutive digits of NN forms a perfect square. What are the leftmost three digits of N?N?

Your answer

Integer from 0 to 999
Show solution

Solution

Each pair of consecutive digits must be one of the two-digit squares 16,16, 25,25, 36,36, 49,49, 64,64, 81.81. So each digit determines its successor uniquely if one exists: 1→6,1 \to 6, 2→5,2 \to 5, 3→6,3 \to 6, 4→9,4 \to 9, 6→4,6 \to 4, 8→1,8 \to 1, while 55 and 99 end the number. Following these chains from each possible starting digit, the longest strings are 25,25, 3649,3649, and 81649.81649. The five-digit chain 8→1→6→4→98 \to 1 \to 6 \to 4 \to 9 beats everything else, so N=81649,N = 81649, whose leftmost three digits are 816.816.
AoPS wiki

Tagged: digits · perfect square · systematic listing

More practice