Maths Olympiad Prep

Library / /715 of 740

, 2021

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:

There are NN lockers, labeled from 11 to NN, placed in clockwise order around a circular hallway. Initially, all lockers are open. Ansoon starts at the first locker and always moves clockwise. When she is at locker nn and there are more than nn open lockers, she keeps locker nn open and closes the next nn open lockers, then repeats the process with the next open locker. If she is at locker nn and there are at most nn lockers still open, she keeps locker nn open and closes all other lockers. She continues this process until only one locker is left open. What is the smallest integer N>2021N > 2021 such that the last open locker is locker 11?

Solution

Solution:

Note that in the first run-through, we will leave all lockers 2n12^{n}-1 open. This is because after having locker 2n12^{n}-1 open, we will close the next 2n12^{n}-1 lockers and then start at locker 2n1+2n1+1=2n+112^{n}-1+2^{n}-1+1=2^{n+1}-1. Now we want 11 to be the last locker that is open. We know that if N<2046N<2046, then closing 10231023 lockers after 10231023 will lead us to close locker 11. However, if N=2046N=2046, then locker 11 will stay open, 33 will close, 77 will stay open, closing the next 1010 and then 11 stays open and we close locker 77, therefore N=2046N=2046 does work.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.