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?

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

i dont know! :P
any good reasons ?

the ones that will be open are the squares (i.e. 4, 9, 16, 25, etc)

the ones that will be closed are the not squares

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.