EV33
- 192
- 0
Homework Statement
Let a,b,c be integers such that a2+b2=c2.
Is it always true that at least one of {a,b} is even?
Homework Equations
The Attempt at a Solution
I say yes, and I am going to try and prove it with a proof by contrdiction.
Suppose a,b,c be integers such that a2+b2=c2 and that a and b are odd. By definition of odd a=2m+1, and b=2n+1, for some m,n in Z. By substitution we get c2= (2m+1)2+(2n+1)2. By simple arithmatic we get c2=2(2m2+2n2+2m+2n+1).
c=\sqrt{2}\sqrt{2m^2+2n^2+2m+2n+1}.
Because the second square root has an odd number in it means that we can not pull out a 1/\sqrt{2} to cancel out the \sqrt{2}. This means that we will have an irrational answer, rather than an integer for all m,n in Z. Thus we have reached a contradiction.//
I was wondering if my logic is correct on this.
Thank you for your time.