Take a test Sign in 中文
← Exercise 534 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Basic Counting (90)
---- (44)
Probability (91)

Exercises and their solutions

Exercise 534
A given sequence $r_1, r_2, \dots, r_n$ of distinct real numbers can be put in ascending order by means of one or more ``bubble passes''. A bubble pass through a given sequence consists of comparing the second term with the first term, and exchanging them if and only if the second term is smaller, then comparing the third term with the second term and exchanging them if and only if the third term is smaller, and so on in order, through comparing the last term, $r_n$, with its current predecessor and exchanging them if and only if the last term is smaller. The example below shows how the sequence 1, 9, 8, 7 is transformed into the sequence 1, 8, 7, 9 by one bubble pass. The numbers compared at each step are underlined. \begin{center} $\underline{1 \quad 9} \quad 8 \quad 7$ $1 \quad {}\underline{9 \quad 8} \quad 7$ $1 \quad 8 \quad \underline{9 \quad 7}$ $1 \quad 8 \quad 7 \quad 9$ \end{center} Suppose that $n = 36$, and that the terms of the initial sequence $r_1, r_2, \dots, r_{36}$ are distinct from one another and are in random order. Let $p/q$, in lowest terms, be the probability that the number that begins as $r_{15}$ will end up, after one bubble pass, in the $25^{\mbox{th}}$ place. Find $p + q$.
← Back to Problem 534
Solution
  1. $r_{15}$ ends in place $25$ exactly when it is the largest of $r_1,\dots,r_{25}$ (so it moves right to place $25$) and $r_{26}$ is larger (so it stops there).
  2. That is: among $r_1,\dots,r_{26}$ the largest is $r_{26}$ and the second largest is $r_{15}$, with probability $\frac1{26}\cdot\frac1{25}=\frac1{650}$.
  3. So $p+q=651$.
  4. The answer is $\boxed{651}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1985 (1 problems)
1984 (1 problems)