Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Opening and closing doors

  1. Dec 3, 2008 #1
    Hey i posted this puzzle a few days ago in another forum, but the stickied thread is completely dead and I don't think anyone even reads it anymore, so I'm going to post it here. Plus I think this is the more proper forum as it is more of a puzzle than a math problem (though it is both).

    PUZZLE:
    In a very long hallway, there are 1000 doors all initially open.
    First, you close every door.
    Second, you open every other door.
    Next, you toggle the state of every 3rd door (open it if it is closed and close it if it is open),
    Next, you toggle every 4th door,
    and you continue this process, at the toggling the state of every nth door at the n'th step.

    At the end of this process (when n=1000), how many doors are open?

    Here is a diagram:
    [​IMG]
     
  2. jcsd
  3. Dec 3, 2008 #2

    CompuChip

    User Avatar
    Science Advisor
    Homework Helper

    I think I found the result numerically...

    969 are open

    is that right? Now let's see if I can derive it without computer :smile:

    [edit]Cool, I didn't know spoiler tags worked here![/edit]
     
  4. Dec 3, 2008 #3
    Yep numerically that's right. Now what if there are 10^100000 doors? ;)
     
  5. Dec 3, 2008 #4
    For N doors, the number of open doors is: N-FLOOR(SQRT(N))

    DaveE
     
  6. Dec 8, 2008 #5
    correct indeed! nice one
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Opening and closing doors
  1. Doors Closing? (Replies: 4)

  2. Open vs. Closed system (Replies: 15)

Loading...