• Free
  • Grade 6–8
  • Challenge · up to 50, 100 or 200 lockers

The hundred lockers worksheets

A hundred lockers in a row, all shut. Student 1 opens every one, student 2 changes every second, student 3 every third, and so on to student 100. When the corridor goes quiet, only a surprising few are open — which ones, and how many?

  • Answer key included
  • Reopen this exact sheet
  • Letter & A4 ready
Ready to printThe hundred lockers
The hundred lockers worksheet — Challenge · up to 50, 100 or 200 lockers, free printable with answer key

The answer key prints on a separate page.

What's on this sheet

Every other counting sheet here asks for a number you could, in principle, reach by listing. This one asks for one you reach by NOT listing. Locker L is touched once by every student whose number divides L, so it ends open exactly when L has an odd number of divisors. Divisors come in pairs — d with L ÷ d — so the count is even, unless a divisor pairs with itself. That happens only when L is a perfect square. The open lockers are 1, 4, 9, 16, …, and the answer is however many squares fit.

Why this sheet works

The first answer almost everyone gives is zero, and it is worth letting happen. The pairing argument is real and persuasive — divisors come in pairs, so surely every locker is flipped an even number of times and they all end shut — and it is exactly right except for the one case it forgets. Committing to "all shut" and then finding the single locker that breaks it is most of the lesson: it is the difference between a rule and a rule whose exception is understood.