There are 2000 lockers and 2000 students. Their teacher assigns them a task. First student goes and opens all the lockers. Second student goes and closes every second locker. Similarly third student goes and opens every third locker if it is closed and closes it if it is open and so on. What is the number of open lockers after each student has performed his task ?
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.
The locker with odd no. of factors will be left at the end i.e. the perfect square, thus until 2000, the biggest perfect square <= 2000 is, 1936 ( square of 44). Thus the answer is 44. :)