Problem:
Define the annoyingness of a permutation of the first integers to be the minimum number of copies of the permutation that are needed to be placed next to each other so that the subsequence appears. For instance, the annoyingness of is 3, and the annoyingness of is 2.
A random permutation of is selected. Compute the expected value of the annoyingness of this permutation.
, 2022
Solution
Solution:
For a given permutation , let be the smallest number of copies of that need to be placed next to each other to have appear as a subsequence. We are interested in finding the expectation of .
Notice that if appears before in , then . Otherwise, . Since is always 1, this tells us that is equal to 1 plus the number of values of that exist such that appears before . But for any such , this occurs with probability . By linearity of expectation, the answer is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.