Maths Teaser: Lockers

Suppose you’re in a hallway with 100 closed lockers against the wall.lockers

You start by opening every locker. Then you go back and close every second locker. Then you go to every third locker and open it if it’s closed, or close it if it’s open. Let’s call this action ‘toggling’ a locker. Continue ‘toggling’ every nth locker on pass no n (e.g. ‘toggling’ every 26th locker on pass 26).

My question is, after 100 passes, where you ‘toggle’ only locker #100, how many lockers are open?

Answer in the comments area below, with some reasoning or an explanation please! Good luck!

http://www.math.msu.edu/~nathsinc/java/Lockers/

10 Responses to “Maths Teaser: Lockers”


  1. 1 kieran burnett Aug 23rd, 2008 at 1:02 pm

    i dont know

  2. 2 Emma Ferrier Aug 23rd, 2008 at 1:06 pm

    dont understand the teaser….

  3. 3 Fraser Woods Aug 24th, 2008 at 5:01 pm

    This is hard, lets say 1 million.

  4. 4 cameron watt Aug 24th, 2008 at 9:01 pm

    I worked this out using a spreadsheet.There were 10 lockers open at the end ,they were 1,4,9,16,25,36,49,64,81,100.

  5. 5 courteney Aug 25th, 2008 at 4:25 pm

    the answer is 10!!!!

  6. 6 Ashton Aug 25th, 2008 at 4:31 pm

    I did it on the link that you put on the website, and the answer was 10. It was easy to do on the website, it would be really hard to do it on paper!

  7. 7 kieran burnett Aug 27th, 2008 at 9:37 pm

    18 closed

    82 open

  8. 8 Mr.C.Stewart Aug 27th, 2008 at 11:47 pm

    Well done to those of you who tried this, either manually or using technology!
    Ashton thinks that is “easy on the website but hard on paper”.
    In class we will try it using only the power of our brains - to think the problem through and arrive at an elegant mathematical solution that requires neither technology nor reams of paper!!!

  9. 9 Robbie Baillie Aug 28th, 2008 at 3:01 pm

    I have no idea how to do ths

  10. 10 Emma.C + Kaleigh.O Aug 28th, 2008 at 3:15 pm

    Me and Kaleigh worked this out in S.E and the answer is “10″
    It was pretty easy on the Lockers website but when we tried it on paper it was Very Hard. =)
    We are still working on “Is the number 1 a prime number ?”

Leave a Reply

Powered by WP Hashcash





Bad Behavior has blocked 27 access attempts in the last 7 days.

FireStats icon Powered by FireStats