I Am Taller Than Everyone I See

There are N N people gathered in line to ride the hyperloop . They are numbered starting from the front. Let P N P_N be the average number of people who are expected to say "I am taller than everyone in front of me."

What is the value of

1000 ( P 200 P 198 ) ? \left\lfloor 1000({ P }_{ 200 }-{ P }_{ 198 }) \right\rfloor ?


The answer is 10.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Beakal Tiliksew
Apr 19, 2014

It may not be obvious at first but is possible to show that;

P N = P N 1 + 1 N { P }_{ N }={ P }_{ N-1 }+\frac { 1 }{ N }

Let us consider the last person, this person has 1 N \frac { 1 }{ N } of being the tallest. Which gives you 1 + P N 1 1+{ P }_{ N-1 } people who are able to give this statement. If we consider everyone except the last person, that is N 1 N-1 , you get P N 1 { P }_{ N-1 } who are able to give this statement.So in fact we get,

P N = P N 1 + 1 N { P }_{ N }={ P }_{ N-1 }+\frac { 1 }{ N }

also for P N 1 { P }_{ N-1 } by the same method

P N 1 = P N 2 + 1 N 1 { P }_{ N-1 }={ P }_{ N-2 }+\frac { 1 }{ N-1 }

Inductively we get

P N = 1 + 1 2 + 1 3 + 1 4 . . . . . . . . . . . . . 1 N { P }_{ N }=1+\frac { 1 }{ 2 } +\frac { 1 }{ 3 } +\frac { 1 }{ 4 } .............\frac { 1 }{ N }

which is essentially a finite harmonic series in the form

k = 1 N 1 k \sum _{ k=1 }^{ N }{ \frac { 1 }{ k } }

( 1000 ) k = 1 200 1 k k = 1 198 1 k = 1000 ( 1 199 + 1 200 ) = 10 \left\lfloor \left( 1000 \right) \sum _{ k=1 }^{ 200 }{ \frac { 1 }{ k } } -\sum _{ k=1 }^{ 198 }{ \frac { 1 }{ k } } \right\rfloor =\left\lfloor 1000\left( \frac { 1 }{ 199 } +\frac { 1 }{ 200 } \right) \right\rfloor =10

Matthew Prashker
Apr 22, 2014

Let the people be α 1 α N \alpha_1 \cdots \alpha_N , where α 1 \alpha_1 is the first person in line and α N \alpha_N is the last person in line. For each 1 i n 1 \leq i \leq n , let X i X_i be equal to 1 if person α i \alpha_i is taller than everyone in front of him, and 0 otherwise. Then P N = X 1 + X n P_N = X_1 + \cdots X_n . The average value of P N P_N is the same as the expected value of P N P_N . The expected value of any X i X_i is just 1 i \frac{1}{i} because it is just the probability that in the first i i people, α i \alpha_i is the tallest, and any person in this set of people is equally likely to be the tallest. Thus, by the linearity of expectation, we see that the expected value, or average, of P N P_N is just the sum of the first n n terms of the harmonic series, and now it is very easy to numerically compute that answer, which comes out to 10.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...