Open and Closed Lockers
Reference > Mathematics > Slick MathA school hallway has a thousand lockers. A student goes down the hallway opening every locker. Then a second student goes down the hallway closing every other locker. A third student goes down the hallway, and at every third locker, he opens it if it was closed and closes it if it was open. This continues on for a total of 1000 students opening and closing lockers. How many lockers are open when the students are finished?
Solution
The lockers which are open are the ones which have been "altered" an odd number of times. This means that their locker numbers have an odd number of divisors, which means they are all perfect squares. There are 31 perfect squares less than 1000.
Isn't that slick?
Questions
1.
What would the answer have been if the number 500 had been used instead of 1000?
2.
Explain why only perfect squares have an odd number of divisors.
Assign this reference page
Click here to assign this reference page to your students.How Many Primes?
Unit Index
Blogs on This Site
Reviews and book lists - books we love!
The site administrator fields questions from visitors.
Like us on Facebook to get updates about new resources