2.9 Proof by Contradiction
In a proof by contradiction or indirect proof, you show that if a proposition were false, then some logical contradiction or absurdity would follow. Thus, the proposition must be true.
Irrational number
Can you prove that is an irrational number? A rational number is a number that can be expressed as a ratio of two integers; otherwise it is irrational.
Solution: This is a classical example of proof by contradiction. If is not an irrational number, it can be expressed as a ratio of two integers and . If and have any common factor, we can remove it by dividing both and by the common factor. So in the end, we will have a pair of and that have no common factors. (It is called irreducible fraction.) Since , we have . So must be an even number and must be an even number as well. Let’s express as , where is an integer, since is even. Then and we also have , which means must be even as well. But that both and are even contradicts the earlier statement that and have no common factors. So must be an irrational number.
Rainbow hats
Seven prisoners are given the chance to be set free tomorrow. An executioner will put a hat on each prisoner’s head. Each hat can be one of the seven colors of the rainbow and the hat colors are assigned completely at the executioner’s discretion. Every prisoner can 32 see the hat colors of the other six prisoners, but not his own. They cannot communicate with others in any form, or else they are immediately executed. Then each prisoner writes down his guess of his own hat color. If at least one prisoner correctly guesses the color of his hat, they all will be set free immediately; otherwise they will be executed.
They are given the night to come up with a strategy. Is there a strategy that they can guarantee that they will be set free? 19
Solution: This problem is often perceived to be more difficult than the prisoner problem in the modular arithmetic section. In the previous prisoner problem, the prisoners can hear others’ guesses. So one prisoner’s declaration gives all the necessary information other prisoners need. In this problem, prisoners won’t know what others’ guesses are. To solve the problem, it does require an aha moment. The key to the aha moment is given by the hint. Once you realize that if we code the colors to 0-6, must be among 0, 1, 2, 3, 4, 5 or 6 as well. Then each prisoner —let’s label them as 0-6 as well—should give a guess so that the sum of and the rest of 6 prisoners’ hat color codes will give a remainder of when divided by 7, where is a unique number between 0 and 6. For example, prisoner 0’s guess should make . This way, we can guarantee at least one of for .
We can easily prove this conclusion by contradiction. If , then (since and and are both between 0 and 6). But if for all and 6, then , which is clearly impossible. So at least one of must equal to . As a result, using this strategy, they are guaranteed to be set free.