King Calvin's Conundrum

Logic Level 3

The cruel, devious King Calvin has captured sixty hapless Brilliant users! He puts all of them in a prison cell, ties each of them down to a chair, and seals their mouths up with duct tape so they can never communicate with each other.

Fortunately, their prison guard is the compliant, yet rigorously virtuous Andrew. He takes a bunch of sticky notes, writes a 0 or a 1 on each of them, and places them at random on the forehead of each of the prisoners. Each prisoner does not know the number on their own forehead, but they can see the numbers on the others’ foreheads. Through this, the guard offers a way out: if someone can guess the number on their forehead correctly, he will let the prisoner out during the night while King Calvin is sleeping. But there is one condition: each prisoner has only one chance to guess, and if they choose the wrong number, then they will remain in the prison, forever! (This means that prisoners will only guess if they know that they are absolutely correct.)

Guard Andrew scoffs at the prisoners’ begs for mercy, flippantly providing a seemingly trivial hint: at least one of the prisoners has a 0 on their forehead. However, Brilliant users tend to be rather...well, brilliant! After only six nights, King Calvin checks the prison himself and is furious to find that all of his prisoners have successfully escaped!

Find the largest possible number of prisoners with 0s on their foreheads.

All of these prisoners are level 5 in logic. (In other words, assume that they are perfectly rational and have infinite intelligence in this situation.)


Hint: There might be days when the prisoners are unable to make a definite guess without a night passing.


Details and Assumptions:

  • A prisoner will only know if their guess was correct in the night when Andrew sets, or does not set, them free. Assuming that all of the prisoners sleep in the night, all the other prisoners will only know if someone has guessed correctly the next morning, if that person is no longer in the prison.

This problem was inspired by a quite tricky puzzle which my friend Josh Y. told me.
Image Credit: King Harkinian by AuronKaizer, Zelda Wikia .


The answer is 5.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

S Aditya
Jan 18, 2017

Here is a general solution.Let no. of days after which all prisoners have been released be 'n'.Let us take cases:-

(1). 1 zero: This man sees all others with '1' as label and escapes in a single day.
(2). 2 zeroes: These men see a man except himself with a zero.They do not leave that night but wait.The next day,they see none of them have left.Thus they both deduce that there are exactly two zero and leave in the second night.The others then ensure that there were exactly two zeroes and all leave on the third night.
:
:
:
N zeroes: Take a person with a zero.He can see (n-1) zeroes.He waits for (n-1) days and see none of them have left because he also had a zero which others were able to see.He deduces this fact and escapes along with all prisoners with zero on the (n)th day.The others labelled as '1' leave on the next day,i.e (n+1)th day which is the total no. of days of escape.
Here (n+1)=6.Therefore n=5.


THE NO. OF ZEROS IS FIVE.

I wish these sort of things could happen in real life, 60 of us being tested in a big puzzle, it could be considered fun in a way, not the prison part though. These days, all we get are jobs :( .

Razzi Masroor - 4 years, 4 months ago

Anthony,but the people with 'one' as label will leave on the next day(7th day) and in the question it is mentioned that all leave on the sixth day.

S Aditya - 4 years, 4 months ago

What if all 6 prisoners have a 0 on their forehead? They would all wait 6 days before then correctly responding that had a 0 on their head and they all escape on the same night

Anthony Holm - 4 years, 4 months ago

This is based on Mathematical Induction. TED also has a video on this - The famously difficult green eyed logic puzzle .

Ameya Salankar - 4 years, 4 months ago

Log in to reply

i watched the video, thank you... but still i can't figure out how it works with the case of 3 people!! 2 people is simple, 3 - the words said in the video didn't convince me at all... the very same story is here... the case of 3 zeros: i still can't figure out "how all this works" on the case of 3 zeros... :((

Nik Gibson - 2 years, 9 months ago

Anthony there are sixty prisoners not six ^_^

Michele Chiminazzo - 4 years, 4 months ago

were you referring to calvin lin :P

A Former Brilliant Member - 4 years, 4 months ago

Log in to reply

@shubham dhull Yes, I was definitely referring to him! I also was referring to Andrew Ellinor, if you know him as well :p He is also a manager/mathematician here on Brilliant.org

Jonas Katona - 4 years, 3 months ago

Log in to reply

wow! what a brave stance u have taken :P any particular reasons ?

A Former Brilliant Member - 4 years, 3 months ago

Log in to reply

@A Former Brilliant Member haha nothing in particular! :D I have spoken with both Calvin and Andrew personally over email. I mentioned this problem to Calvin, and he did not seem to mind it. After all, his name (and Andrew's as well) are put in a variety of problems all over Brilliant.org.

Jonas Katona - 4 years, 3 months ago

pardon me, but the explanation is dreadful... if i didn't have my own thoughts that tended to be very similar, i wouldn't understand anything from that.. especially why the stuff written above is a "solution to anything"!!

Nik Gibson - 2 years, 9 months ago

DEAR AUTHOR! please, rephrase the puzzle so that its conditions, terms and demands would be more simple to understand and PLEASE provide YOUR solution! at this moment the puzzle is worded very poorly!! several things SHOULD be more clear!!! 1) the labels of 0 and 1: are they placed just once or one time every other day? 2) the procedure of escape: who can escape "at a time" and what exactly is implicated by this very "at a time"?

Personally I was totally misled about what was allowed in this puzzle and what wasn't... i mean "i didn't dig the whole story"

Nik Gibson - 2 years, 9 months ago

"These men see a man except himself with a zero" - what's that supposed to mean?!! It's very likely to be grammatically incorrect.... which doesn't make the job of understanding your solution any simpler! :((

Nik Gibson - 2 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...