Jump to content
BrainDen.com - Brain Teasers
  • 0


Aaryan
 Share

Question

A very long hallway has 1000 doors numbered 1 to 1000; all doors are initially closed. One by one, 1000 people go down the hall: the first person opens each door, the second person closes all doors with even numbers, the third person closes door 3, opens door 6, closes door 9, opens door 12, etc. That is, the n th person changes all doors whose numbers are divisible by n . After all 1000 people have gone down the hall, which doors are open and which are closed?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

All of the door numbers that are perfect squares. So it will be doors 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900, and 961.

31 doors total.

Link to comment
Share on other sites

  • 0

all square numbered doors will be open.

The reasoning behind this is you take each number and find it's divisors.All numbers out there have an even number of divisors, except square numbers.

Since 1 divides all integers, he will open ( "change") all the doors. after that, each person will change the state of all the doors with numbers multiple of the persons own number.

Since all numbers (except the squares) have an even number of divisors, the state of any door will be changed an even number of times and end up it its initial state, closed.

The squares are the only numbers with an odd number of divisors and hence they will be left open.

Edited by Fesoj
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...