Can you solve the locker riddle? - Lisa Winer

11,691,232 views ・ 2016-03-28

TED-Ed


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

譯者: Rowena Lee 審譯者: Max Chern
00:06
Your rich, eccentric uncle just passed away,
0
6720
3634
你那個富有、古怪的叔叔剛去世,
00:10
and you and your 99 nasty relatives have been invited to the reading of his will.
1
10354
6500
你和你 99 個卑劣的親戚 被邀請去聽他的遺囑宣讀。
00:16
He wanted to leave all of his money to you,
2
16854
2520
他想把所有的錢都留給你,
00:19
but he knew that if he did, your relatives would pester you forever.
3
19374
5431
可是,他知道如果這樣做, 你的親戚們會一直騷擾你。
00:24
So he is banking on the fact
4
24805
2257
因此,他指望
00:27
that he taught you everything you need to know about riddles.
5
27062
5598
他教過你所有你需要知道 關於謎語的資訊。
00:32
Your uncle left the following note in his will:
6
32660
2898
你的叔叔在遺囑留下了以下註記:
00:35
"I have created a puzzle.
7
35558
2219
「我設計了一個謎題,
00:37
If all 100 of you answer it together, you will share the money evenly.
8
37777
4251
如果你們 100 個人能一起解答, 你們就平均分配我的遺產。
00:42
However, if you are the first to find the pattern and solve the problem
9
42028
4157
但是,如果你是第一個找到模式, 並解開謎語,
00:46
without going through all of the leg work,
10
46185
2536
而不是經由一個個慢慢細算,
00:48
you will get the entire inheritance all to yourself.
11
48721
3800
你將會得到全部的遺產。
00:52
Good luck."
12
52521
1577
祝你好運。」
00:54
The lawyer takes you and your 99 relatives to a secret room in the mansion
13
54098
4831
律師帶你和你的 99 個親戚 去一座公寓裡的密室,
00:58
that contains 100 lockers,
14
58929
2866
裡面有 100 個櫃子,
01:01
each hiding a single word.
15
61795
2475
每個藏有一個字。
01:04
He explains:
16
64270
1170
他解釋:
01:05
Every relative is assigned a number from 1 to 100.
17
65440
4365
「每個親戚會分配到 1 至 100 中一個數字。
01:09
Heir 1 will open every locker.
18
69805
2900
一號繼承人會打開所有櫃子,
01:12
Heir 2 will then close every second locker.
19
72705
3997
之後,二號繼承人會把 每個 2 的倍數的櫃子關上。
01:16
Heir 3 will change the status of every third locker,
20
76702
4177
三號繼承人會把 每個 3 的倍數的櫃子的狀態反轉,
01:20
specifically if it's open, she'll close it,
21
80879
2896
明確地說, 如果本來是開著,她會關上它,
01:23
but if it's closed, she'll open it.
22
83775
2805
但如果本來是關著,她會打開它。
01:26
This pattern will continue until all 100 of you have gone.
23
86580
4599
這方式會繼續,直到你們 100 個人都做完。
01:31
The words in the lockers that remain open at the end
24
91179
3283
最後保持開著的櫃子裡的字
01:34
will help you crack the code for the safe.
25
94462
3575
會幫助你破解保險箱密碼。」
01:38
Before cousin Thaddeus can even start down the line,
26
98037
4607
在你表哥 Thaddeus 開始排隊之前,
01:42
you step forward and tell the lawyer you know which lockers will remain open.
27
102644
6368
你驅前告訴律師 你知道哪幾個櫃子最後仍然開著。
01:49
But how?
28
109012
2354
但是,如何知道的?
01:51
Pause the video now if you want to figure it out for yourself!
29
111366
2966
如果你想自己找出答案, 你可以現在暫停影片!
01:54
Answer in: 3
30
114332
1089
答案揭曉:3
01:55
Answer in: 2
31
115421
1156
答案揭曉:2
01:56
Answer in: 1
32
116577
1671
答案揭曉:1
01:58
The key is realizing that the number of times a locker is touched
33
118248
3903
關鍵是要瞭解一個櫃子被觸碰的次數
02:02
is the same as the number of factors in the locker number.
34
122151
4276
等於櫃子編號的因子數目。
02:06
For example, in locker #6,
35
126427
2637
例如,在 6 號櫃子,
02:09
Person 1 will open it,
36
129064
1644
第 1 個人會打開,
02:10
Person 2 will close it,
37
130708
1894
第 2 個人會把它關上,
02:12
Person 3 will open it,
38
132602
1714
第 3 個人會再打開,
02:14
and Person 6 will close it.
39
134316
2896
第 6 個人會把它關上。
02:17
The numbers 1, 2, 3, and 6 are the factors of 6.
40
137212
5120
數字 1、2、3、6 都是 6 的因子,
02:22
So when a locker has an even number of factors
41
142332
2833
所以當櫃子編號有偶數個因子時,
02:25
it will remain closed,
42
145165
1647
最後會保持關著,
02:26
and when it has an odd number of factors,
43
146812
2021
而當它有奇數個因子時,
02:28
it will remain open.
44
148833
2129
它會保持開著。
02:30
Most of the lockers have an even number of factors,
45
150962
2991
大部分的櫃子編號都有偶數個因子,
02:33
which makes sense because factors naturally pair up.
46
153953
3760
這是合理的,因為因子本來就是配對。
02:37
In fact, the only lockers that have an odd number of factors
47
157713
3762
事實上,只有奇數個因子的櫃子編號
02:41
are perfect squares
48
161475
2299
都是完全平方數,
02:43
because those have one factor that when multiplied by itself equals the number.
49
163774
5178
因為那些有一個因子是自己相乘等於櫃子編號。
02:48
For Locker 9, 1 will open it,
50
168952
2382
以 9 號櫃子為例,一號繼承人會打開它,
02:51
3 will close,
51
171334
1484
三號會關上它,
02:52
and 9 will open it.
52
172818
2116
而九號會打開它。
02:54
3 x 3 = 9,
53
174934
2160
3 x 3 = 9,
02:57
but the 3 can only be counted once.
54
177094
2285
但 3 只能被算一次。
02:59
Therefore, every locker that is a perfect square will remain open.
55
179379
5150
所以,完全平方數的櫃子 最後都會保持打開。
03:04
You know that these ten lockers are the solution,
56
184529
2897
你知道這 10 個櫃子就是答案,
03:07
so you open them immediately and read the words inside:
57
187426
3859
所以你立刻打開它們,並讀裡面的字:
03:11
"The code is the first five lockers touched only twice."
58
191285
5758
「密碼是首五個只被觸碰兩次的櫃子。」
03:17
You realize that the only lockers touched twice have to be prime numbers
59
197043
4838
你知道只被觸碰兩次的櫃子 必須是質數,
03:21
since each only has two factors:
60
201881
2573
因為每個只有兩個因子:
03:24
1 and itself.
61
204454
2054
1 和那數字本身。
03:26
So the code is 2-3-5-7-11.
62
206508
4327
所以密碼是 2 - 3 - 5 - 7 - 11。
03:30
The lawyer brings you to the safe,
63
210835
2374
那個律師帶你到保險箱,
03:33
and you claim your inheritance.
64
213209
1836
你聲明了你的遺產權。
03:35
Too bad your relatives were always too busy being nasty to each other
65
215045
3482
可惜你的親戚 一直忙於惡劣地彼此對待,
03:38
to pay attention to your eccentric uncle's riddles.
66
218527
2817
以致無法專注於你古怪叔叔的謎語。
翻譯:Wing Kiu Lee
關於本網站

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

https://forms.gle/WvT1wiN1qDtmnspy7