Math Brain Teaser: Which Lockers are Open?

  • Thread starter Alethia
  • Start date
  • Tags
    Brain
In summary, the students of the new high school decided to conduct an experiment during lunch by changing the state of the lockers in the long hall. Each student was assigned a specific task, such as opening every door or flipping the state of certain lockers. After all 1000 students had a turn, the lockers with an odd number of factors were left open, while those with an even number of factors were closed. This resulted in the prime numbered lockers being closed and the square numbered lockers being open.
  • #1
Alethia
35
0
1. A new high school has just been completed. There are 1,000 lockers in the long hall of the school and they have been numbered from 1 to 1,000. During lunch, the 1,000 students decide to try an experiment.

- The first student, student 1, runs down the row of lockers and opens every door.
- Student 2 closes the doors of lockers 2, 4, 6, 8 and so on to the end of the line.
- Student 3 changes the state of the doors of lockers 3, 6, 9, 12 and so on to the end of the line. (the student opens the door if it is closed and closes the door if it is opened)
- Studnet 4 changes the state of the doors 4, 8, 12, 16 and so on. Student 5 changes the state of every fifth door, student 6 changes the state of every sixth, and so on until all 1000 students have had a turn.

When the students are finished, which lockers doors are open?
---
I was REALLY tempted to sit tehr are write out numbers 1-1000 but decided there was an easier way...
 
Physics news on Phys.org
  • #2
which lockers doors are open?
Try the case when there are only 10 lockers and try to find out a pattern. Then try to explain why the pattern is like this. :smile:
 
  • #3
There won't be a pattern. Take the factors of each number, include 1 and the number itself. Count the number of factors. This is the number of "state" flips. If it is even, the locker is closed. If it is odd, the locker is open.

Njorl
 
  • #4
There most certainly is a pattern.
 
  • #5
Sorry,
I had to do a few more lockers. You're right Hurkyl. For anyone else trying this, more power two ya'. :wink:

Njorl
 
  • #6
One certainty

Prime numbered lockers will be closed.
 
  • #7
There's more two it than that. Many other lockers will be closed too.

Njorl
 
  • #8
All the square numbers will be open...
 

1. How many lockers are there in total?

There are 100 lockers in total.

2. How many lockers are open after all the students have gone through?

There are 10 lockers open after all the students have gone through.

3. How do you determine which lockers are open?

You can determine which lockers are open by finding the square numbers between 1 and 100. Those lockers will be open after all the students have gone through.

4. Can you explain the reasoning behind this brain teaser?

The reasoning behind this brain teaser is based on the concept of perfect squares. Every number can be expressed as a product of two numbers. Perfect squares are numbers that can be expressed as the product of two equal numbers. In this case, the lockers that are open are the ones that have been opened and closed an odd number of times, meaning they were visited by exactly two students.

5. Are there any other variations of this brain teaser?

Yes, there are many variations of this brain teaser. Some may involve a different number of lockers or different rules for opening and closing them. Others may involve different objects or items instead of lockers. The key concept remains the same, but the specific details may vary.

Similar threads

  • Introductory Physics Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
16
Views
12K
  • General Math
Replies
1
Views
3K
  • General Math
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
4K
  • General Math
Replies
8
Views
1K
  • Set Theory, Logic, Probability, Statistics
7
Replies
212
Views
11K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
Replies
1
Views
781
Replies
3
Views
2K
Back
Top