N people gathered in line to ride the hyperloop . They are numbered starting from the front. Let P N be the average number of people who are expected to say "I am taller than everyone in front of me."
There areWhat is the value of
⌊ 1 0 0 0 ( P 2 0 0 − P 1 9 8 ) ⌋ ?
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.
Let the people be α 1 ⋯ α N , where α 1 is the first person in line and α N is the last person in line. For each 1 ≤ i ≤ n , let X i be equal to 1 if person α i is taller than everyone in front of him, and 0 otherwise. Then P N = X 1 + ⋯ X n . The average value of P N is the same as the expected value of P N . The expected value of any X i is just i 1 because it is just the probability that in the first i people, α 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 is just the sum of the first n terms of the harmonic series, and now it is very easy to numerically compute that answer, which comes out to 10.
Problem Loading...
Note Loading...
Set Loading...
It may not be obvious at first but is possible to show that;
P N = P N − 1 + N 1
Let us consider the last person, this person has N 1 of being the tallest. Which gives you 1 + P N − 1 people who are able to give this statement. If we consider everyone except the last person, that is N − 1 , you get P N − 1 who are able to give this statement.So in fact we get,
P N = P N − 1 + N 1
also for P N − 1 by the same method
P N − 1 = P N − 2 + N − 1 1
Inductively we get
P N = 1 + 2 1 + 3 1 + 4 1 . . . . . . . . . . . . . N 1
which is essentially a finite harmonic series in the form
k = 1 ∑ N k 1
⌊ ( 1 0 0 0 ) k = 1 ∑ 2 0 0 k 1 − k = 1 ∑ 1 9 8 k 1 ⌋ = ⌊ 1 0 0 0 ( 1 9 9 1 + 2 0 0 1 ) ⌋ = 1 0