Can you solve the multiplying rabbits riddle? - Alex Gendler

4,212,945 views ・ 2019-01-10

TED-Ed


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

譯者: Lilian Chiu 審譯者: Helen Chang
00:06
After years of experiments,
0
6820
1670
經過數年的實驗,
00:08
you’ve finally created the pets of the future–
1
8490
2990
你終於創造出了未來的寵物——
00:11
nano-rabbits!
2
11480
1450
奈米兔子!
00:12
They’re tiny, they’re fuzzy…
3
12930
1850
牠們很小且毛絨絨的……
00:14
and they multiply faster than the eye can see.
4
14780
3430
牠們繁殖的速度快到肉眼看不見。
00:18
In your lab there are 36 habitat cells,
5
18210
3260
在你的實驗室中,有 36 間住窩,
00:21
arranged in an inverted pyramid,
6
21470
2260
用倒金字塔的形式排列,
00:23
with 8 cells in the top row.
7
23730
2500
最上面一層有 8 間,
00:26
The first has one rabbit,
8
26230
1790
第 1 間有 1 隻兔子,
00:28
the second has two, and so on,
9
28020
2740
第 2 間有 2 隻兔子,以此類推,
00:30
with eight rabbits in the last one.
10
30760
2510
最後一間有 8 隻兔子。
00:33
The other rows of cells are empty…
11
33270
2540
其他層的住窩是空的……
00:35
for now.
12
35810
1250
目前是空的。
00:37
The rabbits are hermaphroditic,
13
37060
2040
這些兔子雌雄同體,
00:39
and each rabbit in a given cell will breed once
14
39100
2980
在每一間當中的每一隻兔子都會
與橫向隔壁間中的兔子交配一次,
00:42
with every rabbit in the horizontally adjacent cells,
15
42080
3740
00:45
producing exactly one offspring each time.
16
45820
3800
每次都是生出一隻後代。
00:49
The newborn rabbits will drop into the cell
17
49620
2350
新生出來的兔子會直接落到
00:51
directly below the two cells of its parents,
18
51970
3210
父母住窩正下方的那間住窩,
00:55
and within minutes will mature and reproduce in turn.
19
55180
4280
在幾分鐘之內就會長大成熟, 可以換牠們開始交配。
00:59
Each cell can hold 10^80 nano-rabbits –
20
59460
3925
每一間住窩可以容納 10^80 隻奈米兔子——
01:03
that’s a 1 followed by 80 zeros –
21
63385
2710
10^80 是 1 後面加 80 個 0 ——
01:06
before they break free and overrun the world.
22
66095
3990
超過的話,牠們就會 逃出住窩竄犯全世界。
01:10
Your calculations have given you a 46-digit number
23
70085
3831
你的計算算出來在最底層住窩中的
01:13
for the count of rabbits in the bottom cell–
24
73916
2510
兔子數目只有 46 位數——
01:16
plenty of room to spare.
25
76426
2740
空間綽綽有餘。
01:19
But just as you pull the lever to start the experiment,
26
79166
3080
但當你拉動操縱桿要開始實驗時,
01:22
your assistant runs in with terrible news.
27
82246
2860
你的助理帶著壞消息跑來。
01:25
A rival lab has sabotaged your code
28
85106
2800
你競爭對手的實驗室 破壞了你的程式碼,
01:27
so that all the zeros at the end of your results got cut off.
29
87906
4218
所以你最後算出的結果, 其實最後面的 0 都被切掉了。
01:32
That means you don’t actually know
30
92124
2100
那就表示你其實不知道
01:34
if the bottom cell will be able to hold all the rabbits –
31
94224
3060
最下面一層的住窩是否 能容納所有的兔子——
01:37
and the reproduction is already underway!
32
97284
3180
但繁殖已經開始了!
01:40
To make matters worse,
33
100464
1370
更糟糕的是,
01:41
your devices and calculators are all malfunctioning,
34
101834
3340
你的裝置和計算機都故障了,
01:45
so you only have a few minutes to work it out by hand.
35
105174
4340
你只有幾分鐘的時間用手算出來。
01:49
How many trailing zeros should there be
36
109514
2534
底層住窩中的兔子數目,
01:52
at the end of the count of rabbits in the bottom habitat?
37
112048
3370
後面應該要有多少個 0?
01:55
And do you need to pull the emergency shut-down lever?
38
115418
3690
你需要去拉緊急關閉的控制桿嗎?
01:59
Pause the video now if you want to figure it out for yourself.
39
119108
2960
如果你想要自己解題, 請在這裡將影片暫停。
02:02
Answer in 3
40
122068
3010
答案即將公佈:3
02:05
Answer in 2
41
125078
2790
答案即將公佈:2
02:07
Answer in 1
42
127868
660
答案即將公佈:1 沒有足夠的時間算出
02:08
There isn’t enough time to calculate the exact number of rabbits in the final cell.
43
128528
4850
在最後一間住窩中的兔子數目。
02:13
The good news is we don’t need to.
44
133378
2030
好消息是,我們並不需要算出它。
02:15
All we need to figure out
45
135408
1370
我們只需要算出後面有多少個 0。
02:16
is how many trailing zeros it has.
46
136778
3170
02:19
But how can we know how many trailing zeros a number has
47
139948
3270
但我們要怎麼在不計算出 這個數目的情況下,
02:23
without calculating the number itself?
48
143218
2740
知道後面有幾個零?
02:25
What we do know is that we arrive at the number of rabbits in the bottom cell
49
145958
4030
我們只知道,底層住窩的兔子數目
02:29
through a process of multiplication –
50
149988
2280
是透過乘法(與「繁殖」同字)的 過程得到的——真的。
02:32
literally.
51
152268
990
02:33
The number of rabbits in each cell
52
153258
1670
每間住窩中的兔子數目
02:34
is the product of the number of rabbits in each of the two cells above it.
53
154928
4070
是上面兩間住窩中的 兔子數目相乘。
02:38
And there are only two ways
54
158998
1509
只有兩種方式
02:40
to get numbers with trailing zeros through multiplication:
55
160507
3230
可以透過乘法得到 後面有 0 的數字:
02:43
either multiplying a number ending in 5 by any even number,
56
163737
4110
把尾數是 5 的數字 和任何偶數相乘,
02:47
or by multiplying numbers that have trailing zeroes themselves.
57
167847
4300
或是將本身尾數 就是 0 的數字相乘。
02:52
Let’s calculate the number of rabbits in the second row
58
172147
2921
咱們來計算上面數下來 第二層的兔子數目,
02:55
and see what patterns emerge.
59
175068
2220
看看會發現什麼模式。
02:57
Two of the numbers have trailing zeros –
60
177288
2290
兩個數字的尾數有 0 ——
02:59
20 rabbits in the fourth cell and 30 in the fifth cell.
61
179578
3670
第 4 間有 20 隻兔子, 第 5 間有 30 隻。
03:03
But there are no numbers ending in 5.
62
183248
2390
但沒有尾數是 5 的數目出現。
03:05
And since the only way to get a number ending in 5 through multiplication
63
185638
3770
因為若要透過乘法 得到尾數是 5 的數字,
03:09
is by starting with a number ending in 5,
64
189408
2480
一定要用尾數是 5 的數字來乘,
03:11
there won’t be any more down the line either.
65
191888
3570
因此可確定下面也不會 再出現尾數是 5 的數字。
03:15
That means we only need to worry
66
195458
1530
那就表示我們只需要擔心
03:16
about the numbers that have trailing zeros themselves.
67
196988
3390
本身尾數就是 0 的數字。
03:20
And a neat trick to figure out the amount of trailing zeros in a product
68
200378
3840
有招絕招可以知道乘法 乘積的尾數有幾個 0,
03:24
is to count and add the trailing zeros in each of the factors –
69
204218
4300
那就是算出每個因數尾數的 0 有幾個,再將它們加總——
03:28
for example, 10 x 100 = 1,000.
70
208518
4163
比如,10 x 100 = 1,000。
03:32
So let’s take the numbers in the fourth and fifth cells
71
212681
3078
所以,咱們從第 4、5 間的數目
03:35
and multiply down from there.
72
215759
2470
著手開始向下相乘。
03:38
20 and 30 each have one zero,
73
218229
2520
20 和 30 尾數都有 1 個 0,
03:40
so the product of both cells will have two trailing zeros,
74
220749
3510
所以這兩間的乘積, 尾數會有 2 個 0,
03:44
while the product of either cell and an adjacent non-zero-ending cell
75
224259
4360
這兩間住窩和其隔壁 數目尾數非 0 的住窩相乘
03:48
will have only one.
76
228619
2290
得到的乘積尾數只有 1 個 0。
03:50
When we continue all the way down,
77
230909
2020
我們繼續向下計算,
03:52
we end up with 35 zeros in the bottom cell.
78
232929
3510
會算出在最底層住窩中的 兔子數尾數有 35 個 0。
03:56
And if you’re not too stressed about the potential nano-rabbit apocalypse,
79
236439
4170
若在計算這可能會發生的奈米兔子 世界末日時你還有餘力的話,
04:00
you might notice that counting the zeros this way
80
240609
2892
你可能會注意到, 用這種方式計算 0,
04:03
forms part of Pascal’s triangle.
81
243501
2960
會形成一部分的楊輝三角形。
04:06
Adding those 35 zeros to the 46 digit number we had before
82
246461
4680
將那 35 個 0 加在我們之前 算出的 46 位數數字後面,
04:11
yields an 81 digit number –
83
251141
2610
得到一個 81 位數數字——
04:13
too big for the habitat to contain!
84
253751
2330
超出住窩的容量!
04:16
You rush over and pull the emergency switch
85
256081
2750
你跑過去,拉下緊急開關,
04:18
just as the seventh generation of rabbits was about to mature –
86
258831
3870
此時第 7 代的兔子正要長大——
04:22
hare-raisingly close to disaster.
87
262701
3357
差一點點就要發生繁殖災難。
關於本網站

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

https://forms.gle/WvT1wiN1qDtmnspy7