[A man condemned to be hanged] was sentenced on Saturday. "The hanging will take place at noon," said the judge to the prisoner, "on one of the seven days of next week. But you will not know which day it is until you are so informed on the morning of the day of the hanging."
The judge was known to be a man who always kept his word. The prisoner, accompanied by his lawyer, went back to his cell. As soon as the two men were alone, the lawyer broke into a grin. "Don’t you see?" he exclaimed. "The judge’s sentence cannot possibly be carried out."
"I don’t see," said the prisoner.
"Let me explain They obviously can’t hang you next Saturday. Saturday is the last day of the week. On Friday afternoon you would still be alive and you would know with absolute certainty that the hanging would be on Saturday. You would know this before you were told so on Saturday morning. That would violate the judge’s decree."
"True," said the prisoner.
"Saturday, then is positively ruled out," continued the lawyer. "This leaves Friday as the last day they can hang you. But they can’t hang you on Friday because by Thursday only two days would remain: Friday and Saturday. Since Saturday is not a possible day, the hanging would have to be on Friday. Your knowledge of that fact would violate the judge’s decree again. So Friday is out. This leaves Thursday as the last possible day. But Thursday is out because if you’re alive Wednesday afternoon, you’ll know that Thursday is to be the day."
"I get it," said the prisoner, who was beginning to feel much better. "In exactly the same way I can rule out Wednesday, Tuesday and Monday. That leaves only tomorrow. But they can’t hang me tomorrow because I know it today!"
... He is convinced, by what appears to be unimpeachable logic, that he cannot be hanged without contradicting the conditions specified in his sentence. Then on Thursday morning, to his great surprise, the hangman arrives. Clearly he did not expect him. What is more surprising, the judge’s decree is now seen to be perfectly correctly. The sentence can be carried out exactly as stated.