Results 1 to 6 of 6

Thread: 100 doors n 100 students problem

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    4

    Cool 100 doors n 100 students problem

    There r 100 doors and 100 students. intially all doors r closed. first student no 1 comes n toggles(open if close/close if open) the door no 1 and its multiples, next comes student no 2 and toggles door no 2 and its multiples i.e. door no 2,4,6,8........,student no 3 toggles door no 3 and its multiples i.e.3,6,9,12........., and so on till 100 students complete. at the end how many r open n how many r closed.?


  2. #2
    Junior Member
    Join Date
    Dec 2006
    Answers
    3

    Re: 100 doors n 100 students problem

    i assume 51 doors will be opened and 49 closed. please let me know the correct answer.


  3. #3

    Re: 100 doors n 100 students problem

    I guess there will be 84 doors closed and 16 doors opened. I have not done it through formula, but tried manually. Have a check on the attached excel and tell if the answer is correct.

    Attached Files Attached Files

  4. #4
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: 100 doors n 100 students problem

    Hi Friends,

    Here is the answer for your question...

    Opened 10 doors
    Closed 90 doors

    All those doors with door number equal to a perfect square will remain open, i.e 1, 4, 9, 16, 25, 36, 49, 64, 81, 100

    For a door to remain open it has to be toggled an odd number of times.

    e.g
    open or open-close-open or open-close-open-close-open and so on.

    Since the perfect squares have odd number of factors, the door number equal to perfect square will remain open.

    Like door number 36.
    On first whistle it will get open.
    On second whistle it will get closed.
    On third whistle it will get open.
    On fourth whistle it will get close.
    On sixth whistle it will get open.
    On ninth whistle it will get closed.
    On twelth whistle it will get open.
    On eighteenth whistle it will get closed.
    On thirtysixth whistle it will get open.

    -----------------------
    suresh


  5. #5
    Junior Member
    Join Date
    Jan 2008
    Answers
    4

    Re: 100 doors n 100 students problem

    answer given by psureh1982 is exactly correct..


  6. #6
    Junior Member
    Join Date
    Feb 2008
    Answers
    3

    Re: 100 doors n 100 students problem

    hi, psuresh1982 I just couldn't get ur answer . please clarify it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact