Can you solve the multiplying rabbits riddle Alex Gendler

After years of experiments,

you’ve finally created
the pets of the future–

nano-rabbits!

They’re tiny, they’re fuzzy…

and they multiply faster
than the eye can see.

In your lab there are 36 habitat cells,

arranged in an inverted pyramid,

with 8 cells in the top row.

The first has one rabbit,

the second has two, and so on,

with eight rabbits in the last one.

The other rows of cells are empty…

for now.

The rabbits are hermaphroditic,

and each rabbit in a given
cell will breed once

with every rabbit in the horizontally
adjacent cells,

producing exactly one offspring each time.

The newborn rabbits will
drop into the cell

directly below the
two cells of its parents,

and within minutes will mature
and reproduce in turn.

Each cell can hold 10^80 nano-rabbits –

that’s a 1 followed by 80 zeros –

before they break free
and overrun the world.

Your calculations have given you a
46-digit number

for the count of rabbits
in the bottom cell–

plenty of room to spare.

But just as you pull the lever
to start the experiment,

your assistant runs in with terrible news.

A rival lab has sabotaged your code

so that all the zeros at the end
of your results got cut off.

That means you don’t actually know

if the bottom cell will be able to hold
all the rabbits –

and the reproduction is already underway!

To make matters worse,

your devices and calculators
are all malfunctioning,

so you only have a few minutes
to work it out by hand.

How many trailing zeros should there be

at the end of the count of rabbits
in the bottom habitat?

And do you need to pull the emergency
shut-down lever?

Pause the video now if you want
to figure it out for yourself.

Answer in 3

Answer in 2

Answer in 1

There isn’t enough time to calculate the
exact number of rabbits in the final cell.

The good news is we don’t need to.

All we need to figure out

is how many trailing zeros it has.

But how can we know how many trailing
zeros a number has

without calculating the number itself?

What we do know is that we arrive at the
number of rabbits in the bottom cell

through a process of multiplication –

literally.

The number of rabbits in each cell

is the product of the number of rabbits
in each of the two cells above it.

And there are only two ways

to get numbers with trailing zeros
through multiplication:

either multiplying a number ending in 5
by any even number,

or by multiplying numbers that have
trailing zeroes themselves.

Let’s calculate the number of rabbits
in the second row

and see what patterns emerge.

Two of the numbers have trailing zeros –

20 rabbits in the fourth cell
and 30 in the fifth cell.

But there are no numbers ending in 5.

And since the only way to get a number
ending in 5 through multiplication

is by starting with a number ending in 5,

there won’t be any more
down the line either.

That means we only need to worry

about the numbers that have
trailing zeros themselves.

And a neat trick to figure out the amount
of trailing zeros in a product

is to count and add the trailing zeros
in each of the factors –

for example, 10 x 100 = 1,000.

So let’s take the numbers in the fourth
and fifth cells

and multiply down from there.

20 and 30 each have one zero,

so the product of both cells will have
two trailing zeros,

while the product of either cell and
an adjacent non-zero-ending cell

will have only one.

When we continue all the way down,

we end up with 35 zeros
in the bottom cell.

And if you’re not too stressed about
the potential nano-rabbit apocalypse,

you might notice that counting
the zeros this way

forms part of Pascal’s triangle.

Adding those 35 zeros to the
46 digit number we had before

yields an 81 digit number –

too big for the habitat to contain!

You rush over and pull
the emergency switch

just as the seventh generation of rabbits
was about to mature –

hare-raisingly close to disaster.

经过多年的实验,

你终于创造
了未来的宠物——

纳米兔!

它们很小,很模糊……

而且它们的繁殖速度
比肉眼看到的要快。

在您的实验室中,有 36 个栖息单元,

排列成倒金字塔形,

顶行有 8 个单元。

第一个有一只兔子

,第二个有两只,依此类推,

最后一个有八只兔子。

其他行单元格是空的

……暂时。

兔子是雌雄同体的

,给定
细胞中的每只兔子将

与水平相邻细胞中的每只兔子繁殖一次,每次只

产生一个后代。

刚出生的兔子会
掉入父母两个细胞

正下方的
细胞中

,几分钟内就会
依次成熟和繁殖。

每个单元格可以容纳 10^80 只纳米兔子——

即 1 后跟 80 个零——

在它们挣脱
并超越世界之前。

您的计算为您提供了一个
46 位数字,

用于计算底部牢房中兔子的数量
——有

足够的空间可供使用。

但是,就在你拉动控制
杆开始实验时,

你的助手突然传来可怕的消息。

竞争对手的实验室破坏了您的代码,

因此结果末尾的所有零都
被切断了。

这意味着你实际上并不

知道底部的牢房是否能够容纳
所有的兔子——

而且繁殖已经在进行中!

更糟糕的是,

您的设备和计算器
都出现故障,

因此您只有几分钟的时间
手动解决问题。 在底部栖息地的兔子计数结束时

应该有多少个尾随零

你需要拉紧急
关闭杆吗?

如果您想
自己弄清楚,请立即暂停视频。

回答 3

回答 2

回答 1

没有足够的时间来计算
最终单元格中兔子的确切数量。

好消息是我们不需要这样做。

我们需要弄清楚的

是它有多少个尾随零。

但是,如果不计算数字本身,我们怎么能知道
一个数字有多少个尾随零

呢?

我们所知道的是,我们通过乘法过程得出
了底部细胞中兔子的数量

——

字面意思。

每个单元格中的兔子数量是其上方两个单元格中每个单元格中

兔子数量的乘积

只有两种方法

可以通过乘法获得尾随零的数字

以 5 结尾的数字
乘以任何

偶数,或者将
尾随零的数字相乘。

让我们计算第二行的兔子数量

,看看出现了什么模式。

其中两个数字有尾随零——

第四个单元格中有 20 只兔子,
第五个单元格中有 30 只兔子。

但是没有以 5 结尾的数字。

由于通过乘法获得以 5 结尾的数字的唯一方法

是从以 5 结尾的数字开始,

因此也不会再有任何数字
了。

这意味着我们只需要

担心本身带有
尾随零的数字。

计算
产品中尾随零数量的一个巧妙技巧

是计算并添加
每个因子中的尾随零 -

例如,10 x 100 = 1,000。

所以让我们把第四个
和第五个单元格

中的数字从那里乘下来。

20 和 30 各有一个零,

因此两个单元格的乘积将有
两个尾随零,

而任一单元格
和相邻的非零结尾单元格的乘积

将只有一个。

当我们一直向下时,

我们最终
在底部单元格中得到 35 个零。

如果你
对潜在的纳米兔末日不太担心,

你可能会注意到以
这种方式计算零

构成了帕斯卡三角形的一部分。

将这 35 个零添加到
我们之前的 46 位数字会

产生一个 81 位数字——

对于栖息地来说太大了!

你冲过去拉
了紧急开关,

就在第七代
兔子快要成熟的时候

——养兔到灾难的边缘。