To solve this problem, we need to compute the expected total number of cards the magician passes over during the entire process, denoted as ( x ), and then find ( x - \sum_{n=2}^{13} \frac{1}{n} ).
Understanding the Process:
At each step, the magician starts scanning from the leftmost card in the row and continues until he reaches either the minimum or maximum valued card among the remaining cards. He passes over all the cards to the left of this card and then removes it. The number of cards he passes over at each step is equal to the number of cards to the left of the removed card.
We model the initial arrangement of the 13 distinct cards as a random permutation of the numbers ( 1 ) through ( 13 ). The positions of the minimal and maximal elements in the permutation are independent and uniformly distributed over positions ( 1 ) to ( n ), where ( n ) is the number of cards remaining at that step.
Calculating Expected Number of Cards Passed Over at Each Step:
Let ( E[C_n] ) denote the expected number of cards passed over when there are ( n ) cards remaining. At each step, we are interested in the expected position of the earliest occurrence of either the minimal or maximal card among the remaining ( n ) cards.
To compute ( E[C_n] ), we calculate the expected value of the minimum of two independent discrete uniform random variables (representing the positions of the minimal and maximal cards), each uniformly distributed over positions ( 1 ) to ( n ):
-
Determine ( E[T] ), the expected position of the first occurrence of either the minimal or maximal element:
[
E[T] = \frac{(n + 1)(n + 2)}{3n}
]
-
Compute ( E[C_n] ) by subtracting ( 1 ) (since we pass over ( T - 1 ) cards):
[
E[C_n] = E[T] - 1 = \frac{n^2 + 2}{3n}
]
This simplifies to:
[
E[C_n] = \frac{n}{3} + \frac{2}{3n}
]
Calculating the Total Expected Number of Cards Passed Over:
The total expected number of cards passed over is the sum of ( E[C_n] ) from ( n = 2 ) to ( n = 13 ), since at each step one card is removed:
[
x = \sum_{n=2}^{13} E[C_n] = \frac{1}{3} \sum_{n=2}^{13} n + \frac{2}{3} \sum_{n=2}^{13} \frac{1}{n}
]
The question asks for ( x - \sum_{n=2}^{13} \frac{1}{n} ), so we compute:
[
x - \sum_{n=2}^{13} \frac{1}{n} = \left( \frac{1}{3} \sum_{n=2}^{13} n + \frac{2}{3} \sum_{n=2}^{13} \frac{1}{n} \right) - \sum_{n=2}^{13} \frac{1}{n}
]
Simplify the expression:
[
x - \sum_{n=2}^{13} \frac{1}{n} = \frac{1}{3} \sum_{n=2}^{13} n - \frac{1}{3} \sum_{n=2}^{13} \frac{1}{n}
]
[
x - \sum_{n=2}^{13} \frac{1}{n} = \frac{1}{3} \left( \sum_{n=2}^{13} n - \sum_{n=2}^{13} \frac{1}{n} \right)
]
Compute the sum of ( n ) from ( 2 ) to ( 13 ):
[
\sum_{n=2}^{13} n = \frac{13 \times 14}{2} - 1 = 91 - 1 = 90
]
Therefore, the expression becomes:
[
x - \sum_{n=2}^{13} \frac{1}{n} = \frac{1}{3} \left( 90 - \sum_{n=2}^{13} \frac{1}{n} \right)
]
Thus, we have:
[
x - \sum_{n=2}^{13} \frac{1}{n} = \frac{90 - \sum_{n=2}^{13} \frac{1}{n}}{3} = \frac{91 - H_{13}}{3}
]
where ( H_{13} ) is the 13th harmonic number, defined as ( H_{13} = \sum_{k=1}^{13} \frac{1}{k} ).
Final Answer:
[
x - \sum_{n=2}^{13} \frac{1}{n} = \frac{91 - H_{13}}{3}
]
An explicit expression: Answer = (91 – H₁₃) ÷ 3 —that is,
x – Σ[1÷n] = (91 – H₁₃)⁄3