Algebra.Com's Answer #749233 by ikleyn(52797)  You can put this solution on YOUR website! .\r \n" );
document.write( " \n" );
document.write( "\n" );
document.write( " It is very well known problem, and you can find many solutions in the Internet or even at this forum's archive.\r \n" );
document.write( " \n" );
document.write( "\n" );
document.write( " The difference is only in the form of presenting the solution.\r \n" );
document.write( " \n" );
document.write( "\n" );
document.write( " Below I present my own version of the solution.\r \n" );
document.write( " \n" );
document.write( " \n" );
document.write( "\n" );
document.write( "\r\n" );
document.write( "Let N be the number (the label) of some current locker. So, N is the number between 1 and 1000.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Let , , , . . . , be the divisors of the number N in the ascending order, from 1 to N inclusively.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The initial/original state of the locker N is \"OPEN\".\r\n" );
document.write( "\r\n" );
document.write( "Notice that if the number of the current step is not a divisor of N, then the status of the locker N is not changed at this step.\r\n" );
document.write( "It is changed if and only if the number of the step is the divisor of the number N.\r\n" );
document.write( "Every time, when the number of the step is the divisor of N, the status of the locker is changed to the opposite one.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " Thus, at the step it will be changed to the opposite status \"CLOSED\".\r\n" );
document.write( "\r\n" );
document.write( " Further, at the step the status will be changed to the opposite status \"OPEN\".\r\n" );
document.write( "\r\n" );
document.write( " At the step , the status will be changed to the opposite status \"CLOSED\".\r\n" );
document.write( "\r\n" );
document.write( " And so on . . . \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, if the number N has EVEN number of divisors in the set , , , . . . , , \r\n" );
document.write( " then the locker N will have the same final status after completing the full procedure as its original status.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "On the contrary, if the number N has ODD number of divisors in the set , , , . . . , , \r\n" );
document.write( " then the locker N will have the opposite status after completing the full procedure comparing with its original status.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "In other words, if the number N has EVEN number of divisors, its final status will be \"OPEN\".\r\n" );
document.write( "\r\n" );
document.write( "Otherwise, if the number N has ODD number of divisors, its final status will be \"CLOSED\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Now, if N = . . . . . is the decomposition \r\n" );
document.write( "\r\n" );
document.write( " of the number N into the product of prime numbers, then the number of divisors is . . . . . .\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "This number is ODD if and only if each factor of the last product is odd.\r\n" );
document.write( "\r\n" );
document.write( "In other words, the number of divisors of the given number N is odd if and only if each prime in its prime decomposition has an EVEN degree.\r\n" );
document.write( "\r\n" );
document.write( "It means that the number of divisors of the given number N is odd if and only if it is A SQUARE.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Returning to our problem, the numbers N of the sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, . . . , 1000 for which the final status \r\n" );
document.write( "of the locker N will be \"CLOSED\" are the squares 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, . . . , = 961.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "There are exactly 31 such numbers.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "For the rest values N of the sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, . . . , 1000 the final status of the locker N will be \"OPEN\",\r\n" );
document.write( "and the number of such lockers is 1000-31 = 969.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER. At the end of exercise, 31 lockers will be closed.\r\n" );
document.write( " \r \n" );
document.write( "\n" );
document.write( " \n" );
document.write( " |