Illustrating the Locker Problem

A row of lockers starts with all lockers closed. A person walks by and opens every locker. A second person walks by and closes every other locker, starting with locker 2. A third person walks by and changes the state of every third locker, starting with locker 3. This continues up to an person changing the locker. Which lockers are open and which are shut after people pass by? This Demonstration illustrates this problem with .
  • Contributed by: Marc Brodie (Wheeling Jesuit University)

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

I first found this locker problem in G. L. Musser and W. F. Burger, Mathematics for Elementary Teachers: A Contemporary Approach, 4th ed., New York: John Wiley and Sons, 1996.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.