Brain Teasers & Mental MathHard

100 lockers, all closed. Student 1 toggles every locker, student 2 every 2nd, student 3 every 3rd, … student 100 toggles locker 100. After all 100 students pass, which lockers are open?

Model answer

The perfect squares: 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 — ten lockers.

Locker n is toggled once for each divisor of n. Divisors pair up (for 12: 1×12, 2×6, 3×4 → six divisors → even toggles → ends…

The full, human-reviewed answer is in the bank.

Sign up free and Daily 10 serves you 10 questions a day from all 2,300+ — or go Pro for unlimited reps.

Pro unlocks every model answer — $19.99/mo.

Also want The 5-Day Rep Program? One short email a day for five days — the out-loud method, start to first offer-ready rep. Free.

Double opt-in: we email you a confirm link first — no confirmation, no emails. Unsubscribe anytime with one click.

More from Brain Teasers & Mental Math

Try the real thing

1 / 3
M&A & Merger ModelsMedium

What makes an acquisition accretive or dilutive to EPS?

Superday coming up? Take the cheat sheet.

The technicals and stories to have cold before you walk in — free, one email, no mailing list.

Free tier: 20 cards + 10 daily reps + ALL drills — no credit card required.