Return to Video

Can you solve the passcode riddle? - Ganesh Pai

  • 0:10 - 0:15
    In this dystopian world, your resistance
    group is humanity's last hope.
  • 0:15 - 0:19
    Unfortunately, you've all been captured
    by the tyrannical rulers
  • 0:19 - 0:24
    and brought to the ancient colosseum
    for their deadly entertainment.
  • 0:24 - 0:25
    Before you're thrown into the dungeon,
  • 0:25 - 0:29
    you see many numbered hallways
    leading outside.
  • 0:29 - 0:32
    But each exit is blocked by
    an electric barrier
  • 0:32 - 0:35
    with a combination keypad.
  • 0:35 - 0:40
    You learn that one of you will be allowed
    to try to escape by passing a challenge
  • 0:40 - 0:45
    while everyone else will be fed to
    the mutant salamanders the next morning.
  • 0:45 - 0:49
    With her perfect logical reasoning,
    Zara is the obvious choice.
  • 0:49 - 0:54
    You hand her a concealed audio transmitter
    so that the rest of you can listen along.
  • 0:54 - 0:56
    As Zara is led away,
  • 0:56 - 0:59
    you hear her footsteps echo
    through one of the hallways,
  • 0:59 - 1:01
    then stop.
  • 1:01 - 1:04
    A voice announces
    that she must enter a code
  • 1:04 - 1:08
    consisting of three positive whole numbers
    in ascending order,
  • 1:08 - 1:11
    so the second number is greater than
    or equal to the first,
  • 1:11 - 1:15
    and the third is greater than
    or equal to the second.
  • 1:15 - 1:17
    She may ask for up to three clues,
  • 1:17 - 1:19
    but if she makes a wrong guess,
  • 1:19 - 1:21
    or says anything else,
  • 1:21 - 1:24
    she'll be thrown back into the dungeon.
  • 1:24 - 1:31
    For the first clue, the voice says
    the product of the three numbers is 36.
  • 1:31 - 1:33
    When Zara asks for the second clue,
  • 1:33 - 1:35
    it tells her the sum of the numbers
  • 1:35 - 1:40
    is the same as the number
    of the hallway she entered.
  • 1:40 - 1:42
    There's a long silence.
  • 1:42 - 1:44
    You're sure Zara remembers
    the hallway number,
  • 1:44 - 1:47
    but there's no way for you to know it,
  • 1:47 - 1:50
    and she can't say it outloud.
  • 1:50 - 1:53
    If Zara could enter the passcode
    at this point, she would,
  • 1:53 - 1:57
    but instead, she asks for the third clue,
  • 1:57 - 2:02
    and the voice announces that the largest
    number appears only once
  • 2:02 - 2:04
    in the combination.
  • 2:04 - 2:09
    Moments later, the buzz of the electric
    barrier stops for a few seconds,
  • 2:09 - 2:12
    and you realize that Zara has escaped.
  • 2:12 - 2:15
    Unfortunately, her transmitter
    is no longer in range,
  • 2:15 - 2:18
    so that's all the information you get.
  • 2:18 - 2:20
    Can you find the solution?
  • 2:20 - 2:27
    Pause on the next screen
    to work out the solution.
  • 2:27 - 2:28
    3
  • 2:28 - 2:29
    2
  • 2:29 - 2:30
    1
  • 2:30 - 2:34
    You're worried about the fact that you
    don't know Zara's hallway number,
  • 2:34 - 2:37
    but you decide to start
    from the beginning anyways.
  • 2:37 - 2:41
    From the first clue, you work out all of
    the eight possible combinations
  • 2:41 - 2:44
    that come out to a product of 36.
  • 2:44 - 2:46
    One of these must be right,
    but which one?
  • 2:46 - 2:48
    Now comes the hard part.
  • 2:48 - 2:51
    Even though you don't know which number
    you're looking for,
  • 2:51 - 2:56
    you decide to work out the sum
    of each combination's three numbers.
  • 2:56 - 2:58
    That's when it hits you.
  • 2:58 - 3:01
    All but two of the sums are unique,
  • 3:01 - 3:04
    and if the hallway number had matched
    any of these,
  • 3:04 - 3:07
    Zara would have known the correct
    combination right then and there
  • 3:07 - 3:10
    without asking for the third clue.
  • 3:10 - 3:12
    Since she did ask for the clue,
  • 3:12 - 3:14
    the hallway number must have
    matched the only sum
  • 3:14 - 3:17
    that appears more than once in the list:
  • 3:17 - 3:18
    thirteen.
  • 3:18 - 3:22
    But which of the two combinations
    that add up to thirteen is correct:
  • 3:22 - 3:24
    1,6,6,
  • 3:24 - 3:25
    or 2,2,9?
  • 3:25 - 3:28
    That's where the third clue comes in.
  • 3:28 - 3:30
    Since it tells us that the largest
    number must be unique,
  • 3:30 - 3:33
    2,2,9 must be the code.
  • 3:33 - 3:37
    When night falls, you and the others
    escape through hallway thirteen
  • 3:37 - 3:40
    and rejoin Zara outside.
  • 3:40 - 3:42
    You've freed yourselves through
    math and logic.
  • 3:42 - 3:45
    Now it's time to free
    the rest of the world.
Title:
Can you solve the passcode riddle? - Ganesh Pai
Speaker:
Ganesh Pai
Description:

View full lesson: http://ed.ted.com/lessons/can-you-solve-the-passcode-riddle-ganesh-pai

In a dystopian world, your resistance group is humanity’s last hope. Unfortunately, you’ve all been captured by the tyrannical rulers and brought to the ancient coliseum for their deadly entertainment. Will you be able to solve the passcode riddle and get everyone out safely? Ganesh Pai shows how.

Lesson by Ganesh Pai, animation by Jun Zee Myers.

more » « less
Video Language:
English
Team:
closed TED
Project:
TED-Ed
Duration:
04:08
Jessica Ruby approved English subtitles for Can you solve the passcode riddle?
Jessica Ruby accepted English subtitles for Can you solve the passcode riddle?
Jessica Ruby edited English subtitles for Can you solve the passcode riddle?
Jennifer Cody edited English subtitles for Can you solve the passcode riddle?

English subtitles

Revisions Compare revisions