|
Post by ~Dernhelm~ on Dec 18, 2002 17:35:30 GMT
Here's one which I just can't find the answer to or the mathematical reasoning for no matter how hard i may try... Can anybody do this one?
***
Midvale School has 1000 students and 1000 lockers. On the first day of class all of the lockers are closed. The slightly eccentric principal admits the students one by one and asks them to each perform a rather strange task.
The first student must walk around the school and open every locker. The second student much walk around school and close every second locker. The third student must walk around the school and at the third locker, and each third locker following, open the locker if it is closed or close it if it is open.
Similaryly, the fourth student must go and change the state of every fourth locker; the fifth student must change the state of every fifth locker; and so on until all 1000 students have been through the entire school. After the 1000th student has gone to locker #1000 and opened it or closed it; depending upon whether it was already closed or open, which lockers remain open?
***
Sounds evil, doesn't it? But don't get discouraged and give it a try, perhaps the math behind it and the answer could be found...
|
|
|
Post by Imrel on Dec 18, 2002 19:10:32 GMT
31, all of the ones square numbered ones.
|
|
|
Post by ~Dernhelm~ on Dec 21, 2002 11:27:14 GMT
That was fast, how in the world did you figure it out?
|
|
|
Post by Imrel on Dec 22, 2002 4:12:48 GMT
I made a table of the first twelve lockers for the first ten students and looked for a patern, and I noticed that the square numbers seemed to stick being open. Then I realized that square numbers always have an odd number of factors, while others have even numbers. So only the square numbered lockers would be opened or closed an odd number of times, and since they started closed, an odd number of status changes would mean they would have to end up open.
|
|
|
Post by ~Dernhelm~ on Dec 23, 2002 10:27:53 GMT
Whoa! You got me there... I've tried counting it out before, only to make tons of mistakes. Some sort of sequence with one open then two closed, one open then three closed was my original guess... Then again, I'm not too good at these things!
|
|
|
Post by Imrel on Dec 24, 2002 3:10:56 GMT
It's just factoring. Take locker twelve, for example. Twelve can be divided by one, two, three, four, six and twelve. So the first, second, third, fourth, sixth and twelfth pupils will open/close it. So it will open then close then open then close then open then close.
The case is similar for any other number, unless it's square, because one of its factors serves as two usually do in non-square numbers. (Eg, four has the factors one, two and four, with one times four equalling four and vica versa, and two times two equalling four.) I dunno if I'm making much sense, sorry...
|
|
|
Post by ~Dernhelm~ on Dec 25, 2002 8:28:26 GMT
Yup! I've got it now. ;D So locker #100 would also be open because it's square root is 10? Okay!
|
|
|
Post by Imrel on Dec 26, 2002 6:42:55 GMT
Uh huh, you got it!
|
|
|
Post by ~Dernhelm~ on Dec 26, 2002 11:26:50 GMT
Lol! *laughs*
I meant it as in "I understand the math behind it now". You were the one who figured it out and was kind enough to explain it. Please don't get mad!
|
|
|
Post by Imrel on Dec 27, 2002 0:26:00 GMT
I'm not, I'm just glad that I actually made sense, lol.
|
|
|
Post by ~Dernhelm~ on Dec 27, 2002 12:48:16 GMT
Oh. Okay. *smiles*
|
|
|
Post by ~Dernhelm~ on Jan 6, 2003 15:45:42 GMT
I think I've found a mathematical equation to it!
(n+1)2
This then translates to:
(n+1)*(n+1)
Which then translates to:
n2+2n+1
Would that be it? (Just playing around... )
|
|
|
Post by Imrel on Jan 6, 2003 17:55:53 GMT
I think that equation gives you a square number with whatever number you plug in. I don't think this is one you can actually have an equation for... Well it could be but I'm not sure how it'd work.
|
|
|
Post by ~Dernhelm~ on Jan 7, 2003 16:38:32 GMT
It's a weird thing!
Should we try to find another "Impossible Problem" perhaps?
|
|
|
Post by Imrel on Jan 9, 2003 3:13:07 GMT
It's your thread...
I'll give you one if I find one, too.
|
|