I'm working through the book Book of Proof (3rd edition) by Richard Hammack (freely available, BTW).
Chapter 6, exercise 5 (page 144) asks to prove that √3 is irrational.
The proof I came up with is different than the book's solution, and other solutions I found online, so I'm not sure it's correct.
Suppose for contradiction that √3 is rational.
Then √3 = a/b, for some integers a, b.
Assume a/b is fully reduced.
Squaring both sides and multiplying by b² gives a² = 3b².
a² is either odd or even.
Suppose a² is even, then a is even (this was shown in a previous exercise).
Then b is odd (since if b was even, both a and b would have a common factor of 2, and we assumed a/b is fully reduced).
Then there's an integer c such that a = 2c, and plugging that into the first equation gives 4c² = 3b².
Then 3b² is even, which means b is even (since if b was odd, then b² would be odd, and 3b² would be a product of two odds, which itself is odd).
But we deduced that b is odd, so we get a contradiction.
Suppose a² is odd, then a is odd, so b is even.
Then b = 2c for some integer c, and plugging that into the first equation gives a² = 3(2c)² = 12c².
So a² is even, but we assumed a² is odd, so we get a contradiction.
So a² is neither odd nor even, which is a contradiction.
Therefore, √3 is irrational.
Is this correct?
Chapter 6, exercise 5 (page 144) asks to prove that √3 is irrational.
The proof I came up with is different than the book's solution, and other solutions I found online, so I'm not sure it's correct.
Suppose for contradiction that √3 is rational.
Then √3 = a/b, for some integers a, b.
Assume a/b is fully reduced.
Squaring both sides and multiplying by b² gives a² = 3b².
a² is either odd or even.
Suppose a² is even, then a is even (this was shown in a previous exercise).
Then b is odd (since if b was even, both a and b would have a common factor of 2, and we assumed a/b is fully reduced).
Then there's an integer c such that a = 2c, and plugging that into the first equation gives 4c² = 3b².
Then 3b² is even, which means b is even (since if b was odd, then b² would be odd, and 3b² would be a product of two odds, which itself is odd).
But we deduced that b is odd, so we get a contradiction.
Suppose a² is odd, then a is odd, so b is even.
Then b = 2c for some integer c, and plugging that into the first equation gives a² = 3(2c)² = 12c².
So a² is even, but we assumed a² is odd, so we get a contradiction.
So a² is neither odd nor even, which is a contradiction.
Therefore, √3 is irrational.
Is this correct?