Skip to main content

1996 AIME Problem 9

Problem 9 of 15IntermediateAlgebraProblem-Solving Techniques

A bored student walks down a hall that contains a row of closed lockers, numbered 11 to 1024.1024. He opens locker 1,1, and then alternates between skipping and opening each closed locker thereafter. When he reaches the end of the hall, the student turns around and starts back. He opens the first closed locker he encounters, and then alternates between skipping and opening each closed locker thereafter. The student continues wandering back and forth in this manner until every locker is open. What is the number of the last locker he opens?

Your answer

Integer from 0 to 999
Show solution

Solution

On every trip the student opens the first, third, fifth, and so on among the remaining lockers in his direction of travel. Tracking the closed arithmetic sequence after each trip gives:
trip first difference count
11 22 22 512512
22 22 44 256256
33 66 88 128128
44 66 1616 6464
55 2222 3232 3232
66 2222 6464 1616
77 8686 128128 88
88 8686 256256 44
99 342342 512512 22
Thus only lockers 342342 and 854854 remain after the ninth trip. On the tenth trip, starting from the right, locker 854854 is opened and 342342 remains. Therefore the last locker opened is 342.342.
AoPS wiki

Tagged: process simulation · pattern recognition · arithmetic sequence

More practice