The Last Room?

In a big hostel, there are 1000 rooms. In that hostel, only even numbers are used for room numbers, i.e. the room numbers are 2, 4, 6, ..., 1998, 2000. All the rooms have one resident each. One fine morning, the warden calls all the residents and tells them to go back to their rooms as well as multiples of their room numbers. When a guy visits a room and finds the door open, he closes it, and if the door is closed, he opens it. All 1000 guys do this operation. All the doors were open initially. What is the last door that is closed (room number of that door)?

1922 2000 1936 Cannot be determined.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

The rooms which are closed shall be twice a perfect square Last of them will be 2*31²=1922

Perfect square has odd number of factors, if a room was initially open, needs to be closed in the end, it's state has to be changed odd number of times, possible for a perfect square

But doesn't 1922 have 6 factors? An even number?

Shashank Rammoorthy - 6 years, 5 months ago

2CLOSE,4OPEN,8C,10O,16C,20O,40C,50O,80C,100O,200C,400O,500C,1000O,2000C. SO LAST DOOR TO BE CLOSED IS door no. 2000.

aditya vikram - 6 years, 5 months ago

Log in to reply

250 missing

Mohanish Mayank - 6 years, 5 months ago

I am late , but Can you please tell how you concluded that the rooms which are closed shall be twice a perfect square ?

Gaurav Jain - 6 years ago

I opted can not be determined" over the perception that the room residents are not going in a ordered sequence.

Gaurav Jain - 6 years ago

Log in to reply

Yes me too..They are not going in an ordered way

Anit Joseph - 2 years ago

2000--->(2^4 )which means it has 4 paths so it will be opened ....1936 also 2^4 so it will be opened ...to be closed must be 2^(odd number) .....so it can be determined ....then it will be 1922 is the only possible right answer

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...