Can you solve the rogue submarine riddle? - Alex Rosenthal

1,511,340 views ・ 2021-09-23

TED-Ed


請雙擊下方英文字幕播放視頻。

譯者: Lilian Chiu 審譯者: Amanda Zhu
00:07
Smuggling yourself aboard the rogue submarine was the easy part.
0
7663
3875
偷搭上叛逃的潛水艇 還算是簡單的部分,
00:11
Hacking into the nuclear missile launch override— a little harder.
1
11538
3583
駭入核彈發射撤消系統 這就稍微難一點了。
00:15
But now you’ve got a problem: you don’t have the override code.
2
15246
4208
但,現在你遇到問題了: 你沒有撤消密碼。
00:19
You know you need the same two numbers
3
19746
2125
你知道你需要的兩個數字,
00:21
that the agents of chaos just used to authorize the launch.
4
21871
3875
就是混亂特務剛才 用來授權發射的數字。
00:25
But one wrong answer will lock you out.
5
25913
2583
但弄錯一個數字就會讓系統鎖住。
00:28
From your hiding spot, you’ve been able to learn the following:
6
28704
3292
從你躲藏的位置, 你得到了下列資訊:
00:32
The big boss didn’t trust any minion with the full information
7
32454
4250
大頭目不相信任何嘍囉, 不會把全部的資訊都給同一個人,
00:36
to launch nuclear missiles on their own.
8
36704
2417
以免樓囉自己發射核彈。
00:39
So he gave one launch code to Minion A, the other to minion B,
9
39121
4583
所以他把一個發射密碼給嘍囉 A,
另一個給嘍囉 B,
00:43
and forbade them to share the numbers with each other.
10
43704
2833
並禁止他們告訴對方自己的數字。
00:47
When the order came,
11
47537
1292
命令下來時,
00:48
each entered their own number and activated the countdown.
12
48829
3542
他們各自輸入他們的數字, 啟動發射倒數。
00:52
That was 50 minutes ago,
13
52704
2125
那是五十分鐘前的事,
00:54
and there's only 10 minutes left before the missiles launch.
14
54829
3125
只剩下十分鐘核彈就要發射了。
00:58
Suddenly, the boss says, “Funny story— your launch codes were actually related.
15
58371
5333
突然,頭目說:
「說件趣事——你們的 發射密碼其實是相關的。
01:03
I chose a set of distinct positive integers with at least two elements,
16
63704
5000
我選了一組正整數,
至少有兩個數字,
01:08
each less than 7, and told their sum to you, A, and their product to you, B.”
17
68704
6084
每個都小於 7,
把它們的加總告訴 A,
乘積告訴 B。」
01:15
After a moment of awkward silence, A says to B,
18
75246
3750
在短暫的尷尬沉默後,A 對 B 說:
01:18
“I don’t know whether you know my number.”
19
78996
2250
「我不知道你是否知道我的數字。」
01:21
B thinks this over, then responds,
20
81246
2792
B 想過之後,回應說:
01:24
“I know your number, and now I know you know my number too.”
21
84038
4041
「我知道你的數字,
且現在我知道你也知道我的數字。」
01:28
That’s all you’ve got.
22
88788
1416
你就只聽到這些。
01:30
What numbers do you enter to override the launch?
23
90204
3125
你要輸入什麼數字來撤銷飛彈發射?
01:33
Pause now to figure it out for yourself. Answer in 3
24
93496
3125
[若要自行解題,請在此暫停。 答案公佈倒數:三]
01:36
Answer in 2
25
96621
2583
[二]
01:39
Answer in 1
26
99204
1625
[一]
01:40
Ignorance-based puzzles like this are notoriously difficult to work through.
27
100913
4791
這種以「不知情」為基礎的謎題
是出名了難解。
01:45
The trick is to put yourself in the heads of both characters
28
105954
3625
技巧在於從兩位角色的角度來思考,
01:49
and narrow down the possibilities based on what they know or don’t know.
29
109579
4417
並根據他們知道什麼
或不知道什麼, 來找到更接近的答案。
01:54
So let's start with A's first statement.
30
114496
2292
咱們先從 A 的第一句陳述開始。
01:56
It means that B could conceivably have something with the potential
31
116788
4166
意即, B 可能有資訊 可以揭露出 A 的數字,
02:00
to reveal A’s number, but isn’t guaranteed to.
32
120954
3292
但不保證一定可以。
02:05
That doesn’t sound very definitive, but it can lead us to a major insight.
33
125121
4167
聽起來無法確定什麼,
但能讓我們窺見一件重要的事:
02:09
The only scenarios where B could know A’s number
34
129496
3542
只有一種情況下, B 會知道 A 的數字,
02:13
are when there’s exactly one valid way to factor B’s number.
35
133038
4208
就是 B 的數字只有 一種因數拆解的方式。
02:17
Try factoring a few and you’ll find the pattern—
36
137579
2500
試著拆解幾個數字, 你就會找到模式;
02:20
It could be prime— where the product must be of 1 and itself—
37
140079
4000
可能是質數
——乘積即 1 和質數本身——
02:24
or it could be the product of 1 and the square of a prime, such as 4.
38
144246
4917
或是一和質數的平方,比如 4。
02:29
In both cases, there is exactly one sum.
39
149454
3125
在這兩種情況下, 都剛好只有一個加總值。
02:32
For a number like 8, factoring it into 2 and 4, or 1, 2, and 4,
40
152704
5709
如果是八這類數字,
因數可能是 2 與 4,
或者 1、2、4,
02:38
creates too many options.
41
158413
1708
會有太多加總的可能性。
02:40
Because the boss’s numbers must be less than 7,
42
160496
3458
因為頭目說每個數字都小於七,
02:43
A’s list of B’s possibilities only has these 4 numbers.
43
163954
5584
A 把 B 可能的數字列成清單,
上面就只會有這四個數字。
02:50
Here’s where we can conclude a major clue.
44
170204
2875
這裡我們就能得到一條重要線索。
02:53
To think B could have these numbers, A’s number must be a sum of their factors—
45
173079
6500
A 認為 B 可能有這些數字,
所以 A 的數字一定是 其因數的總和——
02:59
so 3, 4, 5, or 6.
46
179579
3042
3、4、5,或 6。
03:02
We can eliminate 3 and 4, because if the sum was either,
47
182704
3417
我們可以拿掉 3 和 4, 因為如果總和是 3 或 4,
03:06
the product could only be 2 or 3,
48
186121
2583
那乘積就只有可能是 2 或 3,
03:08
in which case A would know that B already knows A’s number,
49
188704
4125
不論是 2 或 3,A 都能知道 B 已經知道 A 的數字。
03:12
contradicting A’s statement.
50
192829
1875
這和 A 的說法矛盾。
03:15
5 and 6, however, are in play,
51
195454
2417
不過,5 和 6 都有可能,
03:17
because they can become sums in multiple ways.
52
197871
3000
因為有多種方式加總出這兩個數字。
03:21
The need to consider this is one of the most difficult parts of this puzzle.
53
201079
4292
知道要考量這一點
是這類謎題最困難的地方。
03:25
The crucial thing to remember is that there’s no guarantee
54
205371
3458
重點是要記住,
B 的數字並不保證 一定在 A 的清單,
03:28
that B’s number is on A’s list—
55
208829
2917
03:31
those are just the possibilities from A’s perspective
56
211746
2958
清單上的只是從 A 的角度 認為可能的數字,
03:34
that would allow B to deduce A’s number.
57
214704
2584
A 認為這樣 B 就能 推理出 A 的數字。
03:38
That ambiguity forces us to go through unintuitive multi-step processes like:
58
218246
6042
這種模糊性,迫使我們要進行
非直覺式的多步驟過程,
比如:先想一個乘積,
03:44
consider a product, see what sums can result from its factors,
59
224288
4583
看看它的因數能加出哪些總和,
03:49
then break those apart and see what products can result.
60
229371
4125
接著再把這些總和拆開,
看能乘出哪些乘積。
03:53
We’ll soon have to do something similar going from sums to products
61
233913
3916
我們很快就得要採用類似的 過程,從總和到乘積,
03:57
and back to sums.
62
237829
1500
再回到總和。
03:59
But now we know— when A made his first statement,
63
239454
3125
但現在我們知道, 當 A 說出第一句陳述時,
04:02
he must have been holding either 5 or 6.
64
242579
3084
他的數字一定是五或六。
04:05
B has access to the same information we do,
65
245996
2958
我們能得到的資訊 B 也都能得到,
04:08
so he knows this too.
66
248954
1500
所以他也知道這一點。
04:10
Let’s review what’s in each brain at this point:
67
250704
2917
咱們來回顧一下 每個人的腦中有什麼:
04:13
everyone knows a lot about the sum, but only B knows the product.
68
253788
4208
大家都對總和知道很多,
但只有 B 知道乘積。
04:18
Now let’s look at the first part of B’s statement.
69
258621
2833
咱們來看看 B 陳述的第一部分。
04:21
What if A’s number was 5?
70
261663
1875
如果 A 的數字是 5 呢?
04:23
That could be from 1+4 or 2+3,
71
263663
3125
5 有可能是 1+4 或 2+3,
04:26
in which case B would have either 4 or 6.
72
266788
3375
這兩種情況下, B 的數字分別會是 4 或 6。
04:30
4 would tell B what A had, like he said,
73
270913
3041
若是 4,B 就會知道 A 的數字,如他所言,
04:33
because there’s only one option to make the product: 4 times 1.
74
273954
4042
因為要讓乘積是 4 ,只有一種可能:
四乘以一。
04:38
6, on the other hand, could be broken down three ways, which sum like so.
75
278288
5375
另一方面,6 則有 3 種拆解方式,
其總和如圖所示。
04:44
7 isn’t on B’s list of possible sums, but 5 and 6 both are.
76
284079
5209
B 的可能總和清單中沒有 7,
但有 5 和 6。
04:49
Meaning that B wouldn’t know whether A’s number was 5 or 6,
77
289579
4834
意思就是 B 不會知道
A 的數字是 5 或 6,
04:54
and we can eliminate this option because it contradicts his statement.
78
294413
3875
我們可以剔除這個選項, 因為和 B 的陳述矛盾。
04:58
So this is great— 5 and 4 could be the override code,
79
298704
3792
這樣很棒,5 和 4 有可能是撤銷密碼,
05:02
but how do we know it's the only one?
80
302746
2458
但我們怎麼知道只有這個可能性?
05:06
Let’s consider if A’s number was 6—
81
306538
2916
咱們來看看 A 的數字 若是 6 會如何——
05:09
which would be 1+5, 2+4, or 1+2+3,
82
309454
4334
6 可能是 1+5、2+4、1+2+3
05:14
giving B 5, 8, or 6, respectively.
83
314038
3083
則 B 分別會是 5、8、6。
05:17
If B had 5, he’d know that A had 6.
84
317496
3458
如果 B 的數字是 5, 他就會知道 A 的是 6。
05:20
And if he had 8, the possibilities for A would be 2+4 and 1+2+4.
85
320954
6542
如果 B 是 8,
A 可能會是 2+4 或1+2+4。
05:28
Only 6 is on the list of possible sums, so B would again know that A had 6.
86
328079
6459
只有 6 出現在可能的總和清單上,
所以同樣的, B 會知道 A 的數字是 6。
05:35
To summarize, if A had 6,
87
335038
2666
總結一下,如果 A 是 6,
05:37
he still wouldn’t know whether B had 5 or 8.
88
337704
3625
他不會知道 B 是 5 還是 8。
05:41
That contradicts the second half of what B said,
89
341788
3250
不符合 B 陳述的後半段,
05:45
and 5 and 4 must be the correct codes.
90
345038
3666
所以 5 和 4 就一定是正確的密碼。
05:49
With seconds to spare you override the missile launch,
91
349413
3000
在只剩幾秒的時候, 你撤銷了核彈發射,
05:52
shoot yourself out of the torpedo bay,
92
352413
2208
從魚雷艙把你自己發射出去,
05:54
and send the sub to the bottom of the ocean.
93
354621
2583
送潛水艇到海底長眠。
關於本網站

本網站將向您介紹對學習英語有用的 YouTube 視頻。 您將看到來自世界各地的一流教師教授的英語課程。 雙擊每個視頻頁面上顯示的英文字幕,從那裡播放視頻。 字幕與視頻播放同步滾動。 如果您有任何意見或要求,請使用此聯繫表與我們聯繫。

https://forms.gle/WvT1wiN1qDtmnspy7