LLM-test/prompts/math/2-百万鸡腿期望.md

14 lines
571 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

有一百万只鸡,每次从有腿的鸡中抽取一只砍掉一条腿,重复一百万次,最后数学期望下还有多少完好的鸡?
```
我们需要找到满足 $x(2 - \ln x) = 1$ 的 $x$ 值。
这是一个超越方程,可以通过数值计算得到:
若 $x \approx 0.3178$
$\ln(0.3178) \approx -1.1463$
$0.3178 \times (2 - (-1.1463)) = 0.3178 \times 3.1463 \approx 1.0000$
因此完好无损的鸡2条腿占总数的比例 $x \approx 0.31782$。
对于 $N = 1,000,000$ 只鸡:
期望剩余完好的鸡的数量约为 317,821 只。
```