A school has 1000 students and 1000 lockers Student N is ass
Solution
the numbers which are squares are remain open afetr 1000th student gone through, i.e 1,4,9,16,25,36,........
reason is
any number except squares are even no of divisors i.e
divisors of 2 is 1 & 2.
divisors of 3 is 1 & 3.
divisors of 6 is 1,2,3,6.
divisors of 15 is 1,3,5,15.etc
so one number open the locker and other number close it.since number of divisors even after last the locker must close.for an example suppose number is 15.1 open it,3close it,5open it & 15 close it.
for squares no of divisors is odd always i.e
divisors of 1 is 1.
divisors of 4 is 1,2,4.
divisors of 16 is 1,2,4,8,16.and so on.
so one open it,second close it & last one obviously open it again.for an example suppose the number is 16.1open it,2close it,4open it,8close it & 16 open it.
