Skip to content
Support Us

We need your help now

Support from readers like you keeps The Journal open.

You are visiting us because we have something you value. Independent, unbiased news that tells the truth. Advertising revenue goes some way to support our mission, but this year it has not been enough.

If you've seen value in our reporting, please contribute what you can, so we can continue to produce accurate and meaningful journalism. For everyone who needs it.

Take a break and try to solve this intense locker riddle

A little maths to shake up your morning.

PICTURE THE SCENE: a room full of lockers, with a single word in each.

You’ve been brought here with 99 relatives to try solve a puzzle set by a rich, now dead uncle as part of his will. The first person who cracks the challenge will get his full inheritance.

Someone in the group is told to open all 100 lockers in the room. Another then has to close every second locker, before a third person closes those left open and opens the closed, in a pattern that continues until you’ve all had your turn.

The words in the lockers that are left open at the end will help you figure out the code that opens the safe – but is there a way to solve the problem before you all get started? Ted-Ed explains.

TED-Ed / YouTube

More: Take a break and watch this Irish mum’s reaction to a virtual reality headset

Readers like you are keeping these stories free for everyone...
A mix of advertising and supporting contributions helps keep paywalls away from valuable information like this article. Over 5,000 readers like you have already stepped up and support us with a monthly payment or a once-off donation.

View 35 comments
Close
35 Comments
    Install the app to use these features.
    Mute Gerry with a J
    Favourite Gerry with a J
    Report
    Apr 1st 2016, 11:04 AM

    Miss Hoover, I ate my crayons

    226
    Install the app to use these features.
    Mute Mark Malone
    Favourite Mark Malone
    Report
    Apr 1st 2016, 11:16 AM

    I’ve seen the answer and still can’t figure it out.

    You can keep your money uncle, you were always a nut job.

    79
    Install the app to use these features.
    Mute windbag
    Favourite windbag
    Report
    Apr 1st 2016, 12:12 PM

    My brain is melting…. Watched the video and still haven’t a clue… How many times a locker is touched is the answer… What ???

    18
    Install the app to use these features.
    Mute Tony Skillington
    Favourite Tony Skillington
    Report
    Apr 1st 2016, 12:39 PM

    Haven’t had my locker touched in a long time…

    34
    Install the app to use these features.
    Mute Setanta Landers
    Favourite Setanta Landers
    Report
    Apr 1st 2016, 11:06 AM

    Your synopsis is completely wrong and unintelligible. All you had to do was transcribe the video properly.

    76
    Install the app to use these features.
    Mute Teddington
    Favourite Teddington
    Report
    Apr 1st 2016, 12:08 PM

    You had one job Catherine, one job!

    56
    Install the app to use these features.
    Mute Darren Byrne
    Favourite Darren Byrne
    Report
    Apr 1st 2016, 12:37 PM

    Agree it should be that the first person opens (or changes the status of) every locker. The second closes (or the changes the status of ) ever second locker, the third person every third locker, the fourth person every 4th locker etc. etc.

    The third person does not open or close every locker followed by the next and so on so on. That would leave every second locker after the first open at the end.

    Taking the pattern outlined at the start and say the 18th locker, the first person would open, the second would close it and the third would open it. It being the sixth locker they open. The next two would go near it and the sixth would close it as the third locker they hit. The ninth would open it as the second locker they go to and the 18th would close it as the first they come to. After that no one would go near it again.

    as they said in the video most would then be closed as they have an even number of factors accept for the squares.

    12
    Install the app to use these features.
    Mute Lurfic
    Favourite Lurfic
    Report
    Apr 1st 2016, 12:32 PM

    I thought I had it figured out, until I watched the video and realised the author of the article had described the riddle completely wrong.

    74
    Install the app to use these features.
    Mute John S
    Favourite John S
    Report
    Apr 1st 2016, 3:53 PM

    Yeah the description is embarrassingly wrong……..

    22
    Install the app to use these features.
    Mute Phil Clarke
    Favourite Phil Clarke
    Report
    Apr 1st 2016, 11:08 PM

    Agreed the description is phrased terribly!

    5
    Install the app to use these features.
    Mute Bobby Neary
    Favourite Bobby Neary
    Report
    Apr 1st 2016, 11:03 AM

    Your card is the Jack of Hearts

    57
    Install the app to use these features.
    Mute David Carino
    Favourite David Carino
    Report
    Apr 1st 2016, 5:49 PM

    Col Mustard in the study

    9
    Install the app to use these features.
    Mute Messy Angelo
    Favourite Messy Angelo
    Report
    Apr 1st 2016, 12:40 PM

    So in what way does this locker puzzle competition actually prevent your “nasty” relatives from coming after your money any more than if your uncle just gave you the money in the first place like he supposedly wanted to?

    27
    Install the app to use these features.
    Mute Darren Byrne
    Favourite Darren Byrne
    Report
    Apr 1st 2016, 12:43 PM

    They’re all too busy trying to figure out what the hell just happened

    18
    Install the app to use these features.
    Mute gavin doyle
    Favourite gavin doyle
    Report
    Apr 1st 2016, 11:21 AM

    Didn’t even make it through the description of what to do let alone solve the puzzle

    22
    Install the app to use these features.
    Mute Tony Canning
    Favourite Tony Canning
    Report
    Apr 1st 2016, 11:20 AM

    Be the first member of the group to open all the lockers? Kill everyone else?

    17
    Install the app to use these features.
    Mute Paul Mc Manus
    Favourite Paul Mc Manus
    Report
    Apr 1st 2016, 11:13 AM

    Seven

    16
    Install the app to use these features.
    Mute Ziggy722
    Favourite Ziggy722
    Report
    Apr 1st 2016, 11:20 AM

    “Wrong key you stupid c***!”

    15
    Install the app to use these features.
    Mute Eimear
    Favourite Eimear
    Report
    Apr 1st 2016, 11:11 AM

    Mind boggling stuff this early in the morning!!

    12
    Install the app to use these features.
    Mute Patrick Gough
    Favourite Patrick Gough
    Report
    Apr 1st 2016, 11:43 AM

    I can’t solve the problem. But I can stand 10 canaries on my micky.

    29
    Install the app to use these features.
    Mute Patrick Gough
    Favourite Patrick Gough
    Report
    Apr 1st 2016, 11:43 AM

    Ok I exaggerated. The last canary has to stand on one leg

    49
    Install the app to use these features.
    Mute tally ho
    Favourite tally ho
    Report
    Apr 1st 2016, 5:52 PM

    Thanks to our vulture taxes on inheritance, most of uncle’s money will go to Noonan. Let him sort the puzzle out!

    9
    Install the app to use these features.
    Mute Alan Ball
    Favourite Alan Ball
    Report
    Apr 1st 2016, 11:40 AM

    I never liked him..he can stick his will where the sun does not shine ( Cavan?)

    9
    Install the app to use these features.
    Mute Tony O Dwyer
    Favourite Tony O Dwyer
    Report
    Apr 1st 2016, 12:10 PM

    Jaysus
    Should have paid more attention in maths
    Child deserves the loot , if she figured it out that quickly she probably doesn`t have friends and can now buy them

    5
    Install the app to use these features.
    Mute Ciaran Duffy
    Favourite Ciaran Duffy
    Report
    Apr 1st 2016, 11:09 AM

    All the perfect squares surely? All have an odd number of factors where all other numbers have even pairs of factors.

    4
    Install the app to use these features.
    Mute Setanta Landers
    Favourite Setanta Landers
    Report
    Apr 1st 2016, 11:13 AM

    Considering its impossible to deduce that from the mistranscribed information here is it really that clever to watch the video and regurgitate the answer.

    39
    Install the app to use these features.
    Mute sunshine
    Favourite sunshine
    Report
    Apr 1st 2016, 11:51 AM

    By my reading (maybe I’m missing something) 2nd person opens all odd numbered lockers, 3rd opens every even (closing others) ….100th opens every odd locker. I must be reading it wrong. Am I?

    18
    See 3 more replies ▾
    Install the app to use these features.
    Mute Eoin Byrne
    Favourite Eoin Byrne
    Report
    Apr 1st 2016, 12:04 PM

    The second person opens every second locker, the third person every third locker, the fourth person every fourth locker, etc etc.

    Think of it like this: every number has its own number of factors (numbers it can be divided by). For most numbers (let’s pick 42), there will a number of pairs of factors (e.g. 1×42, 2×21, 3×14, 6×7). Therefore, the door will be opened and closed an even number of times (opened and closed once for each pair of factors, in this case, four people will open door 42 and four people will close it again, 1 will open, 2 will close, 3 will open, 6 will close, 7 will open, 14 will close, 21 will open and 42 will close). However, square numbers have an odd number of factors, because of the square root counting once, not twice. Take 16. Its factors (1, 2, 4, 8 and 16) will see it left open. 1 will open, 2 will close, 4 will open, 8 will close and 16 will open. Obviously the same will hold for any other square.

    3
    Install the app to use these features.
    Mute Ciaran Duffy
    Favourite Ciaran Duffy
    Report
    Apr 1st 2016, 12:06 PM

    I didn’t watch the video

    5
    Install the app to use these features.
    Mute Lurfic
    Favourite Lurfic
    Report
    Apr 1st 2016, 12:37 PM

    If you didn’t watch the video Ciaran, then the description in the article would’ve made it impossible for you to get the answer, as the description is completely wrong.

    27
    Install the app to use these features.
    Mute paddy Jennings
    Favourite paddy Jennings
    Report
    Apr 1st 2016, 12:38 PM

    What !!!!!!

    3
    Install the app to use these features.
    Mute molly coddled
    Favourite molly coddled
    Report
    Apr 1st 2016, 7:49 PM

    Oh no. I hate it when I does get discombobulated.

    2
    Install the app to use these features.
    Mute Phyllis O'Meara
    Favourite Phyllis O'Meara
    Report
    Apr 1st 2016, 2:17 PM

    Who actually cares???!!,

    2
    Install the app to use these features.
    Mute Steve stevenage
    Favourite Steve stevenage
    Report
    Apr 1st 2016, 6:33 PM

    Still haven’t a clue

    1
    Install the app to use these features.
    Mute Pat Gorman
    Favourite Pat Gorman
    Report
    Apr 1st 2016, 10:32 PM

    The more complicated it is the easier it is to crack.
    Simple problems can drive you daft.
    For example.
    Me as a Quizmaster:
    I have three cards with a prize that I KNOW is behind one card.
    You pick one .
    I lift a card without the prize.
    What are your chances?
    You are two thirds better off changing your mind.
    Why?
    The Quiz master knew where the prize was already and will always lift a card without a prize.
    Dead simple.
    Some people suffer from a low IO

    1
Submit a report
Please help us understand how this comment violates our community guidelines.
Thank you for the feedback
Your feedback has been sent to our team for review.
JournalTv
News in 60 seconds