[Math] Logical puzzle. 3 Persons, each 2 statements, 1 lie, 1 true

logicpuzzle

I got a question at university which I cannot solve. We are currently working on RSA encryption and I'm not sure what that has to do with the question.
Maybe I miss something. Anyway, here is the question:

Inspector D interviews 3 people, A, B and C. All of them give 2 statements, where 1 statement they say is true and 1 is wrong. The inspector knows that and he also knows that exactly one is guilty.
Here are the statements:

A: It wasn't me. B did it.

B: It wasn't me. I know that C did it.

C: It wasn't me. B does not know who did it.

So, since there can be only 1 guilty I just looked at each one.

A: If "It wasn't me" is true then "B did it" is wrong.
Then Bs 1st statement must be wrong, so C must be the one. But if Cs first statement is wrong it's second must be right, so we have a contradiction.

Same goes for the other two.
Am I missing something?

Best Answer

Given the premises of the puzzle, you don't need to go beyond A's statements. If his first statement were false -- i.e., if he did do it -- then his second statement would also be false, in violation of the premise that only one statement is false. So his first statement must be true and the second one false. But that means B didn't do it either, which leaves only C.

You can, if you like, verify that B's and C's statements also satisfy the premises of the puzzle, but there's no actual need to do so, unless you want to make sure the puzzle is properly posed.

Related Question