Ask Experts Questions for FREE Help !
Ask
    bradley123's Avatar
    bradley123 Posts: 1, Reputation: 1
    New Member
     
    #1

    Feb 6, 2007, 08:16 PM
    Number sequences
    I am going spare trying to work out this one

    A student in a school opens 1000 lockers
    The second student opens or closes every second locker
    The third student opens or cleses every 3rd locker
    Fourth student opens and closrs every 4th locker

    And so on, what is the number sequence / pattern

    Thanks
    Fianchetto's Avatar
    Fianchetto Posts: 70, Reputation: 2
    Junior Member
     
    #2

    Feb 6, 2007, 09:01 PM
    OK. Therre are 2 states in which a locker can be: open or closed. On or off. Up or down. ZERO or ONE. This suggests a binary application. I'll give you the first one and half, ask later for more hints - I like this one, it's elegant.

    A. 1000 lockers open:



    B. half as many lockers open (500)

    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #3

    Feb 7, 2007, 01:05 AM
    Hi. This question is a classic.

    Do you mean that 1000 students do it? This is how the question is normally asked.

    I'm not sure where fianchetto is going with his method, but I'm sure we will see in due time

    If so, you need to look at what defines whether a locker is open or closed at the end of the exercise.

    If, for example, you take any one locker. Let's say locker 432

    It starts closed. The only students that will change the state are ones that have a number that are a divisor of the locker number.

    Student 1 opens the locker,
    Student 2 closes it,
    Student 3 opens it,
    Student 4 closes it,
    Student 5 doesn't touch it (432/5 leaves a remainder)
    Students 6, 8, 9, 12, 16, 18, 24, 27, 36, 48, 54, 72, 108, 144, 216, 432 all change the state, these are the divisors of 432.

    Now this leaves the locker in a closed state.

    We can now see that there is a general rule:

    When the locker number has an even number of divisors, it is left closed.
    When the locker number has an odd number of divisors, it is left open.

    Now you need to find which numbers have an odd number of divisors.

    Hint: Most numbers have an even number of divisors, this is due to the fact that when you divide a number by another number, you end up with a third number, the 2 divisors here form a pair of divisors, and most numbers just have sets of pairs.
    There is a special set of numbers that have divisors that are'nt paired like this, this is where you will find numbers with odd divisors. Can you think what this set of numbers is?
    Fianchetto's Avatar
    Fianchetto Posts: 70, Reputation: 2
    Junior Member
     
    #4

    Feb 11, 2007, 03:09 AM
    OK - been working for my boss - he seems to like it better that way and keeps me on.

    Sorry about my previous post, I had taken a wrong tack with it. What I wound up doing is determining how many lockers were closed (or open) at each turn (spreadsheet helped), noted the rapidly diminishing oscillation, and proceeded to stability.

    I found that the number of closed lockers oscillates a bit then sticks to 448 at turn 26, i.e:



    Series of closed lockers:

    1000,500,499,583,547,549,535,482,523,491,493,490,4 84,471,463,491,487,476,474,465,455,444,441,446,448 ,448,448,448...

    Series of open lockers is just the difference from 1000. (approach 552)

    I think I like Cap's answer better, though - less labour-intensive :)
    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #5

    Feb 11, 2007, 08:48 AM
    Fianchetto, your answer doesn't make sense to me.

    Surely every student above 500 will just be closing or opening a single locker, thus it cannot stay at 488 till infinity.

    (and in the case where 1000 students have gone, as I have argued and you have agreed, 31 of the lockers will be open, not 552)
    asterisk_man's Avatar
    asterisk_man Posts: 476, Reputation: 32
    Full Member
     
    #6

    Feb 11, 2007, 12:11 PM
    I agree with capuchin on this one. This is a classic problem. Since there are only 1000 lockers there will be only 1000 students who open or close lockers. The question is "what will the open/closed pattern be after all students complete their actions". The answer is clearly what capuchin implied. The number of open/closed lockers is not important to this problem.
    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #7

    Feb 12, 2007, 04:00 AM
    Inspired by Fianchetto's provably incorrect answer, I set out to find the series myself.

    Using only Excel and a moderate amount of intelligence, I have calculated the first 50 terms:

    1000, 500, 499, 583, 547, 549, 535, 482, 523, 491, 493, 490, 484, 471, 463, 491, 487, 476, 474, 456, 455, 444, 441, 446, 448, 440, 439, 430, 442, 447, 465, 462, 472, 469, 473, 472, 489, 483, 482, 479, 495, 496, 511, 513, 509, 494, 507, 507, 509, 499

    As you can see me and Fianchetto disagree at term 24 (FI:448, ME:440), I'm not sure why, something for you to investigate Fian?

    Also we disagree at term 18 (FI:465, ME:456), but I think this could be a Fianchetto transcription error.

    The sequence is intriguing, and does not seem to have a more simple pattern than the equation that generates it. (it looks somewhat like a random walk about the mean of 500 at the early stages, as most of the terms are affecting a large number of lockers).

    Here are the last 50 terms: (951-1000)

    78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31

    No suprises here, 31 was the expected last term and the decreasing is expected as each student only affects a single locker, you can see around term 961 (11th term here) the decreasing pattern is broken, this is because 961 is one of the numbers with an odd number of divisors that we talked about. For the OP, there is an extra clue to which set of numbers the numbers with odd divisors belong to here, if you can spot it.

    Fianchetto I have the spreadsheet if you want it, it's rather large and unwieldy though.
    I hope you find the flaw in your logic! (or the difference in our interperation of the question?)
    Fianchetto's Avatar
    Fianchetto Posts: 70, Reputation: 2
    Junior Member
     
    #8

    Feb 12, 2007, 04:30 AM
    Quote Originally Posted by Capuchin
    Inspired by Fianchetto's provably incorrect answer, I set out to find the series myself.

    Using only Excel and a moderate amount of intelligence, I have calculated the first 50 terms:

    1000, 500, 499, 583, 547, 549, 535, 482, 523, 491, 493, 490, 484, 471, 463, 491, 487, 476, 474, 456, 455, 444, 441, 446, 448, 440, 439, 430, 442, 447, 465, 462, 472, 469, 473, 472, 489, 483, 482, 479, 495, 496, 511, 513, 509, 494, 507, 507, 509, 499

    As you can see me and Fianchetto disagree at term 24 (FI:448, ME:440), i'm not sure why, something for you to investigate Fian?

    Also we disagree at term 18 (FI:465, ME:456), but i think this could be a Fianchetto transcription error.

    The sequence is intriguing, and does not seem to have a more simple pattern than the equation that generates it. (it looks somewhat like a random walk about the mean of 500 at the early stages, as most of the terms are affecting a large number of lockers).

    I will provide the last 50 terms below shortly, but need time to extend the spreadsheet (255 columns is not enough!).


    I stand corrected - I found the error in my spreadsheet entry, and correcting it have similar results. Including the dyslexic entry:)
    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #9

    Feb 12, 2007, 04:36 AM
    Quote Originally Posted by Fianchetto
    I stand corrected - I found the error in my spreadsheet entry, and correcting it have similar results. Including the dyslexic entry:)
    Fantastic! I've put the last 50 terms down too in my above post. :)
    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #10

    Feb 12, 2007, 04:41 AM
    *counter-neeners*
    Fianchetto's Avatar
    Fianchetto Posts: 70, Reputation: 2
    Junior Member
     
    #11

    Feb 12, 2007, 05:28 PM
    Quote Originally Posted by Capuchin
    *counter-neeners*
    But wait... there's more - you just showed faith in my earlier hypothesis that the number of open or closed lockers "oscillates then approaches some stability" - I just got the numbers wrong due to typos in my spreadsheet. There is a saying in medical circles: "When you here the hoofbeats, remember - they may be zebras." You rode your horse (and well, I might add), but also helped me lasso my zebra. "Counter - neeners" accepted graciously, anyway :)
    asterisk_man's Avatar
    asterisk_man Posts: 476, Reputation: 32
    Full Member
     
    #12

    Feb 13, 2007, 12:17 PM
    I've generated all the data for this one based on what the two of you were discussing (however far from the actual question it may be :) ) and attached the data and chart. You can feel free to determine the pattern on your own but I wouldn't say that it is anything too significant.

    Name:  lockers.gif
Views: 116
Size:  9.2 KB
    lockers.txt
    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #13

    Feb 13, 2007, 12:19 PM
    Just to clear up, I didn't think it would approach stability, but it obviously is completely ordered and predictable after 500. (I know the whole of it is ordered, in that it's generated by a rule, but it last 500 where only 1 divisor is left for most numbers is more ordered)

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

The number 18 in Hebrew ? [ 6 Answers ]

I remember this lady once wearing a pendant on a chain around her neck. Someone asked her something about it and she said it was the # 18 in Hebrew... and that the # 18 meant... life. I never did get the full story, so I'm wondering now what does that mean. Is...

Private Number [ 6 Answers ]

Hi, I am asking if it is possible to display private numbers on Nokia phones? I have a Nokia 6230i and I cannot handle prank calls lol. So please tell me if there is anything I can do to display private numbers

Complex number [ 2 Answers ]

so I'm totally lost! The question is -6(u + 5)squared =120 so do I distribute or do I divide by six? if you can help please email or I'm me at [email protected]

Part Number [ 1 Answers ]

I am trying to find a replacement for a Bryant CK3BXA048 "N" Coil. I haven't been able to find a matching number. It is a 4 ton horizontal coil. Can you make any suggestions?

Sequences [ 1 Answers ]

I need to determine a sequence or maybe a series for the depreication of a new car, it depreciates by 20% in its first year, each succeeding year it depreciates by 10%. Assume the car is still in good working condition after 10 years. If the car cost $25000, calculate the value of the car after...


View more questions Search