Wasted a bit of time on this but still failed to come up with a solution.Help!!

There are 100100 people in a queue waiting to enter a hall. The hall has exactly100100 seats numbered from 11 to 100100. The first person in the queue enters the hall, chooses any seat and sits there.the nn-th person in the queue, where nn can be 2,3,...1002,3,...100 enters the hall after the (n1)(n-1)-th person has seated. He seats in seat number nn if he finds it vacant; otherwise he takes an unoccupied seat at. Find the total number of ways in which the 100100 seats can be filled up, provided the 100100-th person occupies seat number 100100.

#Combinatorics #Goldbach'sConjurersGroup #TorqueGroup #IntroduceYourself #Recursion

Note by Eddie The Head
7 years, 2 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

I think I have a solution. Let Pi P_{i} denote person i i and Si S_{i} denote seat i i . Also, let Pi=Sj P_{i} = S_{j} denote that person i i sits in seat j j . Firstly we will prove a lemma (L1): 'If Pi=Sj P_{i} = S_{j} then either ji j \geq i or j=1 j = 1 ' To show this, let us assume that in fact j<i j < i and j1 j \ne 1 . Consider Pi P_{i} is just about to enter the hall. Pi P_{i} can only sit in Sj S_{j} if Sj S_{j} is empty at this time. But if Sj S_{j} is empty at this time then Sj S_{j} was also available when Pj P_{j} entered the hall (since Pj P_{j} entered the hall before Pi P_{i} ). Therefore Pj P_{j} would have sat in Sj S_{j} , and so in fact Sj S_{j} would not be empty when Pi P_{i} was about to enter the hall. Therefore we have a contradiction, so our assumption that j<i j < i and j1 j \ne 1 was false, so either ji j \geq i or j=1 j = 1 (j=1j = 1 is allowed since P1 P_{1} is not compelled to sit in his own seat like everyone else is). So the lemma is proved. So now, say that Pa=Sb P_{a} = S_{b} where a1 a \ne 1 and a<b a < b . This means that Sb S_{b} is occupied when Pb P_{b} is about to enter the hall. Therefore, using L1, Pb=Sc P_{b} = S_{c} , where b<c b < c . This is forming what will be known as a series ( a,b,c,... a,b,c,... ). However, we now have the same problem with Pc P_{c} , ie. Pc=Sd P_{c} = S_{d} where c<d c < d . This would seem to imply that if someone other than P1 P_{1} sits in a seat which is not their own then it will form an infinite increasing series, but we only have finitely many people. However, we have forgotten that someone in the series can sit in S1 S_{1} .

Clearly only 1 person can sit in S1 S_{1} , and we have just seen that a series is only possible if someone in the series does sit in S1 S_{1} . Therefore there can only be at most 1 series. Therefore, if there is a series, P1 P_{1} must be part of it, since someone else will be sitting in his seat, and so P1=Sm P_{1} = S_{m} where m1 m \ne 1 , but if m m were not part of the series then we would have started a second series, which we know is not allowed, so m m is part of the series and therefore so is P1 P_{1} . Since P100=S100 P_{100} = S_{100} we know that 100 100 is not part of the series, and from the work we have just done we know that 1 1 is definitely part of the series (if there is one). So in fact we are done: The number of ways to fill 100 seats with the given conditions is the same as the number of strictly increasing sequences we can choose from the set 2,3,4,...,99 {2,3,4,...,99} where the empty set is valid (since this corresponds to when there is no series - everyone sits in their own seat). To make this a bit more clear I will give a random example. Say we pick the strictly increasing sequence 14,23,97 {14,23,97} Then this corresponds to: P1=S14 P_{1} = S_{14} P14=S23 P_{14} = S_{23} P23=S97 P_{23} = S_{97} P97=S1 P_{97} = S_{1} and Pi=Si P_{i} = S_{i} when i1,14,23,97 i \ne 1,14,23,97 . Every selection of numbers from the set can be ordered only 1 way so that it is strictly increasing. Therefore the answer is : k=098(98k)=298 \displaystyle\sum_{k=0}^{98} \dbinom{98}{k} = 2^{98}

If anyone has any queries or questions please feel free to ask

Josh Rowley - 7 years, 2 months ago

Log in to reply

Excellent job!!I think this is the perfect solution!!

Eddie The Head - 7 years, 2 months ago

Log in to reply

Thanks. I noticed after doing my solution that there is a nice problem (and result) which follow naturally: What is the probability that Pa=Sa P_{a} = S_{a} if a1 a \ne 1 ? Well, if Pa=Sa P_{a} = S_{a} this means that a a is not in the series. Therefore we in fact can only choose from 97 numbers not 98 for our strictly increasing sequence, and so there are 297 2^{97} possible combinations if Pa=Sa P_{a} = S_{a} . Therefore the probability that Pa=Sa P_{a} = S_{a} is 297298=12 \dfrac{2^{97}}{2^{98}} = \dfrac{1}{2} . So the probability that someone sits in his own seat (provided that person isn't P1 P_{1} ) is 12 \dfrac{1}{2}

Josh Rowley - 7 years, 2 months ago

Log in to reply

@Josh Rowley Indeed. This is the version that I'm more familiar with, which is why I asked if the probability was "at random".

Calvin Lin Staff - 7 years, 2 months ago

@Josh Rowley I have another solution! :)

A Brilliant Member - 7 years, 1 month ago

Log in to reply

@A Brilliant Member Please share!! :)

Eddie The Head - 7 years, 1 month ago

Holy crap. I just tried it for half an hour, thought it was easy, and then realized that you have to consider HUGE amounts of cases. I think, though, it would be cool to say that there are 10 people, and write a problem like that. I'll do that, actually.

Finn Hulse - 7 years, 2 months ago

"Otherwise he takes an unoccupied seat" meaning he choses it at random?

Calvin Lin Staff - 7 years, 2 months ago

Log in to reply

Yes. And whatever he chooses creates a whole different set of configurations. Which is why this problem is annoying. Also, are you following me?

Finn Hulse - 7 years, 2 months ago

Yes sir, that's how it is?

Eddie The Head - 7 years, 2 months ago

Log in to reply

I previously thought you were asking for the probability, which is why I asked if it was "at random'. But given that you're asking for the number of ways, that doesn't matter then.

Calvin Lin Staff - 7 years, 2 months ago

Log in to reply

@Calvin Lin No sir, thequestion asks for the number of ways only ..not the probability

Eddie The Head - 7 years, 2 months ago

Another question to ponder is the probability that the last seat is free for person 100 to take. This is probably an easier question to tackle.

Daniel Liu - 7 years, 2 months ago
×

Problem Loading...

Note Loading...

Set Loading...