The Lockers

Lockers numbered 1 1 to 10000 10000 stand in a row in the gym. When the first student, he opens all lockers. The second student change the state of every locker that is a multiple of 2 2 and in general, the n n -th student changes the state of a locker that is numbered a multiple of n n .

After 10000 10000 passes through, how many lockers are closed?


The answer is 9900.

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.

1 solution

Whether the doors are closed or open depends on the number of factors the door number has. If the no. of factors is odd, the door will be open. Only squares have an odd number of factors, and square-numbered doors will be open. There are 100 squares under 10000 (100^2=10000), and thus 100 doors will be open.

So, 10000-100=9900 doors will be closed

arent there 99 squares under 10000

Aniket Bangroo - 7 years, 2 months ago

Log in to reply

10000 it self

math man - 6 years, 9 months ago

Its 10000 and below

Joshua Ong - 7 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...