English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1000 students.
1. Suppose the first student goes along and opens evvery locker.
2. the second studentv goes along and shuts every other locker beginning with number 2.
3. the third student then goes along and changes the state of every third locker beginning with the number 3. (if the locker is open, the student shuts it and if it's closed the student will open it)
4. the fourth student changes the state of every fourth locker beginning with number 4.

if this continues until all 1000 students have followed the pattern with these lockers, which lockers will be open and which will be shut at the end? why?

2007-07-08 16:48:39 · 3 answers · asked by Anonymous in Science & Mathematics Mathematics

3 answers

In this case, after all 1,000 students are done, every locker will be closed if it has an even number of factors (e.g., 1, 2, 5, 10 for locker 10 - four state-changes leaves it closed), and open if it has an odd number of factors.

Only lockers whose number is a perfect square have an odd number of factors (e.g., 1, 3, 9 for locker 9).

2007-07-08 16:53:43 · answer #1 · answered by McFate 7 · 2 0

all numbers that are perfect squares between 1 and 1000 will be open. only perfect squares have an odd number of factors and since all doors originally started in the closed position only an odd number of state changes will leave them in the open position.

2007-07-09 00:15:05 · answer #2 · answered by koalahash 3 · 0 0

Try it just for, say, the first 1 lockers.

You will see a pattern.

1, 4, 9,....

See the pattern?.


OOOOPSS, I misread the question. Your question is very close to a famous problem, but not quite as you stated. Sorry....too much haste....

.

2007-07-08 23:52:54 · answer #3 · answered by tsr21 6 · 0 0

fedest.com, questions and answers