Mathematics (JEE)HardGATE CS · ICPC

A permutation of 1, 2, 3, 4, 5 is chosen uniformly at random. A position is a record if its value is larger than every value before it; the first position is always a record. What is the expected number of records?

  1. A. 77/60
  2. B. 137/60
  3. C. 25/12
  4. D. 5/2

Correct answer: B. 137/60

Position i is a record exactly when the largest of its first i values sits in position i, which has probability 1/i. By linearity, E = 1 + 1/2 + 1/3 + 1/4 + 1/5 = H_5 = 137/60.

More Permutations, Combinations and Probability questions

Exams that ask this topic