Return to Video

Can you solve the locker riddle? - Lisa Winer

  • 0:07 - 0:10
    Your rich, eccentric uncle
    just passed away,
  • 0:10 - 0:17
    and you and your 99 nasty relatives have
    been invited to the reading of his will.
  • 0:17 - 0:19
    He wanted to leave
    all of his money to you,
  • 0:19 - 0:25
    but he knew that if he did,
    your relatives would pester you forever.
  • 0:25 - 0:27
    So he is banking on the fact
  • 0:27 - 0:33
    that he taught you everything
    you need to know about riddles.
  • 0:33 - 0:36
    Your uncle left the following
    note in his will:
  • 0:36 - 0:38
    "I have created a puzzle.
  • 0:38 - 0:42
    If all 100 of you answer it together,
    you will share the money evenly.
  • 0:42 - 0:46
    However, if you are the first to find
    the pattern and solve the problem
  • 0:46 - 0:49
    without going through all of the leg work,
  • 0:49 - 0:53
    you will get the entire inheritance
    all to yourself.
  • 0:53 - 0:54
    Good luck."
  • 0:54 - 0:59
    The lawyer takes you and your 99 relatives
    to a secret room in the mansion
  • 0:59 - 1:02
    that contains 100 lockers,
  • 1:02 - 1:04
    each hiding a single word.
  • 1:04 - 1:05
    He explains:
  • 1:05 - 1:10
    Every relative is assigned a number
    from 1 to 100.
  • 1:10 - 1:13
    Heir 1 will open every locker.
  • 1:13 - 1:17
    Heir 2 will then
    close every second locker.
  • 1:17 - 1:21
    Heir 3 will change the status
    of every third locker,
  • 1:21 - 1:24
    specifically if it's open,
    she'll close it,
  • 1:24 - 1:27
    but if it's closed, she'll open it.
  • 1:27 - 1:31
    This pattern will continue until
    all 100 of you have gone.
  • 1:31 - 1:34
    The words in the lockers that remain
    open at the end
  • 1:34 - 1:38
    will help you crack the code for the safe.
  • 1:38 - 1:43
    Before cousin Thaddeus can even start
    down the line,
  • 1:43 - 1:49
    you step forward and tell the lawyer
    you know which lockers will remain open.
  • 1:49 - 1:51
    But how?
  • 1:51 - 1:54
    Pause the video now if you want
    to figure it out for yourself!
  • 1:54 - 1:55
    Answer in: 3
  • 1:55 - 1:57
    Answer in: 2
  • 1:57 - 1:58
    Answer in: 1
  • 1:58 - 2:02
    The key is realizing that the number
    of times a locker is touched
  • 2:02 - 2:06
    is the same as the number of factors
    in the locker number.
  • 2:06 - 2:09
    For example, in locker #6,
  • 2:09 - 2:11
    Person 1 will open it,
  • 2:11 - 2:13
    Person 2 will close it,
  • 2:13 - 2:14
    Person 3 will open it,
  • 2:14 - 2:17
    and Person 6 will close it.
  • 2:17 - 2:22
    The numbers 1, 2, 3, and 6
    are the factors of 6.
  • 2:22 - 2:25
    So when a locker has an even number
    of factors
  • 2:25 - 2:27
    it will remain closed,
  • 2:27 - 2:29
    and when it has an odd number of factors,
  • 2:29 - 2:31
    it will remain open.
  • 2:31 - 2:34
    Most of the lockers
    have an even number of factors,
  • 2:34 - 2:38
    which makes sense because factors
    naturally pair up.
  • 2:38 - 2:41
    In fact, the only lockers that have
    an odd number of factors
  • 2:41 - 2:44
    are perfect squares
  • 2:44 - 2:49
    because those have one factor that when
    multiplied by itself equals the number.
  • 2:49 - 2:51
    For Locker 9, 1 will open it,
  • 2:51 - 2:53
    3 will close,
  • 2:53 - 2:55
    and 9 will open it.
  • 2:55 - 2:57
    3 x 3 = 9,
  • 2:57 - 2:59
    but the 3 can only be counted once.
  • 2:59 - 3:05
    Therefore, every locker that is
    a perfect square will remain open.
  • 3:05 - 3:07
    You know that these ten lockers
    are the solution,
  • 3:07 - 3:11
    so you open them immediately
    and read the words inside:
  • 3:11 - 3:17
    "The code is the first five lockers
    touched only twice."
  • 3:17 - 3:22
    You realize that the only lockers
    touched twice have to be prime numbers
  • 3:22 - 3:24
    since each only has two factors:
  • 3:24 - 3:27
    1 and itself.
  • 3:27 - 3:31
    So the code is 2-3-5-7-11.
  • 3:31 - 3:33
    The lawyer brings you to the safe,
  • 3:33 - 3:35
    and you claim your inheritance.
  • 3:35 - 3:39
    Too bad your relatives were always
    too busy being nasty to each other
  • 3:39 - 3:41
    to pay attention
    to your eccentric uncle's riddles.
Title:
Can you solve the locker riddle? - Lisa Winer
Speaker:
Lisa Winer
Description:

View full lesson: http://ed.ted.com/lessons/can-you-solve-the-locker-riddle-lisa-winer

Your rich, eccentric uncle just passed away, and you and your 99 nasty relatives have been invited to the reading of his will. He wanted to leave all of his money to you, but he knew that if he did, your relatives would pester you forever. Can you solve the riddle he left for you and get the inheritance? Lisa Winer shows how.

Lesson by Lisa Winer, animation by Artrake Studio.

more » « less
Video Language:
English
Team:
closed TED
Project:
TED-Ed
Duration:
03:50

English subtitles

Revisions Compare revisions