There are 100 windows, all closed initially. Then comes the 1st person and opens all the windows that are multiples of 1. Then comes the second person and flips the state of all the windows (opens the closed windows and closes the open ones) for all the windows that are a multiple of 2. Then comes the third person and this process i repeated for 100 persons. Tell me the number of windows which will remain opened in the end and their numbers (e.g. 5 windows, no. 6, 8, 12, 45 and 77).
My sincerest apologies if this question has been asked already.
Question
Guest
There are 100 windows, all closed initially. Then comes the 1st person and opens all the windows that are multiples of 1. Then comes the second person and flips the state of all the windows (opens the closed windows and closes the open ones) for all the windows that are a multiple of 2. Then comes the third person and this process i repeated for 100 persons. Tell me the number of windows which will remain opened in the end and their numbers (e.g. 5 windows, no. 6, 8, 12, 45 and 77).
My sincerest apologies if this question has been asked already.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.