Can you solve the multiplying rabbits riddle? - Alex Gendler

4,172,128 views ・ 2019-01-10

TED-Ed


Please double-click on the English subtitles below to play the video.

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
00:21
arranged in an inverted pyramid,
6
21470
2260
00:23
with 8 cells in the top row.
7
23730
2500
00:26
The first has one rabbit,
8
26230
1790
00:28
the second has two, and so on,
9
28020
2740
00:30
with eight rabbits in the last one.
10
30760
2510
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
01:03
that’s a 1 followed by 80 zeros –
21
63385
2710
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
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
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
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
02:05
Answer in 2
41
125078
2790
02:07
Answer in 1
42
127868
660
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
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
02:43
either multiplying a number ending in 5 by any even number,
56
163737
4110
02:47
or by multiplying numbers that have trailing zeroes themselves.
57
167847
4300
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
02:59
20 rabbits in the fourth cell and 30 in the fifth cell.
61
179578
3670
03:03
But there are no numbers ending in 5.
62
183248
2390
03:05
And since the only way to get a number ending in 5 through multiplication
63
185638
3770
03:09
is by starting with a number ending in 5,
64
189408
2480
03:11
there won’t be any more down the line either.
65
191888
3570
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
03:20
And a neat trick to figure out the amount of trailing zeros in a product
68
200378
3840
03:24
is to count and add the trailing zeros in each of the factors –
69
204218
4300
03:28
for example, 10 x 100 = 1,000.
70
208518
4163
03:32
So let’s take the numbers in the fourth and fifth cells
71
212681
3078
03:35
and multiply down from there.
72
215759
2470
03:38
20 and 30 each have one zero,
73
218229
2520
03:40
so the product of both cells will have two trailing zeros,
74
220749
3510
03:44
while the product of either cell and an adjacent non-zero-ending cell
75
224259
4360
03:48
will have only one.
76
228619
2290
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
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
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
04:11
yields an 81 digit number –
83
251141
2610
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
04:22
hare-raisingly close to disaster.
87
262701
3357
About this website

This site will introduce you to YouTube videos that are useful for learning English. You will see English lessons taught by top-notch teachers from around the world. Double-click on the English subtitles displayed on each video page to play the video from there. The subtitles scroll in sync with the video playback. If you have any comments or requests, please contact us using this contact form.

https://forms.gle/WvT1wiN1qDtmnspy7