## shubhamsrg 3 years ago http://openstudy.com/study#/updates/50339239e4b0d8ed9b49bd9c

1. shubhamsrg

its my previous ques wihich i closed accidently..

2. shubhamsrg

the ques was In a jail with 100 rooms, all locked initially, 100 rioters break in and disturb the rooms in the following way. First one stops at all rooms and opens them all. Second rioters stops at rooms numbered 2, 4, 6, . . . and locks open rooms, and leaving the other rooms as they were. The third rioter stops at rooms numbered 3, 6, 9, . . . and again opens a locked room and locks an open room, leaving others undisturbed. And this process continues. After all the 100 rioters have left which rooms would be open?

3. sauravshakya

I hope u got your solution

4. shubhamsrg

i just wanted to discuss there so i attached the link..

5. shubhamsrg

why sq. nos have odd no. of factors i got it.. but why only sq nos. fit in the soln i didnt get it..

6. sauravshakya

its because the room number which has odd number of factors...... will be open

7. sauravshakya

u didnt understand that?

8. shubhamsrg

leme try.. 1o all 2,4,6....c 3,6,9....o . . . no i didnt get it! :P i mean the reason..

9. sauravshakya

Ok....... the rooms are intially closed right

10. sauravshakya

|dw:1345558933537:dw|So,

11. shubhamsrg

so point is odd nos do opening job,,right ?

12. sauravshakya

Yep...... if u do odd no. of steps... the room will be open

13. sauravshakya

right?

14. sauravshakya

|dw:1345559111624:dw|

15. sauravshakya

I mean each step will close the room if it is open and close it if the room is open

16. shubhamsrg

okay,,following..

17. sauravshakya

I think thats it

18. sauravshakya

got it? @shubhamsrg

19. mukushla

i wanna say something ... see its true or not... every room will be met by rioters equal to its number of divisors

20. sauravshakya

very true

21. shubhamsrg

yes yes,,not everything fits in!! thanks ..

22. shubhamsrg

now*

23. sauravshakya

Did u understand? @shubhamsrg

24. shubhamsrg

yes sir..

25. sauravshakya

PLZ..... dont call me sir.... call me friend

26. shubhamsrg

okay sir!! :P

27. shubhamsrg

bah,,nevermind..