Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Brain Teaser - The Locker Room

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:13 PM
Original message
Brain Teaser - The Locker Room
At a new high school, there are exactly 1,000 students and 1,000 lockers. The lockers are numbered in order from 1 - 1,000.

On April Fool's Day, the students played the following prank:

The 1st student to enter the building opened every locker.
The 2nd student closed every even-numbered locker.
The 3rd student 'changed' (if opened, they would close it and vice-versa) every 3rd locker.
the 4th student 'changed' every 4th locker, and so on until all 1,000 students passed through the school.

Which lockers were open and why?
Printer Friendly | Permalink |  | Top
Placebo Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:14 PM
Response to Original message
1. Spork.
:crazy:
Printer Friendly | Permalink |  | Top
 
gmoney Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:16 PM
Response to Original message
2. They're all closed!
Because April 1 was a Sunday and school was closed!
Printer Friendly | Permalink |  | Top
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:32 PM
Response to Reply #2
4. Hahaha.....
nah, that's not it....silly :-P
Printer Friendly | Permalink |  | Top
 
Massacure Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:30 PM
Response to Original message
3. It would go something like:
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
c c c c c c c c c c c c c c c c c c c c c c c c c
o o o o o o o o o o o o o o o o o o o o o o o o o
o c c c o o o c c c o o o c c c o o o c c c o o c
o c c o o o o o c c o c o c c o o o o o c c o c o

The last line is the order for the first 25 lockers.


Printer Friendly | Permalink |  | Top
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:49 PM
Response to Reply #3
5. nope.....sorry, that's not it
.
Printer Friendly | Permalink |  | Top
 
Massacure Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:52 PM
Response to Original message
6. All of them were opened!
Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 09:57 PM
Response to Original message
7. All closed but the 1st (nt)
Printer Friendly | Permalink |  | Top
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:03 PM
Response to Original message
8. No guessing......you've gotta explain the 'why' with the answer
.
Printer Friendly | Permalink |  | Top
 
Kadie Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:08 PM
Response to Original message
9. All of them are open because
they were cheap lockers, and after being opened and shut so many times all the doors fell off.
Printer Friendly | Permalink |  | Top
 
Peanut Gallery Donating Member (325 posts) Send PM | Profile | Ignore Mon Oct-25-04 10:44 PM
Response to Reply #9
18. LOL
n/t
Printer Friendly | Permalink |  | Top
 
Kadie Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:12 PM
Response to Original message
10. Oh wait, they are all closed
because the 1st student would have only been able to open one locker, his own, the only one he had a combination to. One of the following students would have closed it. So, they are all closed.
Printer Friendly | Permalink |  | Top
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:16 PM
Response to Reply #10
11. *sigh* Did I forget to mention this is UTOPIA High School.....
...no one steals in Utopia, so they don't have locks.
Printer Friendly | Permalink |  | Top
 
Kadie Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:21 PM
Response to Reply #11
12. Darn. Thought I had it. hmmmmmm
Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:29 PM
Response to Original message
13. I smell prime numbers
Prime numbered lockers will be closed, because none of the previous numbered students would be a divisor of the locker number. They'd be opened by student 1 and closed by student p and that's all.

About the others... it depends whether they have an odd or even number of divisors. 4 has an odd number of divisors (1, 2, 4) so it will be open. 8 has an even number of divisors (1, 2, 4, 8) so it will be closed.

But how many numbers are like that? Argh, I hit bedrock.
Printer Friendly | Permalink |  | Top
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:32 PM
Response to Reply #13
14. Your definitely on the right track!
someone let me know when y'all want the answer, in case you don't want to figure it out anymore).
Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:35 PM
Response to Reply #14
16. Uncle (nt)
Printer Friendly | Permalink |  | Top
 
pfitz59 Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:35 PM
Response to Reply #13
15. Prime number lockers would be closed....
All others open.. (Don't ask me to list the prime numbers to 1000)
Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:38 PM
Response to Reply #15
17. No. Look at locker #8 for instance.
It will be opened by #1, closed by #2, opened by #4, and closed by #8.
Printer Friendly | Permalink |  | Top
 
DustMolecule Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 10:55 PM
Response to Original message
19. The Answer is:
Edited on Mon Oct-25-04 10:58 PM by DustMolecule
One thing to do is to let the first 10 students go do their open/
shut thing with the lockers. The students who come after them are not
going to touch lockers 1-10, so we can see which ones in that first
batch are still open and try to guess the pattern.

When we do that, we find that lockers 1, 4, and 9 are open and the
others are closed. Now, that isn't much to go on, so maybe you could
let the next 10 students go do their thing. Then the first 20 lockers
are through being touched, and we find that lockers 1, 4, 9, and 16
are the only ones in the first 20 that are still open. So what is the
pattern?

Let's take any old locker, like 48 for example. It gets its state
altered once for every student whose number in line is an exact
divisor of 48. Here is a chart of what I mean:

this Student leaves locker 48

1 open
2 shut
3 open
4 shut
6 open
8 shut
12 open
16 shut
24 open
48 shut

Notice that 48 has an even number (ten) of divisors, namely
1,2,3,4,6,8,12,16,24,48. So the locker goes open-shut-open-shut ...
and ends up shut. Any locker number that has an even number of
divisors will end up shut.

Which numbers have an odd number of divisors? That's the answer to
this problem. Just to help you along, here are the locker numbers up
to 100 that are left open:

1,4,9,16,25,36,49,64,81,100.

See if you can describe these numbers in a different way from "having
an odd number of divisors." Think about multiplying numbers together.
When you understand how to describe them, you will see that 31 of the
1000 lockers are still open (without having to work it all out!).

Here's a link with some visuals:
http://mathforum.org/alejandre/frisbie/locker.look.html

You can also work it out in a spread sheet:
http://mathforum.org/alejandre/frisbie/student.locker.html
Printer Friendly | Permalink |  | Top
 
pres2032 Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 11:00 PM
Response to Reply #19
20. thanks, my head hurts now
Hehe, i never liked math
Printer Friendly | Permalink |  | Top
 
Pithlet Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Oct-25-04 11:03 PM
Response to Reply #19
21. They're all square numbers?
This was a good one.
Printer Friendly | Permalink |  | Top
 
BrewerJohn Donating Member (499 posts) Send PM | Profile | Ignore Mon Oct-25-04 11:33 PM
Response to Reply #19
22. The key seems to be that (more precisely stated)
the lockers that are open at the end have an odd number of distinct divisors. Numbers that are squares have a repeated divisor, which "collapses" into one when counting the number of distinct divisors. The interesting point of the puzzle is that it must be that only in the case of a square is the number of distinct divisors odd (in this case, the number is 3). So there are no numbers that have five distinct divisors, or seven? Or are the only ones all greater than 1000?

(incurable math geek here, in case it's not obvious)

Printer Friendly | Permalink |  | Top
 
Commie Pinko Dirtbag Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Oct-26-04 08:53 AM
Response to Reply #22
23. OK, every number x is equal to p1^n1 x p2^n2 x ...
The distinct divisors are made like this:

- We choose a number between 0 and n1, inclusive, for p1. Because p1^(anything between 0 and n1) will divide x.
- Same for n2, n3 etc.
- Therefore, the number of distinct divisors is (n1+1)(n2+1)(n3+1)...
- Which will only be odd if all factors are odd. That means all of n1, n2, ... must be EVEN.
- Number with all prime exponents even = square number.

Therefore the answer is that all perfect square numbered lockers are open. The number of open lockers is the SQUARE ROOT of the number of lockers.

My, what difference a good night's sleep makes.
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Mon May 06th 2024, 12:51 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC