GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Cognizant
Go To First  |  Previous Question  |  Next Question 
 Cognizant  |  Question 2 of 10    Print  
there are 1000 doors that are of the open-close type. When a person opens the door he closes it and then opens the other. When the first person goes he opens-closes the doors ion the multiples of 1 i.e., he opens and closes all the doors. when the second goes he opens and closes the doors 2, 4 6 8 resly. Similarly when the third one goes he does this for 3 6 9 12 15th doors resly. Find number of doors that are open at last.

  
Total Answers and Comments: 21 Last Update: March 16, 2008     Asked by: Jeane 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: shakti bharath
 
none of the doors will be open cos each person closes the door after opening it

Above answer was rated as good by the following members:
anandshankart, manujis
  Sorting Options  
  Page 1 of 3   « First    1    2    3    >     Last »  
January 08, 2006 02:04:10   #1  
shakti bharath        

RE: there are 1000 doors that are of the open-close ty...
none of the doors will be open cos each person closes the door after opening it
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
February 24, 2006 06:58:11   #2  
Sarada        

RE: there are 1000 doors that are of the open-close ty...

Ans: 334

  • For Every 30 doors 10 doors will be left open(as mutilpes of 2 and mutilples of 3 are only closed remaining numbers will be 10).
  • So like that for every 300 doors 100 doors willbe left open.
  • For 900 doors 300 doors willbe left open.
  • And in the remaining 100 doors 34 doors willbe left open(as for 30 doors 10 doors are left open so for 90 doors 3o doors will be left open and among the remaining 10 doors 4 doors are left open).
  • Total will be 334 doors are left open.

 
Is this answer useful? Yes | No
March 10, 2006 06:45:59   #3  
Diti Rastogi        

RE: there are 1000 doors that are of the open-close ty...

only 31 doors will be left open....

all the numbers which have odd number of factors(the door corresponding to tht) will be left opened.

so all the no.s tht are square of some no will ne left open:

square of(1 2 3 4 5 6-31)


 
Is this answer useful? Yes | No
March 21, 2006 07:47:44   #4  
sriram        

RE: there are 1000 doors that are of the open-close ty...

hi

the question was at last how many doors will be open. but the question makes clear that when each door is opened it is closed immediately so at the last all doors will be closed irrespective of in which thw doors are opened.

if not satisfied reply me with ur comments.

bye


 
Is this answer useful? Yes | No
April 01, 2006 13:05:03   #5  
simran        

RE: there are 1000 doors that are of the open-close ty...

none of door will be open


 
Is this answer useful? Yes | No
April 07, 2006 14:01:04   #6  
Pritmani Suresh        

RE: there are 1000 doors that are of the open-close ty...
All doors are left open
 
Is this answer useful? Yes | No
April 12, 2006 09:15:00   #7  
Akif        

RE: there are 1000 doors that are of the open-close ty...

HIi

Two door will be open at last

B coz first one open all the door and close all the door accept last one

second one open the door multiple of 2 so iots last door is also 1000

third one open the door multiple of 3 so its last door will be 999

so two door are left open first 1000and second 999


 
Is this answer useful? Yes | No
April 26, 2006 06:43:49   #8  
hima        

RE: there are 1000 doors that are of the open-close ty...
if the doors which are multiples of 1 2 3 ...resp. are opened then the remaining prime numbered doors will be opened at last
 
Is this answer useful? Yes | No
June 12, 2006 00:38:01   #9  
jyoti        

RE: there are 1000 doors that are of the open-close ty...

there wont be any door open as it is closed immediately


 
Is this answer useful? Yes | No
July 16, 2006 08:25:04   #10  
deepthi        

RE: there are 1000 doors that are of the open-close ty...
if doors are one after the other like in a tunnel 667first person closes all the doors.second one closes 2 4 6...third one to go through opens the door if it was previously not opened. But closes only 3 6 9..999. >closes 333 doors. And leaves open 664 doors.or0 if they are at the same level. since everybody closes the door they opened.
 
Is this answer useful? Yes | No
  Page 1 of 3   « First    1    2    3    >     Last »  


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape