- [Voiceover] So we have these
nine balls right over here. We're going to assume that
they are completely identical. At least they are identical in appearance. But one of the nine
balls is heavier, just a little bit heavier, is heavier
than the other eight balls. And my question to you is: What's the minimum number of times that we can use this scale in order to know, definitively, which is the heavier ball. So there's some number of
weighings using the scale, that after that number of weighings I know for a fact that I've
found the heavier ball. We're not going to do
something based on luck that you just happen to pick the
right ball when you weigh it. It has to be 100 percent
chance after this number of weighings that you have the ball. And so what is the minimum
number of those, what is the minimum number of
weighings using the scale? And I encourage you to pause the video and think about it as long as necessary to come up with your own conclusions. So I'm assuming you've
given a go at it, so I'll give you a couple of hints now. So my first hint is that you can do it in exactly two weighings of the scale. If I do two weighings of the scale, I know for a fact that I can find,
not just through luck, I can find definitively the heavier ball. So that's my first hint and if that helps you, pause the video. I'm about to give you another hint. So my second hint is that
with each weighing of the scale you should be able to rule out 2/3 of the balls that are essentially still candidates for the heavier ball. So if that helps you, once
again, pause the video. So now I'm assuming you've had a go at it and maybe you were able to figure it out. Maybe you weren't. So now let's work through it together. So I mentioned that in each weighing you can rule out 2/3 of the balls. So how do we do that? So in the first weighing,
what we essentially do is take our nine balls and put
it into three groups of three. And we take two of those groups of three, so we take this group. Let me actually do that
in a different color. So we can take this group
of three right over here. Put those three balls on
that side of the scale. And then we can take these three balls, and put it on that side of the scale. And so you're essentially weighing three versus three balls. Now, there's a couple of outcomes here. You're either going to have a balance, you're going to have the left is heavier. So let me write that. Say it's going to tip down,
so the left is heavier. Or the right is heavier. Or the right is heavier. Now what does each of these tell you? Well if this, if they
balance, that tells you that the third group has the heavy ball. So, actually let me write it this way. If this is group one,
group two, group three, then this tells you that
group three has heavy ball. Has heavy ball. If the left is heavier, then we know group one has the heavy ball. Group one has the heavy ball. And then finally, of
course, if the right is heavier we know that group
two has the heavy ball. Now just like that with
one way, we have narrowed it down to one of the three groups. We have essentially narrowed it down. We now know that our heavy
ball is one of three balls. It's either one of these three, one of these three, or one of these three. And so I just repeat the process. But instead of doing it
with three balls at a time, I now do it with one ball at a time. So if I'm taking three balls. If I have three balls, what
I could do is, I will now... So my step two, I guess
I could say, my step two. I now weigh one versus one. And once again I have the outcomes. So if they are balanced, if they are balanced, then that means the... So once again, if we're taking, say, this group of three, we're in the balanced situation from the first weighing. And so if we put, if
we put this ball here, and this ball here, if
they are balanced then we know that this must be the heavy ball. Because these two are the same. If the left goes down,
if the left goes down then we know this is the heavy ball. And likewise, if the right goes down, if the right goes down, we know that this is going to be the heavy ball. So this is actually a little bit of a brain teaser that you see. It's a pretty common one. It's actually even, sometimes you'll hear it in some job interviews. But you can see, it comes
out of the idea that through each weighing you can
rule out 2/3 of the balls. And so you could use this principle, if you want, to drive other brain teasers. What if you had 27 balls? How many weighings would you need? What if you had 81? And sometimes when you
see this brain teaser, instead of giving you
a nice clean, I guess you could say, power of
three right over here, they might give you something off. So they might give you eight balls. But the exact same principle holds. If you had eight balls,
you could split it up into two groups of
three, and then two more. And then do the same, and then
do the exact same process. But I think people like
to do the eight balls because it takes you
a little away from the idea of maybe you have to divide it into groups of three, or something like that. Anyway, hopefully you have enjoyed this.