image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

image Opening and closing doors Share It Thread Tools Search this Thread image
Old Dec3-08, 03:44 AM                  #1
maze

maze is Offline:
Posts: 654
Opening and closing doors

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:
  Reply With Quote
Old Dec3-08, 05:20 AM                  #2
CompuChip

CompuChip is Offline:
Posts: 2,725
Blog Entries: 3
Recognitions:
Homework Helper Homework Helper
Re: Opening and closing doors

I think I found the result numerically...

Spoiler
969 are open


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

[edit]Cool, I didn't know spoiler tags worked here![/edit]
  Reply With Quote
Old Dec3-08, 06:14 AM                  #3
maze

maze is Offline:
Posts: 654
Re: Opening and closing doors

Yep numerically that's right. Now what if there are 10^100000 doors? ;)
  Reply With Quote
Old Dec3-08, 09:13 AM                  #4
davee123

davee123 is Offline:
Posts: 468
Re: Opening and closing doors

Originally Posted by maze View Post
Yep numerically that's right. Now what if there are 10^100000 doors? ;)
Spoiler
For N doors, the number of open doors is: N-FLOOR(SQRT(N))


DaveE
  Reply With Quote
Old Dec8-08, 11:08 AM                  #5
maze

maze is Offline:
Posts: 654
Re: Opening and closing doors

correct indeed! nice one
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Opening and closing doors
Thread Thread Starter Forum Replies Last Post
Doors problem zh3zh3 Precalculus Mathematics 13 Jul17-08 07:16 PM
Wooden Screen Doors vs. Aluminum Doors Gabrielle General Discussion 6 Aug23-07 03:08 PM
PEAR is closing its doors humanino General Discussion 1 Feb12-07 09:19 PM
Automatic doors mindagap Introductory Physics 1 Apr26-06 12:23 PM
Doors Closing? Cyrus General Discussion 4 Feb5-06 11:53 PM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image