Dalton has a 6-digit combination lock. He gives it to his friends Albert, Bob, and Cheryl. He tells Albert the first two digits of the password, Bob the sum of all the digits, and Cheryl the last two digits. Then he gives them the following numbers and tells them that his password is one of them:
751846 | 741692 | 569843 |
563748 | 752746 | 814561 |
894362 | 813627 | 564932 |
721492 | 753846 | 748532 |
They then have the following conversation:
What is the password?
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.
We start off with the numbers shown below as possibilities:
Albert doesn't know the password means that the first two digits cannot be unique to a single password. This means that the password cannot be either of the ones labelled red below:
Bob doesn't know the password so the sum of the digits cannot be unique to a single password. Here are the sums of the remaining passwords with the unique ones highlighted in red. (Note that we are assuming that they all have deductive skills so Bob's information is based off what Albert has just said, and we don't need to consider the already removed passwords):
Cheryl doesn't know the password means that the last two digits cannot be unique to a single password. This means that the password cannot be either of the ones labelled red below:
Albert still doesn't know the password means that the first two digits cannot be unique to a single password. This means that the password cannot be either of the ones labelled red below:
Bob now knows the password means that the password must have a unique digit sum. Here are the digit sums again:
This means that Dalton's password must be 7 5 3 8 4 6 . Albert and Cheryl wouldn't be able to distinctly tell between the last 3 passwords by themselves, but they know that Bob knows it, allowing them to work it out as well.