返回题库

抽牌选 Ace

Choosing k So the Last Card Is an Ace

专题
Strategy / 策略
难度
L4

题目详情

玩家选择一个整数 k52k\le 52,然后从一副充分洗匀的标准 52 张牌的牌堆顶依次抽出前 kk 张。

如果第 kk 张是 A,并且在前 kk 张牌中恰好还有另外 1 张 A(即前 kk 张一共抽到 2 张 A),则玩家获胜。

问:应选择哪个 kk 才能使获胜概率最大?

A player chooses a number k52k \leq 52 and the top kk cards are drawn one by one from a properly shuffled standard deck of 52 cards. The player wins if the last drawn card is an Ace and if there is exactly one more Ace among the cards drawn. Which kk should the player choose to maximize the chance of winning in this game?

解析

Denote by WkW_{k} the event that the kk - th card is an Ace and that one more card is an Ace among the first k1k - 1 cards. Note that k50k \leq 50 since there must be at least two cards (Aces) left after the top 50 cards are drawn. We need to find 1k501 \leq k \leq 50 such that P(Wk)\mathbb{P}\left(W_{k}\right) is maximized. Let NkN_{k} be the number of ways in which the deck can be shuffled to have one Ace in the kk - th position, one Ace in a position from the set {1,2,,k1}\{1, 2, \ldots , k - 1\} , and two Aces in positions from the set {k+1,,52}\{k + 1, \ldots , 52\} . Then,

P(Wk)=Nk52!\mathbb{P}\left(W_{k}\right) = \frac{N_{k}}{52!}

Denote by MkM_{k} the number of ways in which we can choose the positions for four Aces. For each choice of positions for the four Aces, the Aces can be placed in those positions in 4! ways, while the other cards can be placed in the remaining positions in 48! ways. Therefore,

Nk=4!48!MkN_{k} = 4! \cdot 48! \cdot M_{k}

To calculate MkM_{k} , note that: the kk - th position must be chosen; one position is in {1,2,,k1}\{1,2,\ldots ,k - 1\} and can be chosen in k1k - 1 ways; the other two positions are in {k+1,k+2,,52}\{k + 1,k + 2,\ldots ,52\} and can be chosen in (52k2)\left( \begin{array}{c}52 - k \\ 2 \end{array} \right) ways. Thus,

Mk=(k1)(52k2)=(k1)(52k)(51k)2\begin{array}{c}M_{k} = (k - 1)\cdot \left( \begin{array}{c}52 - k \\ 2 \end{array} \right) \\ = \frac{(k - 1)(52 - k)(51 - k)}{2} \end{array}

From (2.5- 2.7), it follows that the probability of winning, when choosing kk , is

P(Wk)=4!48!52!(k1)(52k)(51k)2=12(k1)(52k)(51k)52515049\begin{array}{c}{{\mathbb{P}\left(W_{k}\right)=\frac{4!\cdot48!}{52!}\cdot\frac{\left(k-1\right)\left(52-k\right)\left(51-k\right)}{2}}}\\ {{=\frac{12(k-1)\left(52-k\right)\left(51-k\right)}{52\cdot51\cdot50\cdot49}}}\end{array}

The maximum value of P(Wk)\mathbb{P}(W_{k}) is obtained for the value of kk that maximizes the function

f(k)=(k1)(52k)(51k)=(k1)[51(k1)][50(k1)].\begin{array}{c}f(k) = (k - 1)(52 - k)(51 - k) \\ = (k - 1)\cdot [51 - (k - 1)]\cdot [50 - (k - 1)]. \end{array}

Let z=k1,M=51z = k - 1, M = 51 , and

g(z)=z(51z)(50z).g(z) = z(51 - z)(50 - z).

Since f(k)=g(k1)f(k) = g(k - 1) , the maximum of ff is attained at k=z+1k_{\star} = z_{\star} + 1 , where 0z490\leq z_{\star}\leq 49 is the integer for which the function gg is the largest; recall that 1k501\leq k\leq 50 . The derivative of g(z)g(z) is

g(z)=3z22(2M1)z+M(M1)g^{\prime}(z) = 3z^{2} - 2(2M - 1)z + M(M - 1)

and the solutions of the equation g(z)=0g^{\prime}(z) = 0 are

z1,2=2M1±M2M+13.z_{1,2} = \frac{2M - 1\pm\sqrt{M^{2} - M + 1}}{3}.

Since (M1)2<M2M+1<M2(M - 1)^{2}< M^{2} - M + 1< M^{2} , we find that

z1(M13,M3)=(16.67,17),z2(M23,M13)=(50.33,50.67).\begin{array}{l}{{z_{1}\in\left(\frac{M-1}{3},\frac{M}{3}\right)=(16.67,17),}}\\ {{z_{2}\in\left(M-\frac{2}{3},M-\frac{1}{3}\right)=(50.33,50.67).}}\end{array}

The quadratic function g(z)g^{\prime}(z) is negative on the interval (z1,z2)(z_{1},z_{2}) and positive everywhere else. This implies that gg is increasing on (,z1)(- \infty ,z_{1}) , decreasing on (z1,z2)(z_{1},z_{2}) , and increasing on (z2,+)(z_{2}, + \infty) . Hence, the value 0z490\leq z_{\star}\leq 49 where gg attains its maximum is either z1=16\lfloor z_{1}\rfloor = 16 or z1=17\lceil z_{1}\rceil = 17 . In other words, z{16,17}z_{\star}\in \{16,17\} , which corresponds to k{17,18}k_{\star}\in \{17,18\} . Since f(17)=19040f(17) = 19040 and f(18)=19072f(18) = 19072 , we conclude that it is optimal to choose is k=18k = 18 .