一个密码由 10 个字符组成。 密码的前 5 个字符由从集合 {A,B,C,D,E,F,G,H}\{A, B, C, D, E, F, G, H\} 中选择的 5 个字母组成,密码的后 5 个字符由从集合 {1,2,3,4,5,6,7,8,9,0}\{1, 2, 3, 4, 5, 6, 7, 8, 9, 0\} 中选择的 5 个数字组成。密码允许字母 and/or 数字重复。

  1. (a)

    求可以组成的不同的密码数量。

  2. (b)

    求随机选择的一个密码满足以下条件的概率:

    1. (i)

      恰好包含字母 E 三次,且恰好包含数字 5 一次。

    2. (ii)

      以 E 作为第一个字符,或以 4 作为第十个字符,但不同时满足两者。

先不看答案,让 AI 诊断你卡在哪里?

它不会直接告诉你答案,而是问你卡在哪一步看看 AI 是怎么陪你一步步弄懂这道题的

完整解法

5(a)

1. Calculate the number of ways to arrange the first 5 characters (letters) with repetition

Since there are 8 letters and repetitions are allowed, the number of ways is 858^5.

2. Calculate the number of ways to arrange the last 5 characters (digits) with repetition

Since there are 10 digits and repetitions are allowed, the number of ways is 10510^5.

3. Find the total number of different codes using the multiplication principle

Total number of codes =85×105= 8^5 \times 10^5
=32 768×100 000= 32\,768 \times 100\,000
=3 276 800 000= 3\,276\,800\,000

答案

3 276 800 0003\,276\,800\,000

5(b)(i)

1. Calculate the probability that the letter 'E' appears exactly 3 times in the first 5 characters.

P(exactly 3 ’E’s)=(53)(18)3(78)2=10×1512×4964=49032768P(\text{exactly 3 'E's}) = \binom{5}{3} \left(\frac{1}{8}\right)^3 \left(\frac{7}{8}\right)^2 = 10 \times \frac{1}{512} \times \frac{49}{64} = \frac{490}{32768}

2. Calculate the probability that the digit '5' appears exactly once in the last 5 characters.

P(exactly one ’5’)=(51)(110)1(910)4=5×110×656110000=32805100000P(\text{exactly one '5'}) = \binom{5}{1} \left(\frac{1}{10}\right)^1 \left(\frac{9}{10}\right)^4 = 5 \times \frac{1}{10} \times \frac{6561}{10000} = \frac{32805}{100000}

3. Multiply the probabilities since the conditions apply to separate parts of the code and are independent.

Overall Probability=49032768×32805100000=160744503276800000=32148965536000≈0.00491 (to 3 s.f.)\text{Overall Probability} = \frac{490}{32768} \times \frac{32805}{100000} = \frac{16074450}{3276800000} = \frac{321489}{65536000} \approx 0.00491 \text{ (to 3 s.f.)}

答案

\frac{321489}{65536000} \text{ or } 0.00491

5(b)(ii)

1. Find the probabilities of the relevant independent events for the first and tenth characters.

Let AA be the event that the first character is E, and BB be the event that the tenth character is 4.
Since characters are chosen with replacement from their respective sets of 88 letters and 1010 digits:
P(A)=18,P(A′)=78P(A) = \frac{1}{8}, \quad P(A') = \frac{7}{8}
P(B)=110,P(B′)=910P(B) = \frac{1}{10}, \quad P(B') = \frac{9}{10}

2. Calculate the probability that exactly one of the two events occurs.

The choices for the different positions in the code are independent. The probability of having E as the first character or 4 as the tenth, but not both, is given by P(A and not B)+P(not A and B)P(A \text{ and not } B) + P(\text{not } A \text{ and } B):
P(A∩B′)+P(A′∩B)P(A \cap B') + P(A' \cap B)
=(18×910)+(78×110)= \left( \frac{1}{8} \times \frac{9}{10} \right) + \left( \frac{7}{8} \times \frac{1}{10} \right)
=980+780= \frac{9}{80} + \frac{7}{80}
=1680=15= \frac{16}{80} = \frac{1}{5}

答案

15\dfrac{1}{5}

AI 分析,可能出错

用 AI 批改,圈出写错的那一步,并自动将你的薄弱点存入错题本,形成你的错因库。

同一知识点的其他题

  1. 1某项竞赛中,有八名学生入围获奖名单。其中两名学生获得一等奖,另两名学生获得二等奖。 这八名入围学生将排成一排,与一位特邀嘉宾一起合影留念。 如果合影期间两名一等奖得主必须站在一起,且两名二等奖得主也必须站在一起,求有多少种不同的排法。 合影…
  2. 2一项性格测试评估 32 项核心特质。这 32 项特质被分为 4 个领域——认知(Cognition)、影响力(Influence)、人际和谐(Rapport)和规划(Planning),每个领域包含 8 项特质。一个人的测试结果由他/她排名…
  3. 3一位业余作曲家正在编排一段由四个音符和接下来的三个节拍组成的序列。有 7 种可能的音符(标记为 A 到 G)和 5 种可能的节拍(标记为 1 到 5)。音符和节拍的顺序在创作中很重要。求随机选择的序列满足以下条件的概率: 第三个节拍的数字大…
  4. 4凯(Kai)和里奥(Leo)两兄弟是定期训练的双项全能(跑步和骑行)运动员。在每一天中,凯骑行的概率为 34\frac{3}{4},跑步的概率为 35\frac{3}{5},两者都进行的概率为 pp。 平均而言,里奥在一周的 7 天中有…
  5. 5色觉障碍(色盲)是指辨别颜色差异的能力降低。色觉正常的人能够将 6 种颜色(红、橙、黄、绿、蓝、紫)看作 6 个色带。 患有色觉障碍的 Deutan 无法区分以下两对颜色: (I) 红色和绿色, (II) 蓝色和紫色。 对于特定深浅的这 6…